Fix pkg-plist according to pointyhat.

Disable home-rolled gettext.
Add WITHOUT_NLS for disabling internationalization.
This commit is contained in:
Anders Nordby 2005-02-15 21:44:26 +00:00
parent a8983edf65
commit a2ac7cbc80
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=128967
2 changed files with 23 additions and 15 deletions

View File

@ -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)

View File

@ -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