wok annotate freeglut/receipt @ rev 25506

memtest, pack: cleanup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 09 16:28:01 2023 +0000 (21 months ago)
parents 257d3372786a
children 6b33f9da53d4
rev   line source
wcnagel@1054 1 # SliTaz package receipt.
wcnagel@1054 2
wcnagel@1054 3 PACKAGE="freeglut"
Hans-G?nter@24563 4 VERSION="3.2.2"
pascal@1423 5 CATEGORY="x-window"
wcnagel@1054 6 SHORT_DESC="OpenGL utility toolkit."
b1+slitaz@1802 7 MAINTAINER="b1+slitaz@nagel.org"
pascal@15593 8 LICENSE="GPL"
pascal@25109 9 WEB_SITE="https://web.archive.org/web/20220516194849/https://sourceforge.net/projects/freeglut/"
Hans-G?nter@20937 10
pascal@15593 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@15593 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@15593 13
Hans-G?nter@20937 14 SUGGESTED="nvidia"
Hans-G?nter@24563 15 DEPENDS="glibc-base libdrm mesa libglu-mesa
Hans-G?nter@24563 16 xorg-libX11 xorg-libXau xorg-libXdamage xorg-libXdmcp
Hans-G?nter@22775 17 xorg-libXext xorg-libXfixes xorg-libXi xorg-libXxf86vm"
Hans-G?nter@22775 18 BUILD_DEPENDS="cmake libglu-mesa libglu-mesa-dev libxcb-dev mesa mesa-dev
Hans-G?nter@22775 19 xorg-inputproto xorg-libX11-dev xorg-libXau-dev xorg-libXdamage-dev
Hans-G?nter@22775 20 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXfixes-dev xorg-libXi-dev
Hans-G?nter@22775 21 xorg-libXxf86vm-dev xorg-xproto"
wcnagel@1054 22
pascal@24385 23 # What is the latest version available today?
pascal@24385 24 current_version()
pascal@24385 25 {
pascal@24385 26 wget -O - https://sourceforge.net/projects/freeglut/files/freeglut/ 2>/dev/null | \
pascal@24385 27 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24385 28 sed '/scope="row/!d;s|.*/freeglut/||;s|/.*||;q'
pascal@24385 29 }
pascal@24385 30
wcnagel@1054 31 # Rules to configure and make the package.
wcnagel@1054 32 compile_rules()
wcnagel@1054 33 {
pascal@12653 34 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
pascal@17670 35 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
pascal@12653 36
slaxemulator@6334 37 # fixes an issue with the radeon[hd] ATI opensource drivers
slaxemulator@6334 38 # ref: http://bugs.gentoo.org/show_bug.cgi?id=295163
Hans-G?nter@20937 39 # patch -p0 -i $stuff/2.6.0-GFX_radeon.patch
rcx@3701 40 # sed -i 's/-Werror//' configure
Hans-G?nter@20937 41
Hans-G?nter@24563 42 mkdir _build &&
Hans-G?nter@24563 43 cd _build &&
Hans-G?nter@24563 44 cmake .. \
Hans-G?nter@24563 45 -D CMAKE_INSTALL_PREFIX=/usr &&
rcx@3701 46 # sed -i '/XF86VMODE/d' config.status
Hans-G?nter@24563 47 make &&
Hans-G?nter@24563 48 make install DESTDIR=$DESTDIR
wcnagel@1054 49 }
wcnagel@1054 50
wcnagel@1054 51 # Rules to gen a SliTaz package suitable for Tazpkg.
wcnagel@1054 52 genpkg_rules()
wcnagel@1054 53 {
Hans-G?nter@24563 54 cook_copy_files *.so*
wcnagel@1054 55 }