ports/154595: [NEW PORT] graphics/gimp-gmic-plugin: GREYC's Magic Image Converter
Ruslan Mahmatkhanov
cvs-src at yandex.ru
Tue Feb 8 19:00:22 UTC 2011
>Number: 154595
>Category: ports
>Synopsis: [NEW PORT] graphics/gimp-gmic-plugin: GREYC's Magic Image Converter
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Feb 08 19:00:21 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Ruslan Mahmatkhanov
>Release: 8.2-PRERELEASE
>Organization:
>Environment:
8.2-PRERELEASE i386
tested with gimp 2.6.11
>Description:
G'MIC stands for GREYC's Magic Image Converter. This project aims to:
* Define a minimal but powerful script language (G'MIC) dedicated to the
design of image processing pipelines.
* Provide an interpreter of this language (in C++), distributed as an
open-source module/library embeddable in third-party applications.
* Propose two binary tools embedding this interpreter :
o The command-line executable gmic to use the G'MIC framework from a shell.
o The interactive plug-in gmic_gimp to bring G'MIC capabilities to the image
retouching software GIMP.
WWW: http://gmic.sourceforge.net
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# gimp-gmic-plugin/
# gimp-gmic-plugin/Makefile
# gimp-gmic-plugin/distinfo
# gimp-gmic-plugin/pkg-descr
# gimp-gmic-plugin/files
# gimp-gmic-plugin/files/patch-configure
# gimp-gmic-plugin/files/patch-src_Makefile
# gimp-gmic-plugin/pkg-plist
#
echo c - gimp-gmic-plugin/
mkdir -p gimp-gmic-plugin/ > /dev/null 2>&1
echo x - gimp-gmic-plugin/Makefile
sed 's/^X//' >gimp-gmic-plugin/Makefile << '93c133188e2d522fa3c2206936b0e6f5'
X# New ports collection makefile for: gimp-gmic-plugin
X# Date created: 07 Feb 2011
X# Whom: Mahmatkhanov Ruslan <cvs-src at yandex.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME= gmic
XPORTVERSION= 1.4.8.1
XCATEGORIES= graphics
XMASTER_SITES= SF/${PORTNAME}
XPKGNAMEPREFIX= gimp-
XPKGNAMESUFFIX= -plugin
XDISTNAME= ${PORTNAME}_${PORTVERSION}_testing
X
XMAINTAINER= cvs-src at yandex.ru
XCOMMENT= GREYC's Magic Image Converter
X
XLIB_DEPENDS= GraphicsMagick++.1:${PORTSDIR}/graphics/GraphicsMagick \
X IlmImf.6:${PORTSDIR}/graphics/OpenEXR \
X Magick++.4:${PORTSDIR}/graphics/ImageMagick \
X avcodec.1:${PORTSDIR}/multimedia/ffmpeg \
X cv.2:${PORTSDIR}/graphics/opencv \
X fftw3.5:${PORTSDIR}/math/fftw3 \
X gimp-2.0:${PORTSDIR}/graphics/gimp-app
X
XOPTIONS= BASH "Install programmable completions for Bash" off
X
XWRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
X
XGNU_CONFIGURE= yes
XUSE_GMAKE= yes
XUSE_XORG= x11 xext xrandr
X
XPLUGIN_DIR?= libexec/gimp/2.2/plug-ins
XPLIST_SUB+= PLUGIN_DIR=${PLUGIN_DIR}
X
XCONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
X LDFLAGS="-L${LOCALBASE}/lib"
XCFLAGS:= ${CFLAGS:N-O*:N-pipe}
XCXXFLAGS:= ${CXXFLAGS:N-O*:N-pipe}
X
XMAN1= gmic.1
XMANCOMPRESSED= yes
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_BASH)
XRUN_DEPENDS+= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
XPLIST_SUB+= BASH=""
X.else
XPLIST_SUB+= BASH="@comment "
X.endif
X
Xpost-patch:
X @${REINPLACE_CMD} -e 's#/usr/X11R6#${PREFIX}#g' \
X ${WRKSRC}/src/Makefile
X
Xdo-install:
X @${MKDIR} ${PREFIX}/${PLUGIN_DIR}
X ${INSTALL_PROGRAM} ${WRKSRC}/src/gmic_gimp ${PREFIX}/${PLUGIN_DIR}
X ${INSTALL_PROGRAM} ${WRKSRC}/src/gmic ${PREFIX}/bin
X ${INSTALL_MAN} ${WRKSRC}/man/gmic.1.gz ${MANPREFIX}/man/man1
X.if !defined(NOPORTDOCS)
X @${MKDIR} ${DOCSDIR}/img
X @${CP} -R ${WRKSRC}/html/*.* ${DOCSDIR}
X @(cd ${WRKSRC}/html/img && ${COPYTREE_SHARE} \* ${DOCSDIR}/img)
X.endif
X.if defined(WITH_BASH)
X ${INSTALL_SCRIPT} ${WRKSRC}/src/gmic_bashcompletion.sh \
X ${PREFIX}/etc/bash_completion.d
X.endif
X
X.include <bsd.port.post.mk>
93c133188e2d522fa3c2206936b0e6f5
echo x - gimp-gmic-plugin/distinfo
sed 's/^X//' >gimp-gmic-plugin/distinfo << '3b2d89c14351ae5db85f44102da29af0'
XSHA256 (gmic_1.4.8.1_testing.tar.gz) = 6fd48d2e478b3f3a7cba413b1e0093998b38318372a420d597bfe98161d7b252
XSIZE (gmic_1.4.8.1_testing.tar.gz) = 14729296
3b2d89c14351ae5db85f44102da29af0
echo x - gimp-gmic-plugin/pkg-descr
sed 's/^X//' >gimp-gmic-plugin/pkg-descr << '6b2de373456a50b29912d0f52034425f'
XG'MIC stands for GREYC's Magic Image Converter. This project aims to:
X
X * Define a minimal but powerful script language (G'MIC) dedicated to the
X design of image processing pipelines.
X * Provide an interpreter of this language (in C++), distributed as an
X open-source module/library embeddable in third-party applications.
X * Propose two binary tools embedding this interpreter :
X o The command-line executable gmic to use the G'MIC framework from a shell.
X o The interactive plug-in gmic_gimp to bring G'MIC capabilities to the image
X retouching software GIMP.
X
XWWW: http://gmic.sourceforge.net
6b2de373456a50b29912d0f52034425f
echo c - gimp-gmic-plugin/files
mkdir -p gimp-gmic-plugin/files > /dev/null 2>&1
echo x - gimp-gmic-plugin/files/patch-configure
sed 's/^X//' >gimp-gmic-plugin/files/patch-configure << 'e428313457dac5c88aa07c7c16bf56eb'
X--- configure.orig 2011-02-07 11:24:18.000000000 +0300
X+++ configure 2011-02-07 20:19:00.000000000 +0300
X@@ -4807,52 +4807,6 @@
X
X fi
X
X-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
X-$as_echo_n "checking for main in -lnsl... " >&6; }
X-if test "${ac_cv_lib_nsl_main+set}" = set; then :
X- $as_echo_n "(cached) " >&6
X-else
X- ac_check_lib_save_LIBS=$LIBS
X-LIBS="-lnsl $LIBS"
X-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
X-/* end confdefs.h. */
X-
X-
X-int
X-main ()
X-{
X-return main ();
X- ;
X- return 0;
X-}
X-_ACEOF
X-if ac_fn_c_try_link "$LINENO"; then :
X- ac_cv_lib_nsl_main=yes
X-else
X- ac_cv_lib_nsl_main=no
X-fi
X-rm -f core conftest.err conftest.$ac_objext \
X- conftest$ac_exeext conftest.$ac_ext
X-LIBS=$ac_check_lib_save_LIBS
X-fi
X-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
X-$as_echo "$ac_cv_lib_nsl_main" >&6; }
X-if test "x$ac_cv_lib_nsl_main" = x""yes; then :
X- cat >>confdefs.h <<_ACEOF
X-#define HAVE_LIBNSL 1
X-_ACEOF
X-
X- LIBS="-lnsl $LIBS"
X-
X-else
X-
X- echo "***"
X- echo "** Fatal Error : Header or library files for 'libnsl' are missing but are mandatory to compile G'MIC. **"
X- echo "***"
X- exit -1
X-
X-fi
X-
X { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpng" >&5
X $as_echo_n "checking for main in -lpng... " >&6; }
X if test "${ac_cv_lib_png_main+set}" = set; then :
e428313457dac5c88aa07c7c16bf56eb
echo x - gimp-gmic-plugin/files/patch-src_Makefile
sed 's/^X//' >gimp-gmic-plugin/files/patch-src_Makefile << 'e62739bd264004f2f33bec00718b03e0'
X--- src/Makefile.orig 2011-02-07 11:24:18.000000000 +0300
X+++ src/Makefile 2011-02-08 00:08:10.000000000 +0300
X@@ -56,7 +56,7 @@
X USR = /opt/local
X else
X PLUGINDIR=`gimptool-2.0 --gimpplugindir`/plug-ins
X-USR = /usr
X+USR = /usr/X11R6
X endif
X ifeq ($(OS),MINGW32_NT-5.1)
X EXE = .exe
X@@ -101,7 +101,7 @@
X
X # Flags to enable fast display, using XShm.
X XSHM_CFLAGS = -Dcimg_use_xshm
X-XSHM_LDFLAGS = -L$(USR)/X11R6/lib -lXext
X+XSHM_LDFLAGS = -L/usr/X11R6/lib -lXext
X
X # Flags to enable image display, using GDI32.
X GDI32_CFLAGS = -Dcimg_display=2
X@@ -222,6 +222,14 @@
X $(MAKE) bashcompletion
X $(MAKE) gimp
X else
X+ifeq ($(OS),FreeBSD)
X+ @echo "**"
X+ @echo "** FreeBSD configuration"
X+ @echo "**"
X+ $(MAKE) freebsd
X+ $(MAKE) bashcompletion
X+ $(MAKE) gimp
X+else
X ifeq ($(OS),Darwin)
X @echo "**"
X @echo "** MacOSX configuration"
X@@ -238,9 +246,10 @@
X $(MAKE) gimp
X endif
X endif
X+endif
X
X gimp:
X- $(MAKE) "CFLAGS+=$(STD_GIMP_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(STD_GIMP_LDFLAGS)" "STRIP_EXE=1" gmic_gimp
X+ $(MAKE) "CFLAGS+=$(STD_GIMP_CFLAGS)" "LDFLAGS+=$(STD_GIMP_LDFLAGS)" "STRIP_EXE=1" gmic_gimp
X
X lib:
X $(MAKE) "CFLAGS+=$(STD_LIB_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(STD_LIB_LDFLAGS)" gmic_lib
X@@ -255,6 +264,9 @@
X linux:
X $(MAKE) "CFLAGS+=$(STD_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(STD_UNIX_LDFLAGS)" "STRIP_EXE=1" gmic_gmic
X
X+freebsd:
X+ $(MAKE) "CFLAGS+=$(STD_UNIX_CFLAGS)" "LDFLAGS+=$(STD_UNIX_LDFLAGS)" "STRIP_EXE=1" gmic_gmic
X+
X custom:
X $(MAKE) "CFLAGS+=$(CUST_UNIX_CFLAGS) $(OPT_CFLAGS)" "LDFLAGS+=$(CUST_UNIX_LDFLAGS)" "STRIP_EXE=1" gmic_gmic
X
e62739bd264004f2f33bec00718b03e0
echo x - gimp-gmic-plugin/pkg-plist
sed 's/^X//' >gimp-gmic-plugin/pkg-plist << '1f5341eef4d34d6543a3b9376f88ca8e'
Xbin/gmic
X%%BASH%%etc/bash_completion.d/gmic_bashcompletion.sh
X%%PLUGIN_DIR%%/gmic_gimp
X%%PORTDOCS%%%%DOCSDIR%%/album.rss
X%%PORTDOCS%%%%DOCSDIR%%/build-tutorial.sh
X%%PORTDOCS%%%%DOCSDIR%%/chat.shtml
X%%PORTDOCS%%%%DOCSDIR%%/contrast.markdown.txt
X%%PORTDOCS%%%%DOCSDIR%%/copyright.html
X%%PORTDOCS%%%%DOCSDIR%%/definingcommands.markdown.txt
X%%PORTDOCS%%%%DOCSDIR%%/favicon.ico
X%%PORTDOCS%%%%DOCSDIR%%/favicon.png
X%%PORTDOCS%%%%DOCSDIR%%/footer.html
X%%PORTDOCS%%%%DOCSDIR%%/gallery.shtml
X%%PORTDOCS%%%%DOCSDIR%%/gallery_content.html
X%%PORTDOCS%%%%DOCSDIR%%/gimp.shtml
X%%PORTDOCS%%%%DOCSDIR%%/header.html
X%%PORTDOCS%%%%DOCSDIR%%/img/beach.jpg
X%%PORTDOCS%%%%DOCSDIR%%/img/biche.jpg
X%%PORTDOCS%%%%DOCSDIR%%/img/chloe.jpg
X%%PORTDOCS%%%%DOCSDIR%%/img/download_butt.gif
X%%PORTDOCS%%%%DOCSDIR%%/img/gimp_shot.png
X%%PORTDOCS%%%%DOCSDIR%%/img/gimp_shot2.png
X%%PORTDOCS%%%%DOCSDIR%%/img/gimp_shot3.png
X%%PORTDOCS%%%%DOCSDIR%%/img/gimp_shot_big.png
X%%PORTDOCS%%%%DOCSDIR%%/img/house.jpg
X%%PORTDOCS%%%%DOCSDIR%%/img/item_authors.gif
X%%PORTDOCS%%%%DOCSDIR%%/img/item_copyrights.gif
X%%PORTDOCS%%%%DOCSDIR%%/img/item_custom.gif
X%%PORTDOCS%%%%DOCSDIR%%/img/item_documentation.gif
X%%PORTDOCS%%%%DOCSDIR%%/img/item_features.gif
X%%PORTDOCS%%%%DOCSDIR%%/img/item_gallery.gif
X%%PORTDOCS%%%%DOCSDIR%%/img/item_installation.gif
X%%PORTDOCS%%%%DOCSDIR%%/img/item_intro.gif
X%%PORTDOCS%%%%DOCSDIR%%/img/item_license.gif
X%%PORTDOCS%%%%DOCSDIR%%/img/item_licenses.gif
X%%PORTDOCS%%%%DOCSDIR%%/img/item_summary.gif
X%%PORTDOCS%%%%DOCSDIR%%/img/logo.png
X%%PORTDOCS%%%%DOCSDIR%%/img/logo2.png
X%%PORTDOCS%%%%DOCSDIR%%/img/logoGMIC.ppm
X%%PORTDOCS%%%%DOCSDIR%%/img/rss.png
X%%PORTDOCS%%%%DOCSDIR%%/img/ss_anim3d.gif
X%%PORTDOCS%%%%DOCSDIR%%/img/ss_brain3d.jpg
X%%PORTDOCS%%%%DOCSDIR%%/img/ss_caesar.jpg
X%%PORTDOCS%%%%DOCSDIR%%/img/ss_colors3d.jpg
X%%PORTDOCS%%%%DOCSDIR%%/img/ss_cubism.jpg
X%%PORTDOCS%%%%DOCSDIR%%/img/ss_ellipses.jpg
X%%PORTDOCS%%%%DOCSDIR%%/img/ss_lena_denoise.jpg
X%%PORTDOCS%%%%DOCSDIR%%/img/ss_lenacube3d.jpg
X%%PORTDOCS%%%%DOCSDIR%%/img/ss_mandelbrot.png
X%%PORTDOCS%%%%DOCSDIR%%/img/ss_morph.gif
X%%PORTDOCS%%%%DOCSDIR%%/img/ss_object3d.jpg
X%%PORTDOCS%%%%DOCSDIR%%/img/ss_plot.jpg
X%%PORTDOCS%%%%DOCSDIR%%/img/ss_surface.jpg
X%%PORTDOCS%%%%DOCSDIR%%/img/ss_tiger.jpg
X%%PORTDOCS%%%%DOCSDIR%%/img/ss_xlife.jpg
X%%PORTDOCS%%%%DOCSDIR%%/img/ss_xspline.jpg
X%%PORTDOCS%%%%DOCSDIR%%/img/statue.jpg
X%%PORTDOCS%%%%DOCSDIR%%/img/tiger.jpg
X%%PORTDOCS%%%%DOCSDIR%%/index.shtml
X%%PORTDOCS%%%%DOCSDIR%%/introduction.markdown.txt
X%%PORTDOCS%%%%DOCSDIR%%/reference.shtml
X%%PORTDOCS%%%%DOCSDIR%%/repository.shtml
X%%PORTDOCS%%%%DOCSDIR%%/style.css
X%%PORTDOCS%%%%DOCSDIR%%/tutorial-header.markdown.txt
X%%PORTDOCS%%%%DOCSDIR%%/tutorial.shtml
X%%PORTDOCS%%%%DOCSDIR%%/tutorial_photoillustration.pdf
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/img
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X at dirrmtry %%PLUGIN_DIR%%
1f5341eef4d34d6543a3b9376f88ca8e
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list