1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/graphics/gimp-gmic-plugin/Makefile
Matthias Andree d1cfeab07e Update ilmbase and openexr to 2.3.0, rename OpenEXR to openexr.
Release notes: <https://github.com/openexr/openexr/releases/tag/v2.3.0>

Adjust LIB_DEPENDS of all ports that require ilmbase or openexr to chase
the new lower-case spelling of the name, and to omit the version from the
library name to ease future maintenance.

Bump PORTREVISION of all ports that depend on ilmbase or openexr directly,
so that they all get rebuilt on upgrades.

Add patches to graphics/ampasCTL to keep it alive, with (a) ilmbase now
that its Iex::BaseExc class is no longer derived from std::string,
details were given upstream through https://github.com/ampas/CTL/issues/71
and (b) to unwind semicolon/;-lists in cmake that stem from openexr/
ilmbase pkg-config variables.
(Note ampasCTL is unmaintained as FreeBSD port, and upstream,
and I cannot run-time test it.)

Poudriere build tests on 11.2-RELEASE-p1 amd64 of ALL ports depending
directly or indirectly on ilmbase and/or openexr have passed without
regressions.  Thus invoking due diligence, I believe I have done the
equivalent of an -exp run, and do not require approval for the dependency
chases to third-party ports.
2018-09-22 10:15:22 +00:00

73 lines
2.2 KiB
Makefile

# $FreeBSD$
PORTNAME= gmic
PORTVERSION= 1.6.9
PORTREVISION= 16
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/ImageMagick \
libavcodec.so:multimedia/ffmpeg \
libfftw3.so:math/fftw3 \
libgimp-2.0.so:graphics/gimp-app
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>