a6c6d9cd12
Approved by: miwi (co-mentor) Feature safe: yes
75 lines
2 KiB
Makefile
75 lines
2 KiB
Makefile
# 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.5.0.6
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SF/${PORTNAME} \
|
|
SF/${PORTNAME}/old
|
|
PKGNAMEPREFIX= gimp-
|
|
PKGNAMESUFFIX= -plugin
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
MAINTAINER= rm@FreeBSD.org
|
|
COMMENT= GREYC's Magic Image Converter
|
|
|
|
LIB_DEPENDS= GraphicsMagick++.6:${PORTSDIR}/graphics/GraphicsMagick13 \
|
|
IlmImf.6:${PORTSDIR}/graphics/OpenEXR \
|
|
Magick++.5:${PORTSDIR}/graphics/ImageMagick \
|
|
avcodec.1:${PORTSDIR}/multimedia/ffmpeg \
|
|
fftw3:${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_GNOME= gtk20
|
|
USE_XORG= x11 xext xrandr
|
|
|
|
PLUGIN_DIR?= libexec/gimp/2.2/plug-ins
|
|
PLIST_SUB+= PLUGIN_DIR=${PLUGIN_DIR}
|
|
|
|
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.options.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' \
|
|
-e 's/-lcv -lhighgui/-lopencv_legacy/g' \
|
|
${WRKSRC}/src/Makefile
|
|
# GMIC is broken with OpenCV 2.3.1, so disable it for now
|
|
# @${REINPLACE_CMD} -e 's/-lcv/-lopencv_legacy/g' \
|
|
# -e 's/-lhighgui/-lopencv_legacy/g' \
|
|
# ${WRKSRC}/configure
|
|
|
|
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 ${MAN1PREFIX}/man/man1
|
|
.if defined(WITH_BASH)
|
|
${INSTALL_SCRIPT} ${WRKSRC}/src/gmic_bashcompletion.sh \
|
|
${PREFIX}/etc/bash_completion.d/gmic_bashcompletion.sh
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|