net-mgmt/wifimgr: Unbreak when NLS unset

PR:		ports/178335
Approved by:	maintainer timeout (fbsd@opal.com, 16 days)
This commit is contained in:
Chris Rees 2013-05-20 20:16:03 +00:00
parent 082e0e3eac
commit 2b62ed335f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=318625
2 changed files with 19 additions and 1 deletions

View File

@ -20,11 +20,12 @@ INSTALLS_ICONS= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
USES+= gettext pkgconfig
PLIST_SUB+= NLS=""
.else
CFLAGS+= -DWITHOUT_NLS
PLIST_SUB+= NLS="@comment "
MAKE_ENV+= WITHOUT_NLS=${WITHOUT_NLS}
.endif
MAN8= wifimgr.8

View File

@ -0,0 +1,17 @@
--- src/Makefile.orig 2013-05-04 10:02:37.072273048 +0100
+++ src/Makefile 2013-05-04 10:02:40.231274484 +0100
@@ -49,12 +49,14 @@
${PREFIX}/share/icons/hicolor/64x64/apps/wifimgr.png \
${PREFIX}/share/icons/hicolor/scalable/apps/wifimgr.svg
+.ifndef WITHOUT_NLS
langs = ${PREFIX}/share/locale/bg/LC_MESSAGES/wifimgr.mo \
${PREFIX}/share/locale/de/LC_MESSAGES/wifimgr.mo \
${PREFIX}/share/locale/fr/LC_MESSAGES/wifimgr.mo \
${PREFIX}/share/locale/ja/LC_MESSAGES/wifimgr.mo \
${PREFIX}/share/locale/nl/LC_MESSAGES/wifimgr.mo \
${PREFIX}/share/locale/ru/LC_MESSAGES/wifimgr.mo
+.endif
installed = ${PREFIX}/bin/wifimgr \
${PREFIX}/libexec/wifimgrsu \