| @@ -1,43 +1,44 @@ | | | @@ -1,43 +1,44 @@ |
1 | # $NetBSD: Makefile,v 1.73 2010/05/02 10:41:52 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.74 2010/07/20 13:57:28 tnn Exp $ |
2 | | | 2 | |
3 | DISTNAME= bison-2.4.2 | | 3 | DISTNAME= bison-2.4.2 |
| | | 4 | PKGREVISION= 1 |
4 | CATEGORIES= devel | | 5 | CATEGORIES= devel |
5 | MASTER_SITES= ${MASTER_SITE_GNU:=bison/} | | 6 | MASTER_SITES= ${MASTER_SITE_GNU:=bison/} |
6 | EXTRACT_SUFX= .tar.bz2 | | 7 | EXTRACT_SUFX= .tar.bz2 |
7 | | | 8 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://www.gnu.org/software/bison/bison.html | | 10 | HOMEPAGE= http://www.gnu.org/software/bison/bison.html |
10 | COMMENT= GNU yacc(1) replacement | | 11 | COMMENT= GNU yacc(1) replacement |
11 | LICENSE= gnu-gpl-v3 | | 12 | LICENSE= gnu-gpl-v3 |
12 | | | 13 | |
13 | PKG_INSTALLATION_TYPES= overwrite pkgviews | | 14 | PKG_INSTALLATION_TYPES= overwrite pkgviews |
14 | PKG_DESTDIR_SUPPORT= user-destdir | | 15 | PKG_DESTDIR_SUPPORT= user-destdir |
15 | | | 16 | |
16 | GNU_CONFIGURE= YES | | 17 | GNU_CONFIGURE= YES |
17 | USE_LANGUAGES= c c++ | | 18 | USE_LANGUAGES= c c++ |
18 | USE_PKGLOCALEDIR= yes | | 19 | USE_PKGLOCALEDIR= yes |
19 | USE_TOOLS+= grep gm4:run msgfmt | | 20 | USE_TOOLS+= grep gm4:run msgfmt |
20 | INFO_FILES= # PLIST | | 21 | INFO_FILES= # PLIST |
21 | | | 22 | |
22 | CONFIGURE_ENV+= gt_cv_func_gnugettext1_libintl=yes \ | | 23 | CONFIGURE_ENV+= gt_cv_func_gnugettext1_libintl=yes \ |
23 | ac_cv_prog_M4=${TOOLS_PATH.gm4} | | 24 | ac_cv_prog_M4=${TOOLS_PATH.gm4} |
24 | | | 25 | |
25 | TEST_TARGET= check | | 26 | TEST_TARGET= check |
26 | | | 27 | |
27 | # Avoid rebuilding manpage | | 28 | # Avoid rebuilding manpage |
28 | pre-build: | | 29 | pre-build: |
29 | ${TOUCH} ${WRKSRC}/doc/bison.1 | | 30 | ${TOUCH} ${WRKSRC}/doc/bison.1 |
30 | | | 31 | |
31 | # "bison" wants a recent version of "gettext" which at least NetBSD doesn't | | 32 | # "bison" wants a recent version of "gettext" which at least NetBSD doesn't |
32 | # provide. Figure out whether it will install the locale files or not. | | 33 | # provide. Figure out whether it will install the locale files or not. |
33 | PLIST_SRC= ${WRKDIR}/PLIST | | 34 | PLIST_SRC= ${WRKDIR}/PLIST |
34 | | | 35 | |
35 | post-configure: | | 36 | post-configure: |
36 | if grep -q '^POSUB = po$$' ${WRKSRC}/Makefile; then \ | | 37 | if grep -q '^POSUB = po$$' ${WRKSRC}/Makefile; then \ |
37 | ${CP} ${PKGDIR}/PLIST ${PLIST_SRC}; \ | | 38 | ${CP} ${PKGDIR}/PLIST ${PLIST_SRC}; \ |
38 | else \ | | 39 | else \ |
39 | ${GREP} -v '^share/locale/' ${PKGDIR}/PLIST >${PLIST_SRC}; \ | | 40 | ${GREP} -v '^share/locale/' ${PKGDIR}/PLIST >${PLIST_SRC}; \ |
40 | fi | | 41 | fi |
41 | | | 42 | |
42 | .include "../../devel/gettext-lib/buildlink3.mk" | | 43 | .include "../../devel/gettext-lib/buildlink3.mk" |
43 | .include "../../mk/bsd.pkg.mk" | | 44 | .include "../../mk/bsd.pkg.mk" |