2013-03-18 10:46:49 +01:00
|
|
|
# Created by: Pietro Cerutti <gahr@gahr.ch>
|
2008-02-16 23:39:17 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= separate
|
2010-11-10 22:15:06 +01:00
|
|
|
PORTVERSION= 0.5.8
|
2013-03-18 10:46:49 +01:00
|
|
|
PORTREVISION= 2
|
2008-07-16 22:37:23 +02:00
|
|
|
PORTEPOCH= 1
|
2008-02-16 23:39:17 +01:00
|
|
|
CATEGORIES= graphics
|
2010-11-10 22:15:06 +01:00
|
|
|
MASTER_SITES= SFJP
|
|
|
|
MASTER_SITE_SUBDIR= separate-plus/47873
|
2008-07-16 22:37:23 +02:00
|
|
|
DISTNAME= ${PORTNAME}+-${PORTVERSION}
|
2008-02-16 23:39:17 +01:00
|
|
|
|
2008-02-21 22:20:01 +01:00
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
2014-02-05 12:09:05 +01:00
|
|
|
COMMENT= CMYK plugin for The GIMP
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
2008-02-16 23:39:17 +01:00
|
|
|
|
2013-03-18 10:46:49 +01:00
|
|
|
BUILD_DEPENDS= gccmakedep:${PORTSDIR}/devel/gccmakedep
|
2013-09-19 12:12:50 +02:00
|
|
|
LIB_DEPENDS= liblcms.so.1:${PORTSDIR}/graphics/lcms \
|
|
|
|
libgimp-2.0.so:${PORTSDIR}/graphics/gimp-app
|
2008-02-16 23:39:17 +01:00
|
|
|
|
2014-03-10 15:49:26 +01:00
|
|
|
USES= gmake pkgconfig zip
|
2008-02-16 23:39:17 +01:00
|
|
|
|
2010-05-17 09:39:16 +02:00
|
|
|
BIN_TARGETS= separate separate_import icc_colorspace
|
2010-11-10 22:15:06 +01:00
|
|
|
L10N_TARGETS= cs es fr ja ko pl ru
|
2008-02-16 23:39:17 +01:00
|
|
|
|
2014-02-05 12:09:05 +01:00
|
|
|
.for plugin in ${BIN_TARGETS}
|
|
|
|
PLIST_FILES+= libexec/gimp/2.2/plug-ins/${plugin}
|
2010-05-17 09:39:16 +02:00
|
|
|
.endfor
|
|
|
|
.for lang in ${L10N_TARGETS}
|
|
|
|
PLIST_FILES+= share/locale/${lang}/LC_MESSAGES/gimp20-separate.mo
|
2008-02-16 23:39:17 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
PORTDOCS= README*
|
2010-05-17 09:39:16 +02:00
|
|
|
PORTEXAMPLES= qproof.scm qexport.scm
|
2008-02-16 23:39:17 +01:00
|
|
|
|
2014-02-05 12:09:05 +01:00
|
|
|
MAKE_ENV+= TARGETS="${BIN_TARGETS}" \
|
|
|
|
PREFIX=${STAGEDIR}${PREFIX}
|
2008-02-16 23:39:17 +01:00
|
|
|
|
2013-09-19 12:12:50 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2010-05-17 09:39:16 +02:00
|
|
|
post-patch:
|
2014-02-05 12:09:05 +01:00
|
|
|
@${REINPLACE_CMD} -e '/^CC/s|=|?=|; s| make| ${MAKE_CMD}|;' \
|
|
|
|
${WRKSRC}/Makefile ${WRKSRC}/po/Makefile
|
2008-02-16 23:39:17 +01:00
|
|
|
|
2014-02-05 12:09:05 +01:00
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/gimp/2.2/plug-ins
|
|
|
|
.for plugin in ${BIN_TARGETS}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${plugin} ${STAGEDIR}${PREFIX}/libexec/gimp/2.2/plug-ins/
|
|
|
|
.endfor
|
|
|
|
.for lang in ${L10N_TARGETS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/po/${lang}.gmo ${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES/gimp20-separate.mo
|
|
|
|
.endfor
|
2013-09-19 12:12:50 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-02-05 12:09:05 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2008-02-16 23:39:17 +01:00
|
|
|
.endif
|
2014-02-05 12:09:05 +01:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2010-05-17 09:39:16 +02:00
|
|
|
cd ${WRKSRC}/sample-scripts && \
|
2014-02-05 12:09:05 +01:00
|
|
|
${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
|
2008-02-16 23:39:17 +01:00
|
|
|
.endif
|
|
|
|
@${CAT} pkg-message
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|