diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-17 07:41:28 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-17 08:59:38 +0000 |
commit | 2a25165a167786546cf05dc29090542dab19e8f9 (patch) | |
tree | 29225c26ed4851bb4938de026177dacfdac00223 /testing/glm | |
parent | 3ecc91805f5f74f6cd4f0dbd643281cb0ca0887d (diff) | |
download | aports-2a25165a167786546cf05dc29090542dab19e8f9.tar.bz2 aports-2a25165a167786546cf05dc29090542dab19e8f9.tar.xz |
testing/glm: new aport
C++ mathematics library for graphics programming
http://glm.g-truc.net/
Diffstat (limited to 'testing/glm')
-rw-r--r-- | testing/glm/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/glm/APKBUILD b/testing/glm/APKBUILD new file mode 100644 index 0000000000..d96ba01837 --- /dev/null +++ b/testing/glm/APKBUILD @@ -0,0 +1,44 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=glm +pkgver=0.9.3.4 +pkgrel=0 +pkgdesc="C++ mathematics library for graphics programming" +url="http://glm.g-truc.net/" +arch="all" +license="MIT" +depends="" +depends_dev="" +makedepends="$depends_dev cmake" +install="" +subpackages="$pkgname-dev" +source="http://downloads.sourceforge.net/ogl-math/glm-$pkgver/glm-$pkgver.zip" + +_builddir="$srcdir"/glm-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + mkdir build + cd build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DGLM_TEST_ENABLE=ON \ + || return 1 + make +} + +package() { + cd "$_builddir"/build + make install DESTDIR="$pkgdir" +} + +md5sums="a0cea0871bd39f2d628c12f1181faffb glm-0.9.3.4.zip" |