freebsd-ports/graphics/gimp-gmic-plugin/Makefile
Koop Mast 289883b11b Update ImageMagick to 6.9.10.14 [1]
* Add PKGNAMESUFFIX and rename the directory. This was done to show
  that IM6 is not the "main" version. But still fully supported by upstream.
* Convert a number of options to optionhelpers.
* Add option for ISO/IEC 23008-12:2017 HEIF suport
* Add comment to pkg-descr explaining IM6's "legacy" tag.
* Add comment to the patch-config_policy.xml file why it still needed.

Please note that IM7 is not a drop in replacement due to library API and
command arguments changes. And as a result ports need to decide for themself
which version to use.

Chase these changes in all the ports that using IM6.

PR:		225102 (based on, only the version update) [1]
Submitted by:	Pascal Christen <pascal.christen@hostpoint.ch>
2018-11-10 19:57:07 +00:00

73 lines
2.2 KiB
Makefile

# $FreeBSD$
PORTNAME= gmic
PORTVERSION= 1.6.9
PORTREVISION= 18
CATEGORIES= graphics
MASTER_SITES= http://gmic.eu/files/source/
PKGNAMEPREFIX= gimp-
PKGNAMESUFFIX= -plugin
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= rm@FreeBSD.org
COMMENT= GREYC's Magic Image Converter
LIB_DEPENDS= libGraphicsMagick++.so:graphics/GraphicsMagick \
libIlmImf.so:graphics/openexr \
libopencv_video.so:graphics/opencv \
libMagick++-6.so:graphics/ImageMagick6 \
libavcodec.so:multimedia/ffmpeg \
libfftw3.so:math/fftw3 \
libgimp-2.0.so:graphics/gimp-app \
libcurl.so:ftp/curl
OPTIONS_DEFINE= BASH EXAMPLES
OPTIONS_SUB= yes
BASH_RUN_DEPENDS= bash:shells/bash
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
USES= dos2unix gmake localbase pkgconfig
USE_GCC= yes
USE_GNOME= gtk20
USE_XORG= x11 xext xrandr
DOS2UNIX_FILES= Makefile
PLUGIN_DIR?= libexec/gimp/2.2/plug-ins
PLIST_SUB+= PLUGIN_DIR=${PLUGIN_DIR}
CFLAGS:= ${CFLAGS:N-O*:N-pipe}
CXXFLAGS:= ${CXXFLAGS:N-O*:N-pipe}
DOTLESS_VER= ${PORTVERSION:S/.//g}
PLIST_FILES= bin/gmic \
man/man1/gmic.1.gz \
%%BASH%%etc/bash_completion.d/gmic \
%%PLUGIN_DIR%%/gmic_gimp \
%%PLUGIN_DIR%%/cli_update${DOTLESS_VER}.gmic \
%%PLUGIN_DIR%%/gimp_update${DOTLESS_VER}.gmic
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
PORTEXAMPLES= gmic_in_script.scm gmic_use_lib.cpp
post-patch:
@${REINPLACE_CMD} -e 's#/usr/X11R6#${PREFIX}#g' \
-e 's#/usr/local#${LOCALBASE}#g' \
${WRKSRC}/Makefile
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR}
${INSTALL_PROGRAM} ${WRKSRC}/gmic_gimp ${STAGEDIR}${PREFIX}/${PLUGIN_DIR}
${INSTALL_DATA} ${WRKSRC}/../resources/cli_update${DOTLESS_VER}.gmic \
${WRKSRC}/../resources/gimp_update${DOTLESS_VER}.gmic \
${STAGEDIR}${PREFIX}/${PLUGIN_DIR}
${INSTALL_PROGRAM} ${WRKSRC}/gmic ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/../man/gmic.1.gz ${STAGEDIR}${MAN1PREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
do-install-BASH-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
${INSTALL_SCRIPT} ${WRKSRC}/../resources/gmic_bashcompletion.sh \
${STAGEDIR}${PREFIX}/etc/bash_completion.d/gmic
.include <bsd.port.mk>