diff options
author | Marian Buschsieweke <marian.buschsieweke@ovgu.de> | 2019-09-01 21:02:39 +0200 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-01 20:29:22 -0300 |
commit | 182828363bc08b95d411fa586db5db37778de492 (patch) | |
tree | e8d0eb7cc4131b74f1d824d2e3071073f59aad77 /testing | |
parent | 594356d174339cb27a4ac4e6e8a21eb96da5cb0e (diff) | |
download | aports-182828363bc08b95d411fa586db5db37778de492.tar.bz2 aports-182828363bc08b95d411fa586db5db37778de492.tar.xz |
testing/opencsg: New aport
A library that does image-based CSG rendering using OpenGL
http://www.opencsg.org/
Diffstat (limited to 'testing')
-rw-r--r-- | testing/opencsg/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/opencsg/APKBUILD b/testing/opencsg/APKBUILD new file mode 100644 index 0000000000..e5f741fe1a --- /dev/null +++ b/testing/opencsg/APKBUILD @@ -0,0 +1,34 @@ +# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de> +pkgname=opencsg +pkgver=1.4.2 +pkgrel=0 +pkgdesc="A library that does image-based CSG rendering using OpenGL" +url="http://www.opencsg.org/" +arch="all" +license="GPL-2.0-only" +subpackages="$pkgname-dev $pkgname-example" +makedepends="glew-dev freeglut-dev" +source="http://www.opencsg.org/OpenCSG-$pkgver.tar.gz" +builddir="$srcdir/OpenCSG-$pkgver" + +build() { + make -j1 +} + +check() { + make check +} + +package() { + for folder in src example; do + sed -e 's/\/usr\/local\//\/usr\//g' -i $folder/Makefile + make INSTALL_ROOT="$pkgdir" install -j 1 -C $folder + done +} + +example() { + mkdir -p "$subpkgdir"/usr/ + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ +} + +sha512sums="fbe6f925982717ecca7bd0eacc4fc5b362c80c7663b1ff0d9a228f2b5e1d3625d3e6d324d9e634665c74e9c0fc37d10290ece293e59a3eba67035b6b700b7778 OpenCSG-1.4.2.tar.gz" |