From 804f68e42a644b267bca4ee581bf13588eed388e Mon Sep 17 00:00:00 2001 From: Shaun Amott Date: Mon, 7 Aug 2006 13:57:21 +0000 Subject: [PATCH] - 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 --- mail/elmo/Makefile | 10 +++++++++- mail/elmo/pkg-plist | 6 ++++-- 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 .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%%