wok-current annotate ftgl/receipt @ rev 25554
Up fakeroot (1.31)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 12 20:31:24 2023 +0000 (20 months ago) |
parents | 3911e4610e39 |
children |
rev | line source |
---|---|
slaxemulator@6554 | 1 # SliTaz package receipt. |
slaxemulator@6554 | 2 |
slaxemulator@6554 | 3 PACKAGE="ftgl" |
Hans-G?nter@24577 | 4 VERSION="2.4.0" |
slaxemulator@6554 | 5 CATEGORY="x-window" |
Hans-G?nter@24577 | 6 SHORT_DESC="OpenGL library to use arbitrary fonts." |
slaxemulator@6554 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15593 | 8 LICENSE="GPL2" |
pascal@25422 | 9 WEB_SITE="https://github.com/frankheckenbach/ftgl" |
slaxemulator@6554 | 10 |
Hans-G?nter@24577 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@24577 | 12 WGET_URL="https://github.com/frankheckenbach/$PACKAGE/archive/v$VERSION.tar.gz" |
Hans-G?nter@24577 | 13 |
Hans-G?nter@24577 | 14 DEPENDS="freeglut freetype gcc83-lib-base libglu-mesa mesa" |
Hans-G?nter@24577 | 15 BUILD_DEPENDS="automake doxygen freeglut-dev freetype-dev gcc83 |
Hans-G?nter@24577 | 16 libtool libglu-mesa-dev mesa-dev" |
pascal@13796 | 17 |
pascal@24385 | 18 # What is the latest version available today? |
pascal@24385 | 19 current_version() |
pascal@24385 | 20 { |
pascal@24385 | 21 wget -O - https://sourceforge.net/projects/ftgl/files/FTGL%20Source/ 2>/dev/null | \ |
pascal@24385 | 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24414 | 23 sed '/scope="row/!d;s|.*ource/||;s|/.*||;s|~|-|;q' |
pascal@24385 | 24 } |
pascal@24385 | 25 |
slaxemulator@6554 | 26 # Rules to configure and make the package. |
slaxemulator@6554 | 27 compile_rules() |
slaxemulator@6554 | 28 { |
pascal@12763 | 29 # Binutils 2.22 break many packages build without LDFLAGS set correctly. |
pascal@17670 | 30 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lGL" |
Hans-G?nter@24577 | 31 |
Hans-G?nter@24577 | 32 ./autogen.sh && |
Hans-G?nter@24577 | 33 ./configure \ |
Hans-G?nter@24577 | 34 CC=gcc-83 \ |
Hans-G?nter@24577 | 35 CXX=g++-83 \ |
Hans-G?nter@24577 | 36 --with-pic \ |
slaxemulator@6554 | 37 $CONFIGURE_ARGS && |
Hans-G?nter@24577 | 38 make && |
Hans-G?nter@24577 | 39 make install DESTDIR=$DESTDIR |
slaxemulator@6554 | 40 } |
slaxemulator@6554 | 41 |
slaxemulator@6554 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6554 | 43 genpkg_rules() |
slaxemulator@6554 | 44 { |
Hans-G?nter@24577 | 45 cook_copy_files *.so* |
slaxemulator@6554 | 46 } |