freebsd-ports/graphics/separate/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

67 lines
1.8 KiB
Makefile

# Created by: Pietro Cerutti <gahr@gahr.ch>
# $FreeBSD$
PORTNAME= separate
PORTVERSION= 0.5.8
PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= graphics
MASTER_SITES= SFJP/separate-plus/47873
DISTNAME= ${PORTNAME}+-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= CMYK plugin for The GIMP
LICENSE= GPLv2
OPTIONS_DEFINE= DOCS EXAMPLES
BUILD_DEPENDS= gccmakedep:${PORTSDIR}/devel/gccmakedep
LIB_DEPENDS= liblcms.so.1:${PORTSDIR}/graphics/lcms \
libgimp-2.0.so:${PORTSDIR}/graphics/gimp-app
USES= gettext-tools gmake pkgconfig zip
BIN_TARGETS= separate separate_import icc_colorspace
L10N_TARGETS= cs es fr ja ko pl ru
.for plugin in ${BIN_TARGETS}
PLIST_FILES+= libexec/gimp/2.2/plug-ins/${plugin}
.endfor
.for lang in ${L10N_TARGETS}
PLIST_FILES+= share/locale/${lang}/LC_MESSAGES/gimp20-separate.mo
.endfor
PORTDOCS= README*
PORTEXAMPLES= qproof.scm qexport.scm
MAKE_ENV+= TARGETS="${BIN_TARGETS}" \
PREFIX=${STAGEDIR}${PREFIX}
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} \
'/^CC/s|=|?=|; s| make| ${MAKE_CMD}|; /^LIBS/s/$$/ -lm/;' \
${WRKSRC}/Makefile ${WRKSRC}/po/Makefile
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
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/sample-scripts && \
${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
.endif
@${CAT} pkg-message
.include <bsd.port.mk>