diff options
author | krion <krion@FreeBSD.org> | 2004-07-11 04:40:06 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2004-07-11 04:40:06 +0800 |
commit | 90fead2f113072da0cc71d293152000b37dbf6bb (patch) | |
tree | 97fb8a09a8df99a62bd91a6e72ef8885cfc41dff | |
parent | 6939f4686be14077063d363ad36889b5b3347ce1 (diff) | |
download | freebsd-ports-graphics-90fead2f113072da0cc71d293152000b37dbf6bb.tar.gz freebsd-ports-graphics-90fead2f113072da0cc71d293152000b37dbf6bb.tar.zst freebsd-ports-graphics-90fead2f113072da0cc71d293152000b37dbf6bb.zip |
Support WITHOUT_NLS
-rw-r--r-- | mail/filtermail/Makefile | 9 | ||||
-rw-r--r-- | mail/filtermail/pkg-plist | 14 |
2 files changed, 15 insertions, 8 deletions
diff --git a/mail/filtermail/Makefile b/mail/filtermail/Makefile index 2dee27d191a..0422a723d48 100644 --- a/mail/filtermail/Makefile +++ b/mail/filtermail/Makefile @@ -29,7 +29,6 @@ EXTRACT_AFTER_ARGS= | ${SED} 's/[mM][aA][iI][lL][fF][iI][lL][tT][eE][rR]/filterm WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} USE_GETOPT_LONG= yes -USE_GETTEXT= yes USE_BISON= yes USE_GMAKE= yes GNU_CONFIGURE= yes @@ -42,6 +41,14 @@ MAN5= filtermailex.5 filtermailrc.5 CPPFLAGS= -I${LOCALBASE}/include LDFLAGS= -L${LOCALBASE}/lib +.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+=--disable-nls +PLIST_SUB+= NLS="@comment " +.endif + post-extract: @${RM} -f ${WRKSRC}/src/getopt.h diff --git a/mail/filtermail/pkg-plist b/mail/filtermail/pkg-plist index bf3d0e7e24f..a5f062278a1 100644 --- a/mail/filtermail/pkg-plist +++ b/mail/filtermail/pkg-plist @@ -1,8 +1,8 @@ bin/filtermail -share/locale/de/LC_MESSAGES/filtermail.mo -share/locale/el/LC_MESSAGES/filtermail.mo -share/locale/es/LC_MESSAGES/filtermail.mo -share/locale/fr/LC_MESSAGES/filtermail.mo -share/locale/it/LC_MESSAGES/filtermail.mo -share/locale/pt_BR/LC_MESSAGES/filtermail.mo -share/locale/ru/LC_MESSAGES/filtermail.mo +%%NLS%%share/locale/de/LC_MESSAGES/filtermail.mo +%%NLS%%share/locale/el/LC_MESSAGES/filtermail.mo +%%NLS%%share/locale/es/LC_MESSAGES/filtermail.mo +%%NLS%%share/locale/fr/LC_MESSAGES/filtermail.mo +%%NLS%%share/locale/it/LC_MESSAGES/filtermail.mo +%%NLS%%share/locale/pt_BR/LC_MESSAGES/filtermail.mo +%%NLS%%share/locale/ru/LC_MESSAGES/filtermail.mo |