diff options
author | tron <tron@pkgsrc.org> | 2008-11-09 14:28:17 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2008-11-09 14:28:17 +0000 |
commit | 68f37ed7a33359864ad3845fe0b1406a6651ffa0 (patch) | |
tree | a3905a54eccc1ea9f46fc7c970c3f4471cedb734 /devel/bison/Makefile | |
parent | cc9a0430cc59eee2332e8ba4a12b20fb4cc8acec (diff) | |
download | pkgsrc-68f37ed7a33359864ad3845fe0b1406a6651ffa0.tar.gz |
Re-add the "locale" files because they will be installed on platforms with
a recent enough version of gettext(3) e.g. Mac OS X or Linux. Dynamically
adjust the package list depending on the configure result.
Bump the package revisions because the package list was incorrect on
various platforms.
Diffstat (limited to 'devel/bison/Makefile')
-rw-r--r-- | devel/bison/Makefile | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/devel/bison/Makefile b/devel/bison/Makefile index 7ebec88abc3..d916102932b 100644 --- a/devel/bison/Makefile +++ b/devel/bison/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.65 2008/11/07 22:01:48 abs Exp $ +# $NetBSD: Makefile,v 1.66 2008/11/09 14:28:17 tron Exp $ DISTNAME= bison-2.4 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU:=bison/} EXTRACT_SUFX= .tar.bz2 @@ -16,7 +16,7 @@ PKG_DESTDIR_SUPPORT= user-destdir GNU_CONFIGURE= YES USE_LANGUAGES= c c++ USE_PKGLOCALEDIR= yes -USE_TOOLS+= gm4:run msgfmt +USE_TOOLS+= grep gm4:run msgfmt INFO_FILES= # PLIST CONFIGURE_ENV+= gt_cv_func_gnugettext1_libintl=yes @@ -27,5 +27,16 @@ TEST_TARGET= check pre-build: ${TOUCH} ${WRKSRC}/doc/bison.1 +# "bison" wants a recent version of "gettext" which at least NetBSD doesn't +# provide. Figure out whether it will install the locale files or not. +PLIST_SRC= ${WRKDIR}/PLIST + +post-configure: + if grep -q '^POSUB = po$$' ${WRKSRC}/Makefile; then \ + ${CP} ${PKGDIR}/PLIST ${PLIST_SRC}; \ + else \ + ${GREP} -v '^share/locale/' ${PKGDIR}/PLIST >${PLIST_SRC}; \ + fi + .include "../../devel/gettext-lib/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |