diff options
Diffstat (limited to 'community/glfw/PKGBUILD')
-rw-r--r-- | community/glfw/PKGBUILD | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/community/glfw/PKGBUILD b/community/glfw/PKGBUILD index 1990e63b0..847ef3031 100644 --- a/community/glfw/PKGBUILD +++ b/community/glfw/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 87832 2013-04-07 21:39:10Z svenstaro $ +# $Id: PKGBUILD 92771 2013-06-15 00:51:49Z svenstaro $ # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> # Contributor: philefou <tuxication AT gmail DOT com> # Contributor: lindquist <tomas@famolsen.dk> @@ -7,37 +7,35 @@ # Contributor: SpepS <dreamspepser at yahoo dot it> pkgname=glfw -pkgver=2.7.8 +pkgver=3.0 pkgrel=1 pkgdesc="A free, open source, portable framework for OpenGL application development" arch=('i686' 'x86_64' 'mips64el') url="http://www.glfw.org/" license=('custom:ZLIB') -depends=('libgl' 'libxrandr' 'glu') -makedepends=('mesa') -source=("http://switch.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2") -md5sums=('a2e1b13e46a7c637a7760c94b72896cd') +depends=('libgl' 'libxrandr' 'glu' 'xorg-xinput') +makedepends=('mesa' 'cmake' 'doxygen') +source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2") +md5sums=('415aef32d70af0cc829148c1cc7b1357') build() { cd "$srcdir/$pkgname-$pkgver" - export LFLAGS+="-lrt" - make x11 + [[ -d build ]] && rm -r build + mkdir build && cd build + + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_SHARED_LIBS=ON + make } package() { cd "$srcdir/$pkgname-$pkgver" - make PREFIX="$pkgdir/usr" x11-dist-install - - # license - install -Dm644 COPYING.txt \ - "$pkgdir/usr/share/licenses/$pkgname/COPYING" - - # docs - install -d "$pkgdir/usr/share/doc/$pkgname" - install -Dm644 docs/*.pdf "$pkgdir/usr/share/doc/$pkgname" + cd build + make DESTDIR=$pkgdir install - # fix pc file prefix path - sed -i "s|$pkgdir||g" "$pkgdir/usr/lib/pkgconfig/lib$pkgname.pc" + cd .. + install -Dm644 COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING" } |