aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/elmo-devel/Makefile9
-rw-r--r--mail/elmo-devel/pkg-plist6
2 files changed, 12 insertions, 3 deletions
diff --git a/mail/elmo-devel/Makefile b/mail/elmo-devel/Makefile
index 00625d73514c..a026c8606ff2 100644
--- a/mail/elmo-devel/Makefile
+++ b/mail/elmo-devel/Makefile
@@ -18,7 +18,6 @@ COMMENT= Receive, filter, read, compose and send mail at the text console
CONFLICTS= elmo-[0-9]*
GNU_CONFIGURE= yes
-USE_GETTEXT= yes
USE_ICONV= yes
USE_OPENSSL= yes
USE_PERL5_RUN= yes
@@ -30,6 +29,14 @@ CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" \
MAN1= elmo.1 elmoconf.pl.1
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+PLIST_SUB+= NLS=""
+USE_GETTEXT= yes
+.endif
+
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/lib/libgpgme03.so) || defined(WITH_GPGME)
diff --git a/mail/elmo-devel/pkg-plist b/mail/elmo-devel/pkg-plist
index a06a458bfcfb..40f933de938b 100644
--- a/mail/elmo-devel/pkg-plist
+++ b/mail/elmo-devel/pkg-plist
@@ -5,7 +5,9 @@ bin/elmoconf.pl
%%DATADIR%%/themes/README
%%DATADIR%%/themes/outlook
%%DATADIR%%/tutorial
-share/locale/de/LC_MESSAGES/elmo.mo
-share/locale/pl/LC_MESSAGES/elmo.mo
+%%NLS%%share/locale/de/LC_MESSAGES/elmo.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/elmo.mo
+%%NLS%%@dirrmtry share/locale/pl/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/pl
@dirrm %%DATADIR%%/themes
@dirrm %%DATADIR%%