diff --git a/net-mgmt/wifimgr/Makefile b/net-mgmt/wifimgr/Makefile index 3d877e19c9f2..e1f86b36335f 100644 --- a/net-mgmt/wifimgr/Makefile +++ b/net-mgmt/wifimgr/Makefile @@ -20,11 +20,12 @@ INSTALLS_ICONS= yes .include .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 diff --git a/net-mgmt/wifimgr/files/patch-src-Makefile b/net-mgmt/wifimgr/files/patch-src-Makefile new file mode 100644 index 000000000000..d6434aa933d9 --- /dev/null +++ b/net-mgmt/wifimgr/files/patch-src-Makefile @@ -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 \