aboutsummaryrefslogtreecommitdiffstats
path: root/testing/opensubdiv/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-10-03 22:45:53 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-10-03 22:50:11 +0200
commit5e35f44c49e854351c13e6b4d97ae27dd01fd089 (patch)
treebb452e76c0e0d8b42950d94542370d2d9ed2bfad /testing/opensubdiv/APKBUILD
parent23dc7bb5f49535e7cb87c78fd2290290a3722de7 (diff)
downloadaports-5e35f44c49e854351c13e6b4d97ae27dd01fd089.tar.gz
aports-5e35f44c49e854351c13e6b4d97ae27dd01fd089.tar.bz2
aports-5e35f44c49e854351c13e6b4d97ae27dd01fd089.tar.xz
testing/opensubdiv: improve abuild and fix some issues
Diffstat (limited to 'testing/opensubdiv/APKBUILD')
-rw-r--r--testing/opensubdiv/APKBUILD27
1 files changed, 20 insertions, 7 deletions
diff --git a/testing/opensubdiv/APKBUILD b/testing/opensubdiv/APKBUILD
index dd4279961c..885d8b700d 100644
--- a/testing/opensubdiv/APKBUILD
+++ b/testing/opensubdiv/APKBUILD
@@ -1,24 +1,30 @@
# Contributor: Mark Riedesel <mark@klowner.com>
# Maintainer: Mark Riedesel <mark@klowner.com>
pkgname=opensubdiv
+_pkgname=OpenSubdiv
pkgver=3.0.5
+_pkgver=${pkgver//./_}
pkgrel=0
pkgdesc="An Open-Source subdivision surface library"
url="http://graphics.pixar.com/opensubdiv"
arch="all"
license="ASL-2.0"
+depends=""
makedepends="cmake glew-dev glfw-dev doxygen py-docutils libxcursor-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tutorials $pkgname-tools"
-source="$pkgname-$pkgver.tar.gz::https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz"
-builddir="$srcdir/"OpenSubdiv-${pkgver//./_}
+source="$pkgname-$pkgver.tar.gz::https://github.com/PixarAnimationStudios/$_pkgname/archive/v$_pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$_pkgver"
build() {
- cd "$builddir"
- mkdir -p build
- cd build
+ mkdir -p "$builddir"/build
+ cd "$builddir"/build
+
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_SKIP_RPATH=TRUE \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DNO_TBB=TRUE \
-DNO_PTEX=TRUE \
-DNO_MAYA=TRUE \
@@ -34,14 +40,21 @@ package() {
}
tutorials() {
+ pkgdesc="$pkgdesc (tutorials)"
+ depends="$pkgname"
+
+ cd "$pkgdir"
+
mkdir -p "$subpkgdir"/usr/bin/
- for tut in "$pkgdir"/usr/bin/tutorials/*; do
+ local tut; for tut in ./usr/bin/tutorials/*; do
mv $tut "$subpkgdir"/usr/bin/opensubdiv_${tut##*/}
done
- rmdir "$pkgdir"/usr/bin/tutorials
+ rmdir ./usr/bin/tutorials
}
tools() {
+ pkgdesc="$pkgdesc (tools)"
+
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}