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