[opencv] 03/08: Disable OPENGL in Ubuntu/armhf (from mapreri)
Gianfranco Costamagna
locutusofborg at moszumanska.debian.org
Fri Jul 8 16:10:04 UTC 2016
This is an automated email from the git hooks/post-receive script.
locutusofborg pushed a commit to branch experimental/master
in repository opencv.
commit 6e004333d36271afcbee632116d84ca11ed3eedb
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date: Fri Jul 8 17:44:39 2016 +0200
Disable OPENGL in Ubuntu/armhf (from mapreri)
---
debian/rules | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index bd948c1..715ab99 100755
--- a/debian/rules
+++ b/debian/rules
@@ -33,6 +33,16 @@ else
CMAKE_ARCH_FLAGS += -DWITH_1394=OFF -DWITH_V4L=OFF
endif
+# No GL on armhf in Ubuntu
+ifeq ($(shell dpkg-vendor --is ubuntu && echo true),true)
+ifneq ($(DEB_HOST_ARCH),armhf)
+CMAKE_ARCH_FLAGS += -DWITH_OPENGL=ON
+else
+CMAKE_ARCH_FLAGS += -DWITH_OPENGL=OFF
+endif
+CMAKE_ARCH_FLAGS += -DWITH_OPENGL=ON
+endif
+
# For Java
export JAVA_HOME=/usr/lib/jvm/default-java
@@ -50,7 +60,6 @@ CMAKE_FLAGS = \
-DWITH_FFMPEG=ON \
-DWITH_GSTREAMER=OFF \
-DWITH_GTK=ON \
- -DWITH_OPENGL=ON \
-DWITH_JASPER=ON \
-DWITH_JPEG=ON \
-DWITH_PNG=ON \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git
More information about the debian-science-commits
mailing list