Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Aug 2011 20:39:39 GMT
From:      Ruslan Mahmatkhanov <cvs-src@yandex.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/160321: [MAINTAINER] graphics/gimp-gmic-plugin: update to 1.5.0.1
Message-ID:  <201108302039.p7UKdd8M066619@red.freebsd.org>
Resent-Message-ID: <201108302040.p7UKe9cf095915@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         160321
>Category:       ports
>Synopsis:       [MAINTAINER] graphics/gimp-gmic-plugin: update to 1.5.0.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 30 20:40:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ruslan Mahmatkhanov
>Release:        9.0-BETA1
>Organization:
>Environment:
9.0-BETA1 i386
>Description:
- update to 1.5.0.1
- disable OpenCV for now to unbreak the port.
  &#1089;onsequences of that should be minor, since OpenCV used _only_ in gmic command
  line utility (the actual plugin is not affected) and it used _only_ for
  accessing webcams. 
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruNa gimp-gmic-plugin.orig/Makefile gimp-gmic-plugin/Makefile
--- gimp-gmic-plugin.orig/Makefile	2011-08-27 11:14:10.000000000 +0400
+++ gimp-gmic-plugin/Makefile	2011-08-31 00:27:22.000000000 +0400
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	gmic
-PORTVERSION=	1.5.0.0
+PORTVERSION=	1.5.0.1
 CATEGORIES=	graphics
 MASTER_SITES=	SF/${PORTNAME} \
 		SF/${PORTNAME}/old
@@ -17,13 +17,10 @@
 MAINTAINER=	cvs-src@yandex.ru
 COMMENT=	GREYC's Magic Image Converter
 
-BROKEN=		Does not compile with OpenCV 2.3.1
-
 LIB_DEPENDS=	GraphicsMagick++.6:${PORTSDIR}/graphics/GraphicsMagick13 \
 		IlmImf.6:${PORTSDIR}/graphics/OpenEXR \
 		Magick++.4:${PORTSDIR}/graphics/ImageMagick \
 		avcodec.1:${PORTSDIR}/multimedia/ffmpeg \
-		opencv_legacy.2:${PORTSDIR}/graphics/opencv \
 		fftw3.5:${PORTSDIR}/math/fftw3 \
 		gimp-2.0:${PORTSDIR}/graphics/gimp-app
 
@@ -56,13 +53,14 @@
 PLIST_SUB+=	BASH="@comment "
 .endif
 
-post-patch:
-	@${REINPLACE_CMD} -e 's/-lcv/-lopencv_legacy/g' \
-		-e 's/-lhighgui/-lopencv_legacy/g' \
-		${WRKSRC}/configure
-	@${REINPLACE_CMD} -e 's#/usr/X11R6#${PREFIX}#g' \
-		-e 's/-lcv -lhighgui/-lopencv_legacy/g' \
-		${WRKSRC}/src/Makefile
+# GMIC is broken with OpenCV 2.3.1, so disable it for now
+#post-patch:
+#	@${REINPLACE_CMD} -e 's/-lcv/-lopencv_legacy/g' \
+#		-e 's/-lhighgui/-lopencv_legacy/g' \
+#		${WRKSRC}/configure
+#	@${REINPLACE_CMD} -e 's#/usr/X11R6#${PREFIX}#g' \
+#		-e 's/-lcv -lhighgui/-lopencv_legacy/g' \
+#		${WRKSRC}/src/Makefile
 
 do-install:
 	@${MKDIR} ${PREFIX}/${PLUGIN_DIR}
diff -ruNa gimp-gmic-plugin.orig/distinfo gimp-gmic-plugin/distinfo
--- gimp-gmic-plugin.orig/distinfo	2011-08-10 20:09:05.000000000 +0400
+++ gimp-gmic-plugin/distinfo	2011-08-30 22:24:20.000000000 +0400
@@ -1,2 +1,2 @@
-SHA256 (gmic_1.5.0.0.tar.gz) = f508c1cc20bc91e14535dc470e137bd8571e043278b270111fec9bb0d50f946b
-SIZE (gmic_1.5.0.0.tar.gz) = 1204904
+SHA256 (gmic_1.5.0.1.tar.gz) = 3d02069c1c472de535fae8adca6abf6ca628fec390e66a0c41e6216c23e5d0f3
+SIZE (gmic_1.5.0.1.tar.gz) = 1213407
diff -ruNa gimp-gmic-plugin.orig/files/patch-configure gimp-gmic-plugin/files/patch-configure
--- gimp-gmic-plugin.orig/files/patch-configure	1970-01-01 03:00:00.000000000 +0300
+++ gimp-gmic-plugin/files/patch-configure	2011-08-30 22:27:56.000000000 +0400
@@ -0,0 +1,108 @@
+--- configure.orig	2011-08-23 18:18:22.000000000 +0400
++++ configure	2011-08-30 22:27:42.000000000 +0400
+@@ -5104,105 +5104,6 @@
+ 
+ fi
+ 
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cvSobel in -lcv" >&5
+-$as_echo_n "checking for cvSobel in -lcv... " >&6; }
+-if test "${ac_cv_lib_cv_cvSobel+set}" = set; then :
+-  $as_echo_n "(cached) " >&6
+-else
+-  ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lcv  $LIBS"
+-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h.  */
+-
+-/* Override any GCC internal prototype to avoid an error.
+-   Use char because int might match the return type of a GCC
+-   builtin and then its argument prototype would still apply.  */
+-#ifdef __cplusplus
+-extern "C"
+-#endif
+-char cvSobel ();
+-int
+-main ()
+-{
+-return cvSobel ();
+-  ;
+-  return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_link "$LINENO"; then :
+-  ac_cv_lib_cv_cvSobel=yes
+-else
+-  ac_cv_lib_cv_cvSobel=no
+-fi
+-rm -f core conftest.err conftest.$ac_objext \
+-    conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cv_cvSobel" >&5
+-$as_echo "$ac_cv_lib_cv_cvSobel" >&6; }
+-if test "x$ac_cv_lib_cv_cvSobel" = x""yes; then :
+-  cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBCV 1
+-_ACEOF
+-
+-  LIBS="-lcv $LIBS"
+-
+-else
+-
+-    echo "***"
+-    echo "** Fatal Error : Header or library files for 'OpenCV (core)' are missing but are mandatory to compile G'MIC. **"
+-    echo "***"
+-    exit -1
+-
+-fi
+-
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lhighgui" >&5
+-$as_echo_n "checking for main in -lhighgui... " >&6; }
+-if test "${ac_cv_lib_highgui_main+set}" = set; then :
+-  $as_echo_n "(cached) " >&6
+-else
+-  ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lhighgui  $LIBS"
+-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h.  */
+-
+-
+-int
+-main ()
+-{
+-return main ();
+-  ;
+-  return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_link "$LINENO"; then :
+-  ac_cv_lib_highgui_main=yes
+-else
+-  ac_cv_lib_highgui_main=no
+-fi
+-rm -f core conftest.err conftest.$ac_objext \
+-    conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_highgui_main" >&5
+-$as_echo "$ac_cv_lib_highgui_main" >&6; }
+-if test "x$ac_cv_lib_highgui_main" = x""yes; then :
+-  cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBHIGHGUI 1
+-_ACEOF
+-
+-  LIBS="-lhighgui $LIBS"
+-
+-else
+-
+-    echo "***"
+-    echo "** Fatal Error : Header or library files for 'OpenCV (highgui)' are missing but are mandatory to compile G'MIC. **"
+-    echo "***"
+-    exit -1
+-
+-fi
+-
+-
+ # Checks for header files.
+ ac_ext=c
+ ac_cpp='$CPP $CPPFLAGS'
diff -ruNa gimp-gmic-plugin.orig/files/patch-src_Makefile gimp-gmic-plugin/files/patch-src_Makefile
--- gimp-gmic-plugin.orig/files/patch-src_Makefile	2011-08-10 20:09:05.000000000 +0400
+++ gimp-gmic-plugin/files/patch-src_Makefile	2011-08-30 22:32:44.000000000 +0400
@@ -1,7 +1,7 @@
 $FreeBSD: ports/graphics/gimp-gmic-plugin/files/patch-src_Makefile,v 1.2 2011/08/10 16:09:05 crees Exp $
 
---- src/Makefile.orig	2011-07-08 00:22:17.000000000 +0400
-+++ src/Makefile	2011-07-10 12:19:31.000000000 +0400
+--- src/Makefile.orig	2011-08-23 18:18:27.000000000 +0400
++++ src/Makefile	2011-08-30 22:32:02.000000000 +0400
 @@ -56,7 +56,7 @@
  USR = /opt/local
  else
@@ -20,7 +20,23 @@
  
  # Flags to enable image display, using GDI32.
  GDI32_CFLAGS = -Dcimg_display=2 -Dcimg_appname=\\\"gmic\\\"
-@@ -236,6 +236,14 @@
+@@ -142,15 +142,6 @@
+ ZLIB_CFLAGS = -Dcimg_use_zlib
+ ZLIB_LDFLAGS = -lz
+ 
+-# Flags to enable native support of webcams, using the OpenCV library.
+-OPENCV_CFLAGS = -Dcimg_use_opencv -I$(USR)/include/opencv
+-ifeq ($(OS),Darwin)
+-OPENCV_LDFLAGS = -lopencv_core -lopencv_highgui   # Use this for OpenCV 2.2.0 !
+-else
+-OPENCV_LDFLAGS = -lcv -lhighgui
+-# OPENCV_LDFLAGS = -lopencv_core -lopencv_highgui   # Use this for OpenCV 2.2.0 !
+-endif
+-
+ # Flags to enable native support of most classical image file formats, using the GraphicsMagick++ library.
+ MAGICK_CFLAGS = -Dcimg_use_magick -I$(USR)/include/GraphicsMagick
+ ifeq ($(OS),Darwin)
+@@ -236,6 +227,14 @@
  	$(MAKE) gimp
  	$(MAKE) lib
  else
@@ -35,7 +51,7 @@
  ifeq ($(OS),Darwin)
  	@echo "**"
  	@echo "** MacOSX configuration"
-@@ -252,9 +260,10 @@
+@@ -252,9 +251,10 @@
  	$(MAKE) gimp
  endif
  endif
@@ -47,7 +63,7 @@
  
  lib:
  	$(MAKE) "CFLAGS=$(STD_LIB_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(STD_LIB_LDFLAGS)" gmic_lib
-@@ -269,6 +278,9 @@
+@@ -269,6 +269,9 @@
  linux:
  	$(MAKE) "CFLAGS=$(STD_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS=$(STD_UNIX_LDFLAGS)" "STRIP_EXE=1" gmic_gmic
  
@@ -55,4 +71,5 @@
 +	$(MAKE) "CFLAGS+=$(STD_UNIX_CFLAGS)" "LDFLAGS+=$(STD_UNIX_LDFLAGS)" "STRIP_EXE=1" gmic_gmic
 +
  custom:
- 	$(MAKE) "CFLAGS=$(CUST_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS=$(CUST_UNIX_LDFLAGS)" "STRIP_EXE=1" gmic_gmic 
+ 	$(MAKE) "CFLAGS=$(CUST_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS=$(CUST_UNIX_LDFLAGS)" "STRIP_EXE=1" gmic_gmic
+ 


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108302039.p7UKdd8M066619>