aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshaun <shaun@FreeBSD.org>2006-08-07 21:57:21 +0800
committershaun <shaun@FreeBSD.org>2006-08-07 21:57:21 +0800
commitd796220ada4adca088da23b6df7a5cf59a396dcc (patch)
treecdb5047f2e20676d6ab58987d0245851fe13e1ea
parente2885789e660ead5fb3619c8297114078dd3ad2a (diff)
downloadfreebsd-ports-gnome-d796220ada4adca088da23b6df7a5cf59a396dcc.tar.gz
freebsd-ports-gnome-d796220ada4adca088da23b6df7a5cf59a396dcc.tar.zst
freebsd-ports-gnome-d796220ada4adca088da23b6df7a5cf59a396dcc.zip
- Add missing locale files to plist. [1]
- Add WITHOUT_NLS knob. - Fix build when PREFIX != /usr/local. PR: ports/101488 [1] Submitted by: Stanislav Sedov <ssedov@mbsd.msk.ru>
-rw-r--r--mail/elmo/Makefile10
-rw-r--r--mail/elmo/pkg-plist6
2 files changed, 13 insertions, 3 deletions
diff --git a/mail/elmo/Makefile b/mail/elmo/Makefile
index 5e99a4f6db55..376e90be9a32 100644
--- a/mail/elmo/Makefile
+++ b/mail/elmo/Makefile
@@ -17,7 +17,6 @@ COMMENT= Receive, filter, read, compose and send mail at the text console
CONFLICTS= elmo-devel-*
GNU_CONFIGURE= yes
-USE_GETTEXT= yes
USE_ICONV= yes
USE_OPENSSL= yes
USE_PERL5_RUN= yes
@@ -26,6 +25,15 @@ CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
MAN1= elmo.1 elmoconf.pl.1
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+CONFIGURE_ARGS+=--with-libintl-prefix="${LOCALBASE}"
+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/pkg-plist b/mail/elmo/pkg-plist
index f291a5d4444a..9f1744f49be1 100644
--- a/mail/elmo/pkg-plist
+++ b/mail/elmo/pkg-plist
@@ -2,6 +2,8 @@ bin/elmo
bin/elmoconf.pl
%%DATADIR%%/template
%%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%%