summaryrefslogtreecommitdiff
path: root/community/glfw/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/glfw/PKGBUILD')
-rw-r--r--community/glfw/PKGBUILD36
1 files changed, 17 insertions, 19 deletions
diff --git a/community/glfw/PKGBUILD b/community/glfw/PKGBUILD
index 5b817cdb6..88d7e2dfd 100644
--- a/community/glfw/PKGBUILD
+++ b/community/glfw/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 92480 2013-06-06 17:40:18Z 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.9
+pkgver=3.0
pkgrel=1
pkgdesc="A free, open source, portable framework for OpenGL application development"
arch=('i686' 'x86_64')
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=('96e12be48801984f0f0c23e38549b277')
+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"
}