Date: Thu, 22 Oct 2015 17:24:14 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r400002 - head/graphics/gimp-wavelet-denoise-plugin Message-ID: <201510221724.t9MHOEAt069239@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Thu Oct 22 17:24:14 2015 New Revision: 400002 URL: https://svnweb.freebsd.org/changeset/ports/400002 Log: - Add LICENSE_FILE - Switch to options helpers Modified: head/graphics/gimp-wavelet-denoise-plugin/Makefile Modified: head/graphics/gimp-wavelet-denoise-plugin/Makefile ============================================================================== --- head/graphics/gimp-wavelet-denoise-plugin/Makefile Thu Oct 22 17:23:48 2015 (r400001) +++ head/graphics/gimp-wavelet-denoise-plugin/Makefile Thu Oct 22 17:24:14 2015 (r400002) @@ -13,14 +13,11 @@ MAINTAINER= ports@FreeBSD.org COMMENT= GIMP plugin to reduce noise in each channel of an image separately LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/gimp-2.0.pc:${PORTSDIR}/graphics/gimp-app RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/gimp-2.0.pc:${PORTSDIR}/graphics/gimp-app -OPTIONS_DEFINE= NLS OPTIMIZED_CFLAGS -OPTIONS_DEFAULT= OPTIMIZED_CFLAGS -OPTIONS_SUB= yes - USES= gettext gmake pkgconfig PLIST_SUB= GIMP_PLUGIN_DIR=${GIMP_PLUGIN_DIR} @@ -29,41 +26,33 @@ GIMP_PLUGIN_DIR= libexec/gimp/2.2/plug-i # l10n languages LANGUAGES= de et it pl ru -.include <bsd.port.options.mk> +OPTIONS_DEFINE= NLS OPTIMIZED_CFLAGS +OPTIONS_DEFAULT= OPTIMIZED_CFLAGS +OPTIONS_SUB= yes -# optimized CFLAGS -.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} -CFLAGS+= -O3 -.endif +OPTIMIZED_CFLAGS_CFLAGS= -O3 post-patch: @${REINPLACE_CMD} \ -e 's|gimptool-2.0|${LOCALBASE}/bin/gimptool-2.0|' \ -e '/^LIBS =/s/$$/ -lm/' \ ${WRKSRC}/src/Makefile -# -## l10n -# disable l10n if appropriate -.if ! ${PORT_OPTIONS:MNLS} + +post-patch-NLS-off: @${REINPLACE_CMD} -E \ -e 's|(^all:.*)po |\1|' \ ${WRKSRC}/Makefile -.endif do-install: -# plugin @${MKDIR} ${STAGEDIR}${PREFIX}/${GIMP_PLUGIN_DIR} ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} \ ${STAGEDIR}${PREFIX}/${GIMP_PLUGIN_DIR} -# -## l10n -# -.if ${PORT_OPTIONS:MNLS} + +do-install-NLS-on: .for language in ${LANGUAGES} @${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${language}/LC_MESSAGES/ ${INSTALL_DATA} ${WRKSRC}/po/${language}.mo \ ${STAGEDIR}${PREFIX}/share/locale/${language}/LC_MESSAGES/gimp20-${PORTNAME}-plug-in.mo .endfor -.endif .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510221724.t9MHOEAt069239>