diff options
author | lme <lme@FreeBSD.org> | 2013-05-11 04:11:20 +0800 |
---|---|---|
committer | lme <lme@FreeBSD.org> | 2013-05-11 04:11:20 +0800 |
commit | 8e48987839ae2a61de91ddf607b466f9ac623926 (patch) | |
tree | 47da909cebcdc7c0528f9ee87b040e63fc3dbe39 /x11-wm/wmconfig | |
parent | f83e7407c1fa3fedd9a4c4db8dfd48faf667ed9b (diff) | |
download | freebsd-ports-gnome-8e48987839ae2a61de91ddf607b466f9ac623926.tar.gz freebsd-ports-gnome-8e48987839ae2a61de91ddf607b466f9ac623926.tar.zst freebsd-ports-gnome-8e48987839ae2a61de91ddf607b466f9ac623926.zip |
- Update to 1.3.8 [1]
- Convert to OptionsNG [1]
- Fix build with clang
PR: ports/177242 [1]
Submitted by: maintainer
Diffstat (limited to 'x11-wm/wmconfig')
-rw-r--r-- | x11-wm/wmconfig/Makefile | 20 | ||||
-rw-r--r-- | x11-wm/wmconfig/distinfo | 4 | ||||
-rw-r--r-- | x11-wm/wmconfig/files/patch-package.c | 26 | ||||
-rw-r--r-- | x11-wm/wmconfig/pkg-plist | 3 |
4 files changed, 49 insertions, 4 deletions
diff --git a/x11-wm/wmconfig/Makefile b/x11-wm/wmconfig/Makefile index 7fd3a6eb06d8..6a245663cfba 100644 --- a/x11-wm/wmconfig/Makefile +++ b/x11-wm/wmconfig/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= wmconfig -PORTVERSION= 1.3.7 +PORTVERSION= 1.3.8 CATEGORIES= x11-wm MASTER_SITES= http://www.arrishq.net/files/ @@ -18,8 +18,24 @@ MAN1= wmconfig.1x PORTDOCS= AUTHORS ChangeLog COPYING README TODO +OPTIONS_DEFINE= NLS DOCS +OPTIONS_DEFAULT= NLS DOCS + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} +USE_GETTEXT= yes +CONFIGURE_ARGS+=--enable-nls +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib +PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+=--disable-nls +PLIST_SUB= NLS="@comment " +.endif + post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} .for i in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} diff --git a/x11-wm/wmconfig/distinfo b/x11-wm/wmconfig/distinfo index 26a37e6b757c..f41c25fe4504 100644 --- a/x11-wm/wmconfig/distinfo +++ b/x11-wm/wmconfig/distinfo @@ -1,2 +1,2 @@ -SHA256 (wmconfig-1.3.7.tar.bz2) = 2c9adc8ea1d63436fed85a311bbb9f4c0072fb081e08b0604ed3e2de076b86cb -SIZE (wmconfig-1.3.7.tar.bz2) = 136598 +SHA256 (wmconfig-1.3.8.tar.bz2) = 7b284ccbf664416ceef9d34095fe97794730eab6345922cc9e6a62f5c3551e5f +SIZE (wmconfig-1.3.8.tar.bz2) = 222738 diff --git a/x11-wm/wmconfig/files/patch-package.c b/x11-wm/wmconfig/files/patch-package.c new file mode 100644 index 000000000000..c1369dc63d3d --- /dev/null +++ b/x11-wm/wmconfig/files/patch-package.c @@ -0,0 +1,26 @@ +--- ./package.c.orig 2013-05-10 21:55:40.000000000 +0200 ++++ ./package.c 2013-05-10 21:56:27.000000000 +0200 +@@ -228,17 +228,18 @@ + return; + } + ++static char *w_getenv(const char *envname) { ++ char *envvalue; ++ if (! (envvalue = getenv (envname) )) return 0; ++ return strdup(envvalue); ++} ++ + /* + * Mark packages, which are deemed not to exist, to be skipped. + */ + + static int package_exists(struct package *pkg) + { +- char *w_getenv(const char *envname) { +- char *envvalue; +- if (! (envvalue = getenv (envname) )) return 0; +- return strdup(envvalue); +- } + char *buf, *cmd, *p, *b, *c; + char *PATH = w_getenv("PATH"); + int len; diff --git a/x11-wm/wmconfig/pkg-plist b/x11-wm/wmconfig/pkg-plist index 3c4c07dd0fc9..115f0c1e47d9 100644 --- a/x11-wm/wmconfig/pkg-plist +++ b/x11-wm/wmconfig/pkg-plist @@ -17,3 +17,6 @@ etc/wmconfig/Shells etc/wmconfig/System etc/wmconfig/Utilities @dirrm etc/wmconfig +%%NLS%%share/locale/de/LC_MESSAGES/wmconfig.mo +%%NLS%%share/locale/fr/LC_MESSAGES/wmconfig.mo +%%NLS%%share/locale/ru/LC_MESSAGES/wmconfig.mo |