summaryrefslogtreecommitdiff
path: root/community/glfw
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-06-16 01:26:25 -0700
committerroot <root@rshg054.dnsready.net>2013-06-16 01:26:25 -0700
commit44c10f274ec720a1512b15457b9eeffea28c6041 (patch)
tree48d27d6116dfd4fdce957af918c3d62385fd9226 /community/glfw
parent0a069ede63336b105cda051cebe136f2592847d2 (diff)
Sun Jun 16 01:25:28 PDT 2013
Diffstat (limited to 'community/glfw')
-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"
}