summaryrefslogtreecommitdiffstats
path: root/src/opencv.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/opencv.mk')
-rw-r--r--src/opencv.mk14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/opencv.mk b/src/opencv.mk
index ed31beb..1dcceea 100644
--- a/src/opencv.mk
+++ b/src/opencv.mk
@@ -8,7 +8,7 @@ $(PKG)_CHECKSUM := 6e518c0274a8392c0c98d18ef0ef754b9c596aca
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := OpenCV-$($(PKG)_VERSION)a.tar.bz2
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)library/$(PKG)-unix/$($(PKG)_VERSION)/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc qt xz zlib lcms1 jpeg libpng tiff jasper openexr ffmpeg eigen
+$(PKG)_DEPS := gcc eigen ffmpeg jasper jpeg lcms1 libpng openexr tiff xz zlib
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/' | \
@@ -20,7 +20,7 @@ define $(PKG)_BUILD
# build
mkdir '$(1).build'
cd '$(1).build' && cmake \
- -DWITH_QT=ON \
+ -DWITH_QT=OFF \
-DWITH_OPENGL=ON \
-DWITH_GSTREAMER=OFF \
-DWITH_GTK=OFF \
@@ -47,4 +47,14 @@ define $(PKG)_BUILD
# install
$(MAKE) -C '$(1).build' -j '$(JOBS)' install VERBOSE=1
+
+ # fixup and install pkg-config file
+ # can't figure out where these unprefixed libs are coming from
+ $(SED) -i 's,\(opengl32\|glu32\|stdc++\),-l\1,g' '$(1).build/unix-install/opencv.pc'
+ $(INSTALL) -m755 '$(1).build/unix-install/opencv.pc' '$(PREFIX)/$(TARGET)/lib/pkgconfig'
+
+ '$(TARGET)-g++' \
+ -W -Wall -Werror -ansi -pedantic \
+ '$(1)/samples/c/fback_c.c' -o '$(PREFIX)/$(TARGET)/bin/test-opencv.exe' \
+ `'$(TARGET)-pkg-config' opencv --cflags --libs`
endef