diff -wbBur gmic-1.5.1.1/src/CImg.h gmic-1.5.1.1.my/src/CImg.h --- gmic-1.5.1.1/src/CImg.h 2012-04-06 17:47:06.000000000 +0400 +++ gmic-1.5.1.1.my/src/CImg.h 2012-04-10 02:10:19.000000000 +0400 @@ -243,7 +243,11 @@ #define _cimg_redefine_False #endif #include +#undef True +#undef False #include "cv.h" +#define True 1 +#define False 0 #include "highgui.h" #endif diff -wbBur gmic-1.5.1.1/src/Makefile gmic-1.5.1.1.my/src/Makefile --- gmic-1.5.1.1/src/Makefile 2012-04-06 17:47:05.000000000 +0400 +++ gmic-1.5.1.1.my/src/Makefile 2012-04-10 02:39:09.000000000 +0400 @@ -164,12 +164,12 @@ # Flags to enable native support of webcams, using the OpenCV library. # This requires the presence of the OpenCV include and library files. # (package 'libcv3-2-dev' on Debian). -OPENCV_CFLAGS = -Dcimg_use_opencv -I$(USR)/include -I$(USR)/include/opencv +OPENCV_CFLAGS = -Dcimg_use_opencv -I$(USR)/include/opencv `pkg-config --cflags opencv` ifeq ($(OS),Darwin) -OPENCV_LDFLAGS = `pkg-config opencv --libs` # Use this for OpenCV 2.2.0 ! +OPENCV_LDFLAGS = `pkg-config --libs opencv` -lopencv_core -lopencv_ml -lopencv_highgui else -OPENCV_LDFLAGS = -lcv -lhighgui -# OPENCV_LDFLAGS = -lopencv_core -lopencv_highgui # Use this for OpenCV 2.2.0 ! +OPENCV_LDFLAGS = `pkg-config --libs opencv` -lopencv_core -lopencv_ml -lopencv_highgui +# OPENCV_LDFLAGS = `pkg-config --libs opencv` -lopencv_core -lopencv_ml -lopencv_highgui endif # Flags to enable native support of most classical image file formats, using the GraphicsMagick++ library. @@ -270,7 +270,6 @@ $(MAKE) bashcompletion $(MAKE) gimp $(MAKE) lib - $(MAKE) zart else ifeq ($(OS),Darwin) @echo "**" @@ -297,7 +296,7 @@ zart: lib ifneq ($(OS),Darwin) - cd ../zart && qmake-qt4 zart.pro && $(MAKE) && strip zart + cd ../zart && qmake zart.pro && $(MAKE) && strip zart else cd ../zart && qmake zart_mac.pro && $(MAKE) endif @@ -386,16 +385,13 @@ # Install/uninstall/clean. install: mkdir -p $(DESTDIR)$(PLUGINDIR)/ - cp -f gmic_gimp $(DESTDIR)$(PLUGINDIR)/ + mkdir -p $(DESTDIR)$(USR)/bin/ cp -f gmic $(DESTDIR)$(USR)/bin/ mkdir -p $(DESTDIR)$(USR)/include/ cp -f gmic.h $(DESTDIR)$(USR)/include/ ifneq ($(OS),Darwin) mkdir -p $(DESTDIR)$(USR)/share - mkdir -p $(DESTDIR)$(USR)/share/zart - cp -f ../zart/haar*.xml $(DESTDIR)$(USR)/share/zart - cp -f ../zart/zart $(DESTDIR)$(USR)/bin/zart mkdir -p $(DESTDIR)$(USR)/lib cp -f libgmic.so $(DESTDIR)$(USR)/lib/libgmic.so.1.5.1.1 ln -s libgmic.so.1.5.1.1 $(DESTDIR)$(USR)/lib/libgmic.so.1.5.1 @@ -420,8 +416,6 @@ rm -rf $(DESTDIR)$(USR)/share/doc/gmic/ rm -f $(DESTDIR)$(USR)/share/man/man1/gmic.1.gz rm -f $(DESTDIR)$(USR)/share/man/fr/man1/gmic.1.gz - rm -f $(DESTDIR)$(USR)/bin/zart - rm -rf $(DESTDIR)$(USR)/share/zart/ distclean: clean