aboutsummaryrefslogtreecommitdiff
path: root/devel/gettext-devel
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-07-05 07:31:48 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-07-05 07:31:48 +0000
commit21e99b2cd73bbb3e14699389078fed105ed6b487 (patch)
tree9a3809606470b517dcf782f00ecb0d09c0eea106 /devel/gettext-devel
parent35f4343fa4d8406303456ca0d5405f7b1ca8962f (diff)
downloadports-21e99b2cd73bbb3e14699389078fed105ed6b487.tar.gz
ports-21e99b2cd73bbb3e14699389078fed105ed6b487.zip
By default install only binaries with `-new' suffix applied. This provides an
easy way to compile/use newest packages that don't build with oldest gettext without the headache associated with making it possible to install fill-blown gettext and gettext-devel on the same machine at the same time. Usually the following should be sufficient to fix ports that doesn't build with oldest gettext: BUILD_DEPENDS+= msgfmt-new:${PORTS}/devel/gettext-devel CONFIGURE_ENV+= MSGFMT=${LOCALBASE}/bin/msgfmt-new \ XGETTEXT=${LOCALBASE}/bin/xgettext-new
Notes
Notes: svn path=/head/; revision=44773
Diffstat (limited to 'devel/gettext-devel')
-rw-r--r--devel/gettext-devel/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/gettext-devel/Makefile b/devel/gettext-devel/Makefile
index 7d5e6529d904..aa610ffa0745 100644
--- a/devel/gettext-devel/Makefile
+++ b/devel/gettext-devel/Makefile
@@ -34,11 +34,29 @@ post-patch:
pre-configure:
${RM} ${WRKSRC}/doc/gettext.info*
+.if !defined(WANT_FULL_GETTEXT)
+BINFILES= gettext msgcmp msgcomm msgfmt msgmerge msgunfmt \
+ ngettext xgettext
+PLIST= ${WRKDIR}/PLIST
+LIBTOOLFLAGS= --disable-ltlibs --disable-shared
+.undef MAN3
+.undef INSTALLS_SHLIB
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/misc/gettextize \
+ ${PREFIX}/bin/gettextize-new
+ @${ECHO} bin/gettextize-new > ${WRKDIR}/PLIST
+.for file in ${BINFILES}
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/${file} ${PREFIX}/bin/${file}-new
+ @${ECHO} bin/${file}-new >> ${WRKDIR}/PLIST
+.endfor
+.else
post-install:
@install-info ${PREFIX}/info/gettext.info ${PREFIX}/info/dir
${MKDIR} ${PREFIX}/share/emacs/site-lisp
${INSTALL_DATA} ${WRKSRC}/misc/po-mode.el \
${PREFIX}/share/emacs/site-lisp/po-mode.el
${MKDIR} ${X11BASE}/share/locale
+.endif
.include <bsd.port.mk>