summaryrefslogtreecommitdiff
path: root/mail/anubis
diff options
context:
space:
mode:
authorSergei Kolobov <sergei@FreeBSD.org>2004-10-13 12:34:06 +0000
committerSergei Kolobov <sergei@FreeBSD.org>2004-10-13 12:34:06 +0000
commit20de7d2bcd95bdac5daf4a64e6f514797ac1d962 (patch)
tree82b76ac2b2af66162dda4b4611cc29709c713976 /mail/anubis
parent- Fix gcc regression in STABLE (diff)
- This port installs GNU message catalogs, so add explicit USE_GETTEXT
and USE_ICONV, respect WITHOUT_NLS knob - Bump PORTREVISION PR: ports/71575 Submitted by: leeym
Notes
Notes: svn path=/head/; revision=119220
Diffstat (limited to 'mail/anubis')
-rw-r--r--mail/anubis/Makefile11
-rw-r--r--mail/anubis/pkg-plist4
2 files changed, 12 insertions, 3 deletions
diff --git a/mail/anubis/Makefile b/mail/anubis/Makefile
index a0cf2d21a523..85cc1b63f02b 100644
--- a/mail/anubis/Makefile
+++ b/mail/anubis/Makefile
@@ -19,7 +19,7 @@
PORTNAME= anubis
PORTVERSION= 3.6.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -34,6 +34,15 @@ CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split" LDFLAGS="${LDFLAGS}"
LDFLAGS+= -L${LOCALBASE}/lib
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+USE_ICONV= yes
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.endif
+
# Select TLS/SSL API: either OpenSSL (default), GnuTLS, or none
.if defined(WITH_GNUTLS)
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
diff --git a/mail/anubis/pkg-plist b/mail/anubis/pkg-plist
index fb1ff22f659d..dcc66686487c 100644
--- a/mail/anubis/pkg-plist
+++ b/mail/anubis/pkg-plist
@@ -15,5 +15,5 @@ etc/rc.d/anubis.sh.sample
%%PAM%%%%EXAMPLESDIR%%/pam/anubis.deny
%%PAM%%@dirrm %%EXAMPLESDIR%%/pam
@dirrm %%EXAMPLESDIR%%
-share/locale/fr/LC_MESSAGES/anubis.mo
-share/locale/tr/LC_MESSAGES/anubis.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/anubis.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/anubis.mo