summaryrefslogtreecommitdiff
path: root/libre/kipi-plugins/PKGBUILD
diff options
context:
space:
mode:
authorIsaac David <isacdaavid@isacdaavid.info>2016-09-06 14:37:10 -0500
committerIsaac David <isacdaavid@isacdaavid.info>2016-09-06 14:37:10 -0500
commit7158736d9274d7d3a4442a1b9c0d42e104c592d1 (patch)
tree69e37ca996c4d2fd4384cd8732160a1a663c766e /libre/kipi-plugins/PKGBUILD
parent369c8f16210f7cb71c4f1ffef533b81853377f62 (diff)
downloadabslibre-7158736d9274d7d3a4442a1b9c0d42e104c592d1.tar.gz
abslibre-7158736d9274d7d3a4442a1b9c0d42e104c592d1.tar.bz2
abslibre-7158736d9274d7d3a4442a1b9c0d42e104c592d1.zip
libre/kipi-plugins: disable OpenGL support on armv7h
Diffstat (limited to 'libre/kipi-plugins/PKGBUILD')
-rw-r--r--libre/kipi-plugins/PKGBUILD20
1 files changed, 16 insertions, 4 deletions
diff --git a/libre/kipi-plugins/PKGBUILD b/libre/kipi-plugins/PKGBUILD
index b252ffdd7..7c01c28ad 100644
--- a/libre/kipi-plugins/PKGBUILD
+++ b/libre/kipi-plugins/PKGBUILD
@@ -18,16 +18,18 @@ replaces=("${pkgname}-libre")
conflicts=("${pkgname}-libre")
makedepends=('extra-cmake-modules' 'libkipi' 'libksane' 'liblqr' 'opencv' 'boost'
'opencv' 'doxygen' 'lensfun' 'eigen' 'kdoctools' 'marble' 'kdesignerplugin'
- 'kfilemetadata' 'akonadi-contact' 'qt5-multimedia' 'threadweaver' 'kcalcore'
+ 'kfilemetadata' 'akonadi-contacts' 'qt5-multimedia' 'threadweaver' 'kcalcore'
'knotifyconfig' 'libmediawiki' 'libkvkontakte')
source=("http://download.kde.org/stable/${pkgbase}/${pkgbase}-${_pkgver}.tar.xz"
"digikam-5.1-fix-build.patch"
kdebug-367675.patch::"https://quickgit.kde.org/?p=digikam.git&a=commitdiff&h=463667c8&o=plain"
- "libre.patch")
+ "libre.patch"
+ '0001-optionally-enable-OpenGL.patch')
sha1sums=('87a843c39f45b8704ead6e6029e52fb03ee44680'
'5b6644c8b5534a1712f46fc84948de9a0039a601'
'd669d6f248d6c7dec6728037992fdf8d4e14c1d9'
- 'ed2a01c4a837b50d3c1ad0d4758f2fa3bb44402f')
+ 'ed2a01c4a837b50d3c1ad0d4758f2fa3bb44402f'
+ '2711c73bdecbf355d4b8be1fa0c46be2e0e22df8')
prepare() {
mkdir -p build
@@ -40,11 +42,20 @@ prepare() {
# Fix digikamhelperdir
cd core
patch -p1 -i "$srcdir"/kdebug-367675.patch
+
+ # OpenGL switch
+ if [[ "$CARCH" = arm* ]]; then
+ patch -p1 -i ${srcdir}/0001-optionally-enable-OpenGL.patch
+ fi
}
build() {
cd build
+ if [[ "$CARCH" = arm* ]]; then
+ local cmake_extra="-DENABLE_OPENGL=OFF"
+ fi
+
cmake ../${pkgbase}-${_pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
@@ -55,7 +66,8 @@ build() {
-DENABLE_MEDIAPLAYER=ON \
-DENABLE_AKONADICONTACTSUPPORT=ON \
-DENABLE_MYSQLSUPPORT=ON \
- -DENABLE_OPENCV3=ON
+ -DENABLE_OPENCV3=ON \
+ $cmake_extra
make
}