aboutsummaryrefslogtreecommitdiffstats
path: root/comms/minicom
diff options
context:
space:
mode:
authoranders <anders@FreeBSD.org>2005-02-16 05:44:26 +0800
committeranders <anders@FreeBSD.org>2005-02-16 05:44:26 +0800
commitb8315e6146133b1c63c8cdf79982b42baa9531a4 (patch)
tree3587a907b3c6a12a8e6204d62f41faffca7478ea /comms/minicom
parentf39393c9c15712e82f97e2e0532e237c776c9bd0 (diff)
downloadfreebsd-ports-gnome-b8315e6146133b1c63c8cdf79982b42baa9531a4.tar.gz
freebsd-ports-gnome-b8315e6146133b1c63c8cdf79982b42baa9531a4.tar.zst
freebsd-ports-gnome-b8315e6146133b1c63c8cdf79982b42baa9531a4.zip
Fix pkg-plist according to pointyhat.
Disable home-rolled gettext. Add WITHOUT_NLS for disabling internationalization.
Diffstat (limited to 'comms/minicom')
-rw-r--r--comms/minicom/Makefile11
-rw-r--r--comms/minicom/pkg-plist27
2 files changed, 23 insertions, 15 deletions
diff --git a/comms/minicom/Makefile b/comms/minicom/Makefile
index 84002f025454..7c6785d1af4f 100644
--- a/comms/minicom/Makefile
+++ b/comms/minicom/Makefile
@@ -20,6 +20,15 @@ RUN_DEPENDS= lrz:${PORTSDIR}/comms/lrzsz \
WRKSRC= ${WRKDIR}/${DISTNAME:S/.src//}
USE_REINPLACE= yes
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+USE_GETTEXT= yes
+CONFIGURE_ARGS+= --with-libiconv-prefix=${LOCALBASE} \
+ --without-included-gettext
+PLIST_SUB+= NLS=""
+.endif
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-dfl-baud=57600 \
--sysconfdir=${PREFIX}/etc/minicom \
@@ -36,6 +45,8 @@ post-patch:
${REINPLACE_CMD} -e "s@/usr/local/bin/@${LOCALBASE}/bin/@; \
s@/sz@/lsz@;s@/sb@/lsb@;s@/sx@/lsx@;s@/rz@/lrz@; \
s@/rb@/lrb@;s@/rx@/lrx@" ${WRKSRC}/src/rwconf.c
+ ${REINPLACE_CMD} -E -e "s@^(SUBDIRS = .*) intl@\1@" \
+ ${WRKSRC}/Makefile.in
pre-configure:
.if !defined(BATCH)
diff --git a/comms/minicom/pkg-plist b/comms/minicom/pkg-plist
index 2942edb76c8f..6ac8c3763d1a 100644
--- a/comms/minicom/pkg-plist
+++ b/comms/minicom/pkg-plist
@@ -3,21 +3,18 @@ bin/xminicom
bin/runscript
bin/ascii-xfr
etc/minicom/minicom.users
-share/locale/cs/LC_MESSAGES/minicom.mo
-share/locale/es/LC_MESSAGES/minicom.mo
-share/locale/fi/LC_MESSAGES/minicom.mo
-share/locale/fr/LC_MESSAGES/minicom.mo
-share/locale/hu/LC_MESSAGES/minicom.mo
-share/locale/ja/LC_MESSAGES/minicom.mo
-share/locale/pl/LC_MESSAGES/minicom.mo
-share/locale/pt_BR/LC_MESSAGES/minicom.mo
-share/locale/ru/LC_MESSAGES/minicom.mo
-@unexec rmdir %D/share/locale/cs/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/fi/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/pl/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/cs 2>/dev/null || true
-@unexec rmdir %D/share/locale/fi 2>/dev/null || true
-@unexec rmdir %D/share/locale/pl 2>/dev/null || true
+%%NLS%%share/locale/cs/LC_MESSAGES/minicom.mo
+%%NLS%%share/locale/es/LC_MESSAGES/minicom.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/minicom.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/minicom.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/minicom.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/minicom.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/minicom.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/minicom.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/minicom.mo
+%%NLS%%@unexec rmdir %D/share/locale/*/LC_MESSAGES 2>/dev/null || true
+%%NLS%%@unexec rmdir %D/share/locale/* 2>/dev/null || true
+%%NLS%%@unexec rmdir %D/share/locale 2>/dev/null || true
@exec /usr/sbin/chown uucp %D/etc/minicom
@unexec rmdir %D/etc/minicom 2>/dev/null || true
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS