aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-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