wok-next diff ftgl/receipt @ rev 20846

mingw32-gcc: fix CFLAGS, CXXFLAGS as it is not recent GCC and it don't understand something
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jun 23 13:59:48 2018 +0300 (2018-06-23)
parents d43bf7aae921
children a3c581bf52b8
line diff
     1.1 --- a/ftgl/receipt	Wed Mar 21 15:58:17 2018 +0200
     1.2 +++ b/ftgl/receipt	Sat Jun 23 13:59:48 2018 +0300
     1.3 @@ -6,39 +6,35 @@
     1.4  SHORT_DESC="OpenGL library to use arbitrary fonts"
     1.5  MAINTAINER="slaxemulator@gmail.com"
     1.6  LICENSE="GPL2"
     1.7 +WEB_SITE="http://ftgl.wiki.sourceforge.net/"
     1.8 +
     1.9  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.10 -WEB_SITE="http://ftgl.wiki.sourceforge.net/"
    1.11  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.12  
    1.13  BUILD_DEPENDS="freetype-dev freeglut-dev mesa-dev glu-dev \
    1.14  expat-dev xorg-libxshmfence-dev"
    1.15  SPLIT="ftgl-dev"
    1.16  
    1.17 -# Rules to configure and make the package.
    1.18 -compile_rules()
    1.19 -{
    1.20 +compile_rules() {
    1.21  	# Binutils 2.22 break many packages build without LDFLAGS set correctly.
    1.22  	export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lGL"
    1.23 +
    1.24  	./configure \
    1.25  		--with-pic \
    1.26  		$CONFIGURE_ARGS &&
    1.27 -	make && make DESTDIR=$DESTDIR install
    1.28 +	fix libtool &&
    1.29 +	make &&
    1.30 +	make DESTDIR=$DESTDIR install
    1.31  }
    1.32  
    1.33 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.34 -genpkg_rules()
    1.35 -{
    1.36 +genpkg_rules() {
    1.37  	case $PACKAGE in
    1.38 -	ftgl)
    1.39 -		DEPENDS="freetype freeglut mesa glu"
    1.40 -		mkdir -p $fs/usr/lib
    1.41 -		cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.42 -		;;
    1.43 -	ftgl-dev)
    1.44 -		mkdir -p $fs/usr/lib
    1.45 -		cp -a $install/usr/include $fs/usr
    1.46 -		cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.47 -		cp -a $install/usr/lib/*.*a $fs/usr/lib
    1.48 -		;;
    1.49 +		ftgl)
    1.50 +			copy @std
    1.51 +			DEPENDS="freetype freeglut mesa glu"
    1.52 +			;;
    1.53 +		*-dev)
    1.54 +			copy @dev
    1.55 +			;;
    1.56  	esac
    1.57  }