#Maintainer: Dimitris Tzemos pkgname=ftgl pkgver=2.1.3rc5 pkgrel=2dj source=("http://downloads.sourceforge.net/ftgl/ftgl-2.1.3-rc5.tar.bz2" 'gcc47.patch' 'spam.patch' 'nopdfdocs.patch') sourcetemplate=http://people.salixos.org/djemos/$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 "${SRC}/${pkgname}-2.1.3~rc5/" patch -Np1 -i ../gcc47.patch || return 1 patch -Np1 -i ../spam.patch || return 1 patch -Np0 -i ../nopdfdocs.patch || return 1 autoreconf -i CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc make GLUT_LIBS="-lglut -lGLU -lGL -lm" make install-strip DESTDIR=$PKG }