mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Add LICENSE_FILE
- Switch to options helpers - Regenerate patches with `make makepatch` - Don't remove -Wall
This commit is contained in:
parent
c7724ee808
commit
dd250ff253
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=399985
2 changed files with 15 additions and 29 deletions
|
@ -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
|
||||
LANGUAGES= de ru it pl
|
||||
|
||||
# installed files
|
||||
PLIST_FILES= ${PLUGIN_DIR}/wavelet-decompose
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
LANGUAGES= de ru it pl
|
||||
|
||||
OPTIONS_DEFINE= NLS
|
||||
|
||||
.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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue