wok-next view ftgl/receipt @ rev 20502

Swap: current mesa (which is developing and change it's version) is just mesa, while old mesa is mesa12 now (will be removed if no one old package require it).
Also, change long names to its origins: libglu-mesa -> glu, libglw-mesa -> glw, all variations with libegl -> mesa-libegl (because it is part of mesa package).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 16 00:27:34 2018 +0200 (2018-03-16)
parents 145bc1c732ca
children d43bf7aae921
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ftgl"
4 VERSION="2.1.3-rc5"
5 CATEGORY="x-window"
6 SHORT_DESC="OpenGL library to use arbitrary fonts"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://ftgl.wiki.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 BUILD_DEPENDS="freetype-dev freeglut-dev mesa-dev glu-dev \
14 expat-dev xorg-libxshmfence-dev"
15 SPLIT="ftgl-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
21 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lGL"
22 ./configure \
23 --with-pic \
24 $CONFIGURE_ARGS &&
25 make && make DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 case $PACKAGE in
32 ftgl)
33 DEPENDS="freetype freeglut mesa glu"
34 mkdir -p $fs/usr/lib
35 cp -a $install/usr/lib/*.so* $fs/usr/lib
36 ;;
37 ftgl-dev)
38 CAT="development|devel files"
39 DEPENDS="ftgl pkg-config"
40 mkdir -p $fs/usr/lib
41 cp -a $install/usr/include $fs/usr
42 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
43 cp -a $install/usr/lib/*.*a $fs/usr/lib
44 ;;
45 esac
46 }