summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Mullins2016-01-18 19:25:37 -0500
committerChristopher Mullins2016-01-18 19:25:37 -0500
commitdfabd408f45fdccdc4cc019b438a1c57bb2f6889 (patch)
tree17c87302d44c8805943252653f833a071e523901
parenta888553c134d21ea4a1074496bf4c0ac5d9791a1 (diff)
downloadaur-dfabd408f45fdccdc4cc019b438a1c57bb2f6889.tar.gz
Add easy variable for python wrapping option.
TODO: add separate options for python2 and 3, default finds 3.
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD15
2 files changed, 17 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a31acc17155..3e094429434 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Thu Dec 31 20:06:17 UTC 2015
+# Tue Jan 19 00:21:16 UTC 2016
pkgbase = insight-toolkit
pkgdesc = Cross-platform system that provides developers with an extensive suite of software tools for image analysis
pkgver = 4.8.2
@@ -22,7 +22,10 @@ pkgbase = insight-toolkit
optdepends = tcl: build tcl wrapping (currently not supported)
optdepends = perl: build perl wrapping (currently not supported)
optdepends = java-runtime: build java wrapping (currently not supported)
- optdepends = swig
+ optdepends = swig: generate python wrappers
+ optdepends = pcre: for wrapping
+ optdepends = castxml-git: for wrapping and docs
+ optdepends = clang: for swig
source = http://downloads.sourceforge.net/project/itk/itk/4.8/InsightToolkit-4.8.2.tar.xz
sha512sums = f08d922cdf059171caef4a91d13b0ab43d9817655f7e54a0d6c03369b0a502f268918480cf6db3c2ed532fb4895aca982330bd0cf1b1baffec857c6e905b1114
diff --git a/PKGBUILD b/PKGBUILD
index 7fa076c79a6..b6cd7365aca 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,11 +16,16 @@ optdepends=('python2: build python wrapping'
'tcl: build tcl wrapping (currently not supported)'
'perl: build perl wrapping (currently not supported)'
'java-runtime: build java wrapping (currently not supported)'
- 'swig: generate python wrappers')
+ 'swig: generate python wrappers'
+ 'pcre: for wrapping'
+ 'castxml-git: for wrapping and docs'
+ 'clang: for swig')
makedepends=('cmake')
source=("http://downloads.sourceforge.net/project/itk/itk/${pkgver:0:3}/InsightToolkit-${pkgver}.tar.xz")
sha512sums=('f08d922cdf059171caef4a91d13b0ab43d9817655f7e54a0d6c03369b0a502f268918480cf6db3c2ed532fb4895aca982330bd0cf1b1baffec857c6e905b1114')
+_usepython=false
+
build() {
cd "$srcdir"
rm -rf build
@@ -39,8 +44,12 @@ build() {
-DITK_USE_SYSTEM_ZLIB:BOOL=ON \
-DITK_USE_SYSTEM_TIFF:BOOL=ON \
-DITK_USE_SYSTEM_GDCM:BOOL=ON \
- -ITK_LEGACY_SILENT:BOOL=ON \
- -ITK_WRAP_PYTHON:BOOL=OFF \
+ -DITK_LEGACY_SILENT:BOOL=ON \
+ $( $_usepython && echo "-DITK_WRAP_PYTHON:BOOL=ON") \
+ $( $_usepython && echo "-DModule_ITKReview:BOOL=OFF") \
+ $( $_usepython && echo "-DITK_USE_SYSTEM_SWIG:BOOL=ON") \
+ $( $_usepython && echo "-DITK_USE_SYSTEM_CASTXML:BOOL=ON") \
+ -DITK_USE_SYSTEM_LIBRARIES:BOOL=ON \
-DITK_USE_SYSTEM_EXPAT:BOOL=ON \
-DITK_USE_SYSTEM_FFTW:BOOL=ON \
-DITK_USE_SYSTEM_HDF5:BOOL=ON \