aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/filtermail/Makefile9
-rw-r--r--mail/filtermail/pkg-plist14
2 files changed, 15 insertions, 8 deletions
diff --git a/mail/filtermail/Makefile b/mail/filtermail/Makefile
index 2dee27d191a..0422a723d48 100644
--- a/mail/filtermail/Makefile
+++ b/mail/filtermail/Makefile
@@ -29,7 +29,6 @@ EXTRACT_AFTER_ARGS= | ${SED} 's/[mM][aA][iI][lL][fF][iI][lL][tT][eE][rR]/filterm
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_GETOPT_LONG= yes
-USE_GETTEXT= yes
USE_BISON= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
@@ -42,6 +41,14 @@ MAN5= filtermailex.5 filtermailrc.5
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
post-extract:
@${RM} -f ${WRKSRC}/src/getopt.h
diff --git a/mail/filtermail/pkg-plist b/mail/filtermail/pkg-plist
index bf3d0e7e24f..a5f062278a1 100644
--- a/mail/filtermail/pkg-plist
+++ b/mail/filtermail/pkg-plist
@@ -1,8 +1,8 @@
bin/filtermail
-share/locale/de/LC_MESSAGES/filtermail.mo
-share/locale/el/LC_MESSAGES/filtermail.mo
-share/locale/es/LC_MESSAGES/filtermail.mo
-share/locale/fr/LC_MESSAGES/filtermail.mo
-share/locale/it/LC_MESSAGES/filtermail.mo
-share/locale/pt_BR/LC_MESSAGES/filtermail.mo
-share/locale/ru/LC_MESSAGES/filtermail.mo
+%%NLS%%share/locale/de/LC_MESSAGES/filtermail.mo
+%%NLS%%share/locale/el/LC_MESSAGES/filtermail.mo
+%%NLS%%share/locale/es/LC_MESSAGES/filtermail.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/filtermail.mo
+%%NLS%%share/locale/it/LC_MESSAGES/filtermail.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/filtermail.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/filtermail.mo