#Packager: Dimitris Tzemos pkgname=ftgl _pkgver=2.1.3-rc5 pkgver=${_pkgver/-/} pkgrel=1dj source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$_pkgver.tar.bz2" "gcc47.patch" "spam.patch" "nopdfdocs.patch") sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname docs=("AUTHORS" "BUGS" "COPYING" "ChangeLog" "INSTALL" "NEWS" "README" "TODO") url="http://ftgl.wiki.sourceforge.net/" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "FTGL (font rendering library for OpenGL applications)" "FTGL is a free, open source library to enable developers to use" "arbitrary fonts in their OpenGL (www.opengl.org) applications." "Unlike other OpenGL font libraries FTGL uses standard font file" "formats so doesn't need a preprocessing step to convert the high" "quality font data into a lesser quality, proprietary format." "FTGL uses the Freetype (www.freetype.org) font library to open and" "'decode' the fonts. It then takes that output and stores it in a" "format most efficient for OpenGL rendering." "Homepage: http://ftgl.wiki.sourceforge.net/" ) build() { cd $startdir/src/$pkgname-${_pkgver/-/\~} # Fix building with gcc-4.7.x patch -p1 < $startdir/src/gcc47.patch || return 1 # Fix spam that breaks build after autoreconfing patch -p1 < $startdir/src/spam.patch || return 1 # Avoid building pdf docs (seems broken ATM) patch -p0 < $startdir/src/nopdfdocs.patch || return 1 autoreconf -i ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-static --build=$arch-slackware-linux make -j $numjobs GLUT_LIBS="-lglut -lGLU -lGL -lm" || return 1 make install-strip DESTDIR=$startdir/pkg }