a49cb0f435
This was missed in the upgrade of graphics/opencv. Reported by: VVD
73 lines
2.2 KiB
Makefile
73 lines
2.2 KiB
Makefile
PORTNAME= gmic
|
|
PORTVERSION= 1.6.9
|
|
PORTREVISION= 36
|
|
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
|
|
|
|
BROKEN= OpenCV4 no longer ships OpencCV-1.0 headers
|
|
|
|
LIB_DEPENDS= libGraphicsMagick++.so:graphics/GraphicsMagick \
|
|
libOpenEXR.so:graphics/openexr \
|
|
libopencv_video.so:graphics/opencv \
|
|
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 gnome localbase magick:6 pkgconfig xorg
|
|
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>
|