aboutsummaryrefslogtreecommitdiff
path: root/graphics/gimp-gmic-plugin/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2011-02-10 17:13:26 +0000
committerMartin Wilke <miwi@FreeBSD.org>2011-02-10 17:13:26 +0000
commit468c601157166ed706b4f1f24144477ed4690c95 (patch)
tree25b843b1ff02ae6005770c9d844b52c35b8cc9b3 /graphics/gimp-gmic-plugin/Makefile
parent627b060d867735f847b92bad3383f19c7552dacd (diff)
downloadports-468c601157166ed706b4f1f24144477ed4690c95.tar.gz
ports-468c601157166ed706b4f1f24144477ed4690c95.zip
Notes
Diffstat (limited to 'graphics/gimp-gmic-plugin/Makefile')
-rw-r--r--graphics/gimp-gmic-plugin/Makefile74
1 files changed, 74 insertions, 0 deletions
diff --git a/graphics/gimp-gmic-plugin/Makefile b/graphics/gimp-gmic-plugin/Makefile
new file mode 100644
index 000000000000..78374f3e874a
--- /dev/null
+++ b/graphics/gimp-gmic-plugin/Makefile
@@ -0,0 +1,74 @@
+# New ports collection makefile for: gimp-gmic-plugin
+# Date created: 07 Feb 2011
+# Whom: Mahmatkhanov Ruslan <cvs-src@yandex.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gmic
+PORTVERSION= 1.4.8.1
+CATEGORIES= graphics
+MASTER_SITES= SF/${PORTNAME}
+PKGNAMEPREFIX= gimp-
+PKGNAMESUFFIX= -plugin
+DISTNAME= ${PORTNAME}_${PORTVERSION}_testing
+
+MAINTAINER= cvs-src@yandex.ru
+COMMENT= GREYC's Magic Image Converter
+
+LIB_DEPENDS= GraphicsMagick++.1:${PORTSDIR}/graphics/GraphicsMagick \
+ IlmImf.6:${PORTSDIR}/graphics/OpenEXR \
+ Magick++.4:${PORTSDIR}/graphics/ImageMagick \
+ avcodec.1:${PORTSDIR}/multimedia/ffmpeg \
+ cv.2:${PORTSDIR}/graphics/opencv \
+ fftw3.5:${PORTSDIR}/math/fftw3 \
+ gimp-2.0:${PORTSDIR}/graphics/gimp-app
+
+OPTIONS= BASH "Install programmable completions for Bash" off
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_XORG= x11 xext xrandr
+
+PLUGIN_DIR?= libexec/gimp/2.2/plug-ins
+PLIST_SUB+= PLUGIN_DIR=${PLUGIN_DIR}
+
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+CFLAGS:= ${CFLAGS:N-O*:N-pipe}
+CXXFLAGS:= ${CXXFLAGS:N-O*:N-pipe}
+
+MAN1= gmic.1
+MANCOMPRESSED= yes
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_BASH)
+RUN_DEPENDS+= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
+PLIST_SUB+= BASH=""
+.else
+PLIST_SUB+= BASH="@comment "
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's#/usr/X11R6#${PREFIX}#g' \
+ ${WRKSRC}/src/Makefile
+
+do-install:
+ @${MKDIR} ${PREFIX}/${PLUGIN_DIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/gmic_gimp ${PREFIX}/${PLUGIN_DIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/gmic ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/man/gmic.1.gz ${MANPREFIX}/man/man1
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}/img
+ @${CP} -R ${WRKSRC}/html/*.* ${DOCSDIR}
+ @(cd ${WRKSRC}/html/img && ${COPYTREE_SHARE} \* ${DOCSDIR}/img)
+.endif
+.if defined(WITH_BASH)
+ ${INSTALL_SCRIPT} ${WRKSRC}/src/gmic_bashcompletion.sh \
+ ${PREFIX}/etc/bash_completion.d
+.endif
+
+.include <bsd.port.post.mk>