summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormeepzh2016-06-12 02:28:41 -0400
committermeepzh2016-06-12 02:28:41 -0400
commitc6b551fbfe7a27e84bb9ac8553d38fdcf444ee63 (patch)
treecc0269aa239e0b32d4320b23c02f2446034ba413
downloadaur-c6b551fbfe7a27e84bb9ac8553d38fdcf444ee63.tar.gz
Initial commit
-rw-r--r--.SRCINFO25
-rw-r--r--CMakeLists.txt.patch19
-rw-r--r--PKGBUILD46
-rw-r--r--py_CMakeLists.txt.patch18
4 files changed, 108 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2a2a33da6b2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = partio-git
+ pkgdesc = Particle IO and manipulation library (git version)
+ pkgver = 1.1.0.r73.g7f3e0d1
+ pkgrel = 1
+ url = http://www.disneyanimation.com/technology/partio.html
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = cmake>=2.4.6
+ makedepends = git
+ depends = glut glu seexpr
+ optdepends = python2: Python interface support,
+ optdepends = swig: required for Python interface support,
+ optdepends = zlib: file compression support
+ provides = partio
+ conflicts = partio
+ source = git+https://github.com/wdas/partio.git
+ source = CMakeLists.txt.patch
+ source = py_CMakeLists.txt.patch
+ md5sums = SKIP
+ md5sums = 795fd5b88af781f3d94d51bea44518f3
+ md5sums = eddbcda29bf7957fd423296b9271c7ea
+
+pkgname = partio-git
+
diff --git a/CMakeLists.txt.patch b/CMakeLists.txt.patch
new file mode 100644
index 00000000000..b62e159903c
--- /dev/null
+++ b/CMakeLists.txt.patch
@@ -0,0 +1,19 @@
+--- /partio/CMakeLists.txt 2016-06-12 01:38:48.822497008 -0400
++++ /partio/CMakeLists.txt 2016-06-12 01:36:36.842253172 -0400
+@@ -103,7 +103,7 @@
+ # make it so partio can be found
+ INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/src/lib )
+
+-SET(SEEXPR_BASE "c:/aselle/seexpr-inst" CACHE STRING "path to SeExpr")
++SET(SEEXPR_BASE "/usr" CACHE STRING "path to SeExpr")
+ SET(SEEXPR_INCLUDE_PATH ${SEEXPR_BASE}/include)
+ SET(SEEXPR_LIBDIR ${CMAKE_INSTALL_LIBDIR})
+ SET(SEEXPR_LINK_PATH ${SEEXPR_BASE}/${SEEXPR_LIBDIR})
+@@ -114,7 +114,5 @@
+ ADD_SUBDIRECTORY (src/lib)
+ ADD_SUBDIRECTORY (src/tools)
+ ADD_SUBDIRECTORY (src/py)
+-ADD_SUBDIRECTORY (src/tests)
+-ADD_SUBDIRECTORY (src/doc)
+
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0bc53b5aa59
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: meepzh <meep.aur@meepzh.com>
+pkgname=partio-git
+pkgver=1.1.0.r73.g7f3e0d1
+pkgrel=1
+pkgdesc="Particle IO and manipulation library (git version)"
+arch=(i686 x86_64)
+url="http://www.disneyanimation.com/technology/partio.html"
+license=('custom')
+depends=('glut glu seexpr')
+optdepends=('python2: Python interface support',
+ 'swig: required for Python interface support',
+ 'zlib: file compression support')
+makedepends=('cmake>=2.4.6' 'git')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=('git+https://github.com/wdas/partio.git' 'CMakeLists.txt.patch' 'py_CMakeLists.txt.patch')
+md5sums=('SKIP' '795fd5b88af781f3d94d51bea44518f3' 'eddbcda29bf7957fd423296b9271c7ea')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ # cutting off 'v' prefix that presents in the git tag
+ git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "$srcdir"
+ # Fix SeExpr dependency and remove tests
+ patch -p1 -i "$srcdir/CMakeLists.txt.patch"
+ # Change Python version to 2 to work with SeExpr
+ patch -p1 -i "$srcdir/py_CMakeLists.txt.patch"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ mkdir build
+ cd ./build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev ..
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}/build"
+ make DESTDIR="$pkgdir/" install
+ # Copy custom BSD license
+ install -D -m644 "../src/doc/license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
diff --git a/py_CMakeLists.txt.patch b/py_CMakeLists.txt.patch
new file mode 100644
index 00000000000..75b03214d55
--- /dev/null
+++ b/py_CMakeLists.txt.patch
@@ -0,0 +1,18 @@
+--- src/partio/src/py/CMakeLists.txt 2016-06-12 02:23:34.116897808 -0400
++++ src/partio/src/py/CMakeLists2.txt 2016-06-12 02:23:05.430315202 -0400
+@@ -35,13 +35,14 @@
+
+ FIND_PACKAGE(SWIG)
+ #IF(SWIG_FOUND)
++set(Python_ADDITIONAL_VERSIONS 2.7 2.6 2.5 2.4)
+ FIND_PACKAGE(PythonLibs)
+ SET(TEST1 "test1" CACHE STRING "test val 1" FORCE)
+ IF(PYTHONLIBS_FOUND)
+
+ INCLUDE(${SWIG_USE_FILE})
+
+-EXECUTE_PROCESS(COMMAND python -c "import sys;print('%s.%s'%sys.version_info[0:2])"
++EXECUTE_PROCESS(COMMAND python2 -c "import sys;print('%s.%s'%sys.version_info[0:2])"
+ OUTPUT_VARIABLE PYTHON_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+ SET(TEST1 "test2" CACHE STRING "test val 2" FORCE)