1 # Maintainer: josephgbr <rafael.f.f1@gmail.com>
2 # Contributor: scj <scj@archlinux.us>
7 pkgdesc="Modern cross-platform toolkit for graphical applications implemented in C, C++ and Ada"
9 url="http://libagar.org"
10 license=('custom:BSD')
12 optdepends=('sdl: If you want to use the sdlfb or sdlgl'
13 'freetype2: Improve Font Rendering'
14 'libgl: Mesa OpenGL support for sdlgl (intel-dri, nouveau-dir, etc.)'
15 'nvidia-utils: Nvidia proprietary OpenGL support for sdlgl'
16 'catalyst-utils: AMD/ATI proprietary OpenGL support for sdlgl')
17 conflicts=('agar-svn')
18 options=('!emptydirs' '!libtool')
19 source=("http://stable.hypertriton.com/$pkgname/$pkgname-$pkgver.tar.gz")
20 md5sums=('ce71fb11ad79c926a968a4ed29053820')
23 cd "$srcdir/$pkgname-$pkgver"
25 # Necessary workaround for gcc 4.6
26 export CFLAGS="$CFLAGS -Wno-unused-but-set-variable"
27 ./configure --prefix=/usr \
31 --sharedir=/usr/share \
33 --with-gl=/usr # set "prefix_gl" for /usr/lib/libGL.so
39 cd "$srcdir/$pkgname-$pkgver"
41 # make install won't create these folders, even though they are required
42 mkdir -p "$pkgdir/usr"/{bin,lib}
43 mkdir -p "$pkgdir/usr/share/man"/man{3,5}
44 mkdir -p "$pkgdir/usr/share/agar/fonts"
46 make DESTDIR="$pkgdir" MANDIR=/usr/share/man LIBDIR=/usr/lib install
47 install -Dm644 ada-core/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"