2011-02-10 18:13:26 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gmic
|
2014-10-04 14:33:27 +02:00
|
|
|
PORTVERSION= 1.6.0.0
|
2015-10-11 18:20:41 +02:00
|
|
|
PORTREVISION= 4
|
2011-02-10 18:13:26 +01:00
|
|
|
CATEGORIES= graphics
|
2014-05-20 10:31:28 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/older_versions/ \
|
|
|
|
SF/${PORTNAME}/
|
2011-02-10 18:13:26 +01:00
|
|
|
PKGNAMEPREFIX= gimp-
|
|
|
|
PKGNAMESUFFIX= -plugin
|
2011-02-12 04:20:54 +01:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
2011-02-10 18:13:26 +01:00
|
|
|
|
2011-11-10 23:20:18 +01:00
|
|
|
MAINTAINER= rm@FreeBSD.org
|
2011-02-10 18:13:26 +01:00
|
|
|
COMMENT= GREYC's Magic Image Converter
|
|
|
|
|
2014-06-17 21:26:39 +02:00
|
|
|
LIB_DEPENDS= libGraphicsMagick++.so:${PORTSDIR}/graphics/GraphicsMagick \
|
2013-09-20 15:35:29 +02:00
|
|
|
libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \
|
2015-01-18 22:12:42 +01:00
|
|
|
libMagick++-6.so:${PORTSDIR}/graphics/ImageMagick \
|
2013-09-20 15:35:29 +02:00
|
|
|
libavcodec.so:${PORTSDIR}/multimedia/ffmpeg \
|
|
|
|
libfftw3.so:${PORTSDIR}/math/fftw3 \
|
|
|
|
libgimp-2.0.so:${PORTSDIR}/graphics/gimp-app
|
2011-02-10 18:13:26 +01:00
|
|
|
|
2012-06-03 23:39:32 +02:00
|
|
|
OPTIONS_DEFINE= BASH
|
2013-12-23 11:42:08 +01:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
BASH_RUN_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
|
2011-02-10 18:13:26 +01:00
|
|
|
|
2012-02-15 05:46:46 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
|
2011-02-10 18:13:26 +01:00
|
|
|
|
2015-01-17 20:15:09 +01:00
|
|
|
USES= gmake pkgconfig
|
2014-02-22 22:59:57 +01:00
|
|
|
USE_GCC= yes
|
2011-02-12 04:20:54 +01:00
|
|
|
USE_GNOME= gtk20
|
2011-02-10 18:13:26 +01:00
|
|
|
USE_XORG= x11 xext xrandr
|
|
|
|
|
|
|
|
PLUGIN_DIR?= libexec/gimp/2.2/plug-ins
|
|
|
|
PLIST_SUB+= PLUGIN_DIR=${PLUGIN_DIR}
|
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2011-02-10 18:13:26 +01:00
|
|
|
CFLAGS:= ${CFLAGS:N-O*:N-pipe}
|
|
|
|
CXXFLAGS:= ${CXXFLAGS:N-O*:N-pipe}
|
|
|
|
|
2013-12-23 11:42:08 +01:00
|
|
|
PLIST_FILES= bin/gmic \
|
|
|
|
man/man1/gmic.1.gz \
|
|
|
|
%%BASH%%etc/bash_completion.d/gmic_bashcompletion.sh \
|
|
|
|
%%PLUGIN_DIR%%/gmic_gimp
|
2011-02-10 18:13:26 +01:00
|
|
|
|
2014-02-22 22:59:57 +01:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
PORTEXAMPLES= gmic_in_script.scm gmic_use_lib.cpp
|
|
|
|
|
2011-09-06 20:20:02 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2011-02-10 18:13:26 +01:00
|
|
|
|
2011-09-06 20:20:02 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's#/usr/X11R6#${PREFIX}#g' \
|
2012-02-15 05:46:46 +01:00
|
|
|
${WRKSRC}/Makefile
|
2011-02-10 18:13:26 +01:00
|
|
|
|
|
|
|
do-install:
|
2013-12-23 11:42:08 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/gmic_gimp ${STAGEDIR}${PREFIX}/${PLUGIN_DIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/gmic ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/../man/gmic.1.gz ${STAGEDIR}${MAN1PREFIX}/man/man1
|
2014-02-22 22:59:57 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
|
2012-06-03 23:39:32 +02:00
|
|
|
.if ${PORT_OPTIONS:MBASH}
|
2013-12-23 11:42:08 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
|
2014-06-02 09:54:40 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/../resources/gmic_bashcompletion.sh \
|
2013-12-23 11:42:08 +01:00
|
|
|
${STAGEDIR}${PREFIX}/etc/bash_completion.d
|
2011-02-10 18:13:26 +01:00
|
|
|
.endif
|
|
|
|
|
2011-09-06 20:20:02 +02:00
|
|
|
.include <bsd.port.mk>
|