summaryrefslogtreecommitdiff
path: root/devel/bison/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/bison/Makefile')
-rw-r--r--devel/bison/Makefile17
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"