ports/62732: ports/mail/fetchmail: WITHOUT_NLS knob
Katsura Matsumoto
katsura at cc.osaka-kyoiku.ac.jp
Thu Feb 12 14:50:23 UTC 2004
>Number: 62732
>Category: ports
>Synopsis: ports/mail/fetchmail: WITHOUT_NLS knob
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 12 06:50:18 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Katsura Matsumoto
>Release: FreeBSD 4.9-RELEASE-p2 i386
>Organization:
Osaka Kyoiku Univ.
>Environment:
System: FreeBSD gaia.cc.osaka-kyoiku.ac.jp 4.9-RELEASE-p2
>Description:
I would like to add an WITHOUT_NLS knob in Makefile of ports/mail/fetchmail.
>How-To-Repeat:
>Fix:
--- fetchmail.orig/Makefile Sun Feb 8 15:18:22 2004
+++ fetchmail/Makefile Thu Feb 12 22:08:40 2004
@@ -26,7 +26,9 @@
RUN_DEPENDS= ${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
.endif
+.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
+.endif
.if defined(WITH_X11)
USE_PYTHON= yes
.endif
@@ -34,9 +36,9 @@
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-opie --enable-RPA --enable-POP2 --enable-SDPS \
- --enable-nls --with-hesiod=no --enable-fallback=no
+ --with-hesiod=no --enable-fallback=no
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib -lintl" \
+ LDFLAGS="-L${LOCALBASE}/lib" \
CFLAGS="-I${LOCALBASE}/include ${CFLAGS}"
MAKE_ENV+= ${CONFIGURE_ENV}
MAN1= fetchmail.1
@@ -50,6 +52,14 @@
.if ${OSVERSION} >= 400014
CONFIGURE_ARGS+=--enable-inet6
+.endif
+
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB= NLS="@comment "
+.else
+CONFIGURE_ARGS+= --enable-nls
+PLIST_SUB+= NLS=""
.endif
.if exists(/usr/lib/libssl.a) && exists(/usr/lib/libcrypto.a)
--- fetchmail.orig/pkg-plist Sat Oct 25 13:00:14 2003
+++ fetchmail/pkg-plist Thu Feb 12 22:08:40 2004
@@ -13,16 +13,16 @@
%%PORTDOCS%%%%DOCSDIR%%/fetchmail-FAQ.html
%%PORTDOCS%%%%DOCSDIR%%/fetchmail-features.html
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-share/locale/ca/LC_MESSAGES/fetchmail.mo
-share/locale/cs/LC_MESSAGES/fetchmail.mo
-share/locale/da/LC_MESSAGES/fetchmail.mo
-share/locale/de/LC_MESSAGES/fetchmail.mo
-share/locale/el/LC_MESSAGES/fetchmail.mo
-share/locale/es/LC_MESSAGES/fetchmail.mo
-share/locale/fr/LC_MESSAGES/fetchmail.mo
-share/locale/gl/LC_MESSAGES/fetchmail.mo
-share/locale/ja/LC_MESSAGES/fetchmail.mo
-share/locale/pl/LC_MESSAGES/fetchmail.mo
-share/locale/pt_BR/LC_MESSAGES/fetchmail.mo
-share/locale/sk/LC_MESSAGES/fetchmail.mo
-share/locale/tr/LC_MESSAGES/fetchmail.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/fetchmail.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/fetchmail.mo
+%%NLS%%share/locale/da/LC_MESSAGES/fetchmail.mo
+%%NLS%%share/locale/de/LC_MESSAGES/fetchmail.mo
+%%NLS%%share/locale/el/LC_MESSAGES/fetchmail.mo
+%%NLS%%share/locale/es/LC_MESSAGES/fetchmail.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/fetchmail.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/fetchmail.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/fetchmail.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/fetchmail.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/fetchmail.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/fetchmail.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/fetchmail.mo
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list