summaryrefslogtreecommitdiff
path: root/libre/openexr-libre/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-08-04 11:37:37 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2013-08-04 11:37:37 +0200
commite2d2d193bdcb4282364410b50996d0415f05606b (patch)
tree231c32bcd51a5918639d31b7136fd97176e8f89c /libre/openexr-libre/PKGBUILD
parent649dbc3fe619f4adaabb9293ec150b3a2b3a0165 (diff)
downloadabslibre-e2d2d193bdcb4282364410b50996d0415f05606b.tar.gz
abslibre-e2d2d193bdcb4282364410b50996d0415f05606b.tar.bz2
abslibre-e2d2d193bdcb4282364410b50996d0415f05606b.zip
Build openexr-libre for mips64el without unavailable dependencies.
Diffstat (limited to 'libre/openexr-libre/PKGBUILD')
-rw-r--r--libre/openexr-libre/PKGBUILD18
1 files changed, 11 insertions, 7 deletions
diff --git a/libre/openexr-libre/PKGBUILD b/libre/openexr-libre/PKGBUILD
index ff25fb014..638d504b7 100644
--- a/libre/openexr-libre/PKGBUILD
+++ b/libre/openexr-libre/PKGBUILD
@@ -11,7 +11,8 @@ url="http://www.openexr.com/"
arch=('i686' 'x86_64' 'mips64el')
license=('BSD')
depends=('zlib' 'ilmbase')
-makedepends=('libreoffice-writer' 'jre7-openjdk-headless' 'libcups' 'libxinerama')
+makedepends=('libcups' 'libxinerama')
+[ "$CARCH" != "mips64el" ] && makedepends+=('libreoffice-writer' 'jre7-openjdk-headless')
replaces=$_pkgname
conflicts=$_pkgname
provides=$_pkgname=$pkgver
@@ -25,6 +26,7 @@ noextract=(MultiViewOpenEXR.odt OpenEXRFileLayout.odt ReadingAndWritingImageFile
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
+ [ "$CARCH" = "mips64el" ] && sed -i 's/ doc //' Makefile.in # no libreoffice yet
./configure --prefix=/usr
make
}
@@ -38,14 +40,16 @@ package() {
# add source documentation with free fonts
install -m644 -v "${srcdir}/"{MultiViewOpenEXR,OpenEXRFileLayout,ReadingAndWritingImageFiles,TechnicalIntroduction}.odt doc
- # convert documentation to pdf format
- cd doc
+ if [ "$CARCH" != "mips64el" ]; then
+ # convert documentation to pdf format
+ cd doc
- for x in ${noextract[@]}; do
- libreoffice --headless --invisible --convert-to pdf ${x}
- done
+ for x in ${noextract[@]}; do
+ libreoffice --headless --invisible --convert-to pdf ${x}
+ done
- cd ..
+ cd ..
+ fi
make DESTDIR="${pkgdir}" install
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"