svn commit: r399985 - in head/graphics/gimp-wavelet-decompose-plugin: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Thu Oct 22 14:57:02 UTC 2015
Author: amdmi3
Date: Thu Oct 22 14:57:00 2015
New Revision: 399985
URL: https://svnweb.freebsd.org/changeset/ports/399985
Log:
- Add LICENSE_FILE
- Switch to options helpers
- Regenerate patches with `make makepatch`
- Don't remove -Wall
Modified:
head/graphics/gimp-wavelet-decompose-plugin/Makefile
head/graphics/gimp-wavelet-decompose-plugin/files/patch-src__Makefile
Modified: head/graphics/gimp-wavelet-decompose-plugin/Makefile
==============================================================================
--- head/graphics/gimp-wavelet-decompose-plugin/Makefile Thu Oct 22 14:13:52 2015 (r399984)
+++ head/graphics/gimp-wavelet-decompose-plugin/Makefile Thu Oct 22 14:57:00 2015 (r399985)
@@ -13,57 +13,43 @@ MAINTAINER= ports at FreeBSD.org
COMMENT= Gimp plugin to losslessly decompose images into wavelet scales layers
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
-
USES= gettext gmake pkgconfig
PLUGIN_DIR?= libexec/gimp/2.2/plug-ins
-# l10n languages
+PLIST_FILES= ${PLUGIN_DIR}/wavelet-decompose
+
LANGUAGES= de ru it pl
-# installed files
-PLIST_FILES= ${PLUGIN_DIR}/wavelet-decompose
+OPTIONS_DEFINE= NLS
-.include <bsd.port.options.mk>
+.for language in ${LANGUAGES}
+NLS_PLIST_FILES+= share/locale/${language}/LC_MESSAGES/gimp20-${PORTNAME}-plug-in.mo
+.endfor
post-patch:
@${REINPLACE_CMD} \
-e 's|gimptool-2.0|${LOCALBASE}/bin/gimptool-2.0|' \
${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
-
-## l10n
-#
-.if ${PORT_OPTIONS:MNLS}
-.for language in ${LANGUAGES}
-PLIST_FILES+= share/locale/${language}/LC_MESSAGES/gimp20-${PORTNAME}-plug-in.mo
-.endfor
-.endif
do-install:
-# plugin
@${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR}
${INSTALL_PROGRAM} ${WRKSRC}/src/wavelet-decompose ${STAGEDIR}${PREFIX}/${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>
Modified: head/graphics/gimp-wavelet-decompose-plugin/files/patch-src__Makefile
==============================================================================
--- head/graphics/gimp-wavelet-decompose-plugin/files/patch-src__Makefile Thu Oct 22 14:13:52 2015 (r399984)
+++ head/graphics/gimp-wavelet-decompose-plugin/files/patch-src__Makefile Thu Oct 22 14:57:00 2015 (r399985)
@@ -1,8 +1,8 @@
---- src/Makefile.orig 2014-03-22 22:50:21.000000000 -0300
-+++ src/Makefile 2014-03-22 22:50:36.000000000 -0300
+--- src/Makefile.orig 2008-12-30 10:23:34 UTC
++++ src/Makefile
@@ -1,4 +1,4 @@
-CFLAGS = -O3 -Wall $(shell gimptool-2.0 --cflags)
-+CFLAGS = $(shell gimptool-2.0 --cflags)
++CFLAGS = -Wall $(shell gimptool-2.0 --cflags)
LIBS = $(shell gimptool-2.0 --libs)
PLUGIN = wavelet-decompose
SOURCES = plugin.c wavelet.c interface.c decompose.c
More information about the svn-ports-all
mailing list