aboutsummaryrefslogtreecommitdiffstats
path: root/mail/elmo-devel
diff options
context:
space:
mode:
authorshaun <shaun@FreeBSD.org>2006-08-07 21:35:49 +0800
committershaun <shaun@FreeBSD.org>2006-08-07 21:35:49 +0800
commite2885789e660ead5fb3619c8297114078dd3ad2a (patch)
treeccc36fd140b266cc1bb0d5a4f4818a8a8a4d13c0 /mail/elmo-devel
parent8834b45f3bc8e00f6b6994f23ded80faaf7669f0 (diff)
downloadfreebsd-ports-gnome-e2885789e660ead5fb3619c8297114078dd3ad2a.tar.gz
freebsd-ports-gnome-e2885789e660ead5fb3619c8297114078dd3ad2a.tar.zst
freebsd-ports-gnome-e2885789e660ead5fb3619c8297114078dd3ad2a.zip
- Add missing locale files to plist. [1]
- Add WITHOUT_NLS knob. PR: ports/101476 Submitted by: Stanislav Sedov <ssedov@mbsd.msk.ru>
Diffstat (limited to 'mail/elmo-devel')
-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%%