Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Oct 2015 14:57:01 +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: r399985 - in head/graphics/gimp-wavelet-decompose-plugin: . files
Message-ID:  <201510221457.t9MEv14k023430@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510221457.t9MEv14k023430>