aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Marz <lmarz@cs.uni-frankfurt.de>2020-07-11 08:56:00 +0000
committerRasmus Thomsen <oss@cogitri.dev>2020-07-11 08:56:00 +0000
commit549a73d9c41a2dbb3854c22a6db51c5ed563ae58 (patch)
tree8145a6d1d10fdfa04298785a47cdae1ddb2184f4
parentd5cbbe2dec19b33725ce97a54b33bba5425bed32 (diff)
downloadaports-549a73d9c41a2dbb3854c22a6db51c5ed563ae58.tar.gz
aports-549a73d9c41a2dbb3854c22a6db51c5ed563ae58.tar.bz2
aports-549a73d9c41a2dbb3854c22a6db51c5ed563ae58.tar.xz
testing/ptex: new aport
https://ptex.us texture mapping system by Walt Disney Animation Studios
-rw-r--r--testing/ptex/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/ptex/APKBUILD b/testing/ptex/APKBUILD
new file mode 100644
index 0000000000..00745a7262
--- /dev/null
+++ b/testing/ptex/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Leon Marz <lmarz@cs.uni-frankfurt.de>
+# Maintainer: Leon Marz <lmarz@cs.uni-frankfurt.de>
+pkgname=ptex
+pkgver=2.3.2
+pkgrel=0
+pkgdesc="texture mapping system by Walt Disney Animation Studios"
+url="https://ptex.us"
+arch="all !s390x" # tests fail on s390x
+license="BSD-3-Clause"
+makedepends="cmake doxygen graphviz zlib-dev"
+subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/wdas/ptex/archive/v$pkgver.tar.gz"
+
+build() {
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=None \
+ -DPTEX_VER=$pkgver \
+ .
+ cmake --build build
+}
+
+check() {
+ cd build
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --build build --target install
+}
+
+sha512sums="dbc557dc5e1761204ee3483af9bf4ff1504cbd7955e0405dc27a51f7182e2445e41db086b2792c2491aa2cbaddc74e523170a4b3d25e44d332123d5b7081f4b9 ptex-2.3.2.tar.gz"