| @@ -1,39 +1,37 @@ | | | @@ -1,39 +1,37 @@ |
1 | # $NetBSD: Makefile,v 1.62 2012/02/29 13:34:24 hans Exp $ | | 1 | # $NetBSD: Makefile,v 1.63 2012/03/31 20:17:13 hans Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= groff-1.20.1 | | 4 | DISTNAME= groff-1.20.1 |
5 | PKGREVISION= 5 | | 5 | PKGREVISION= 5 |
6 | CATEGORIES= textproc | | 6 | CATEGORIES= textproc |
7 | MASTER_SITES= ${MASTER_SITE_GNU:=groff/} | | 7 | MASTER_SITES= ${MASTER_SITE_GNU:=groff/} |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= http://www.gnu.org/software/groff/groff.html | | 10 | HOMEPAGE= http://www.gnu.org/software/groff/groff.html |
11 | COMMENT= GNU roff text processing suite | | 11 | COMMENT= GNU roff text processing suite |
12 | | | 12 | |
13 | CHECK_PERMS= NO | | 13 | CHECK_PERMS= NO |
14 | MAKE_JOBS_SAFE= NO | | 14 | MAKE_JOBS_SAFE= NO |
15 | | | 15 | |
16 | PKG_DESTDIR_SUPPORT= user-destdir | | 16 | PKG_DESTDIR_SUPPORT= user-destdir |
17 | INSTALLATION_DIRS= share/groff/site-tmac | | 17 | INSTALLATION_DIRS= share/groff/site-tmac |
18 | | | 18 | |
19 | USE_LANGUAGES= c c++ | | 19 | USE_LANGUAGES= c c++ |
20 | GNU_CONFIGURE= YES | | 20 | GNU_CONFIGURE= YES |
21 | CONFIGURE_ENV+= PERLPATH=${PERL5:Q} | | 21 | CONFIGURE_ENV+= PERLPATH=${PERL5:Q} |
22 | USE_TOOLS+= perl:run sed:run awk:run | | 22 | USE_TOOLS+= perl:run sed:run awk:run |
23 | USE_FEATURES= getopt_long | | 23 | USE_FEATURES= getopt_long |
24 | | | 24 | |
25 | CFLAGS.SunOS+= -std=c99 -D_XOPEN_SOURCE=600 | | | |
26 | | | | |
27 | INFO_FILES= YES | | 25 | INFO_FILES= YES |
28 | | | 26 | |
29 | REPLACE_AWK+= font/devlj4/generate/special.awk | | 27 | REPLACE_AWK+= font/devlj4/generate/special.awk |
30 | REPLACE_PERL+= contrib/groffer/perl/func.pl | | 28 | REPLACE_PERL+= contrib/groffer/perl/func.pl |
31 | REPLACE_PERL+= contrib/groffer/perl/groffer.pl | | 29 | REPLACE_PERL+= contrib/groffer/perl/groffer.pl |
32 | REPLACE_PERL+= contrib/groffer/perl/man.pl | | 30 | REPLACE_PERL+= contrib/groffer/perl/man.pl |
33 | REPLACE_PERL+= contrib/groffer/perl/perl_test.pl | | 31 | REPLACE_PERL+= contrib/groffer/perl/perl_test.pl |
34 | REPLACE_PERL+= contrib/groffer/perl/roff2.pl | | 32 | REPLACE_PERL+= contrib/groffer/perl/roff2.pl |
35 | REPLACE_PERL+= src/roff/grog/grog.pl | | 33 | REPLACE_PERL+= src/roff/grog/grog.pl |
36 | | | 34 | |
37 | REPLACE_INTERPRETER+= sed | | 35 | REPLACE_INTERPRETER+= sed |
38 | REPLACE.sed.old= .*/sed | | 36 | REPLACE.sed.old= .*/sed |
39 | REPLACE.sed.new= ${SED} | | 37 | REPLACE.sed.new= ${SED} |
| @@ -48,26 +46,31 @@ PLIST_SRC+= PLIST | | | @@ -48,26 +46,31 @@ PLIST_SRC+= PLIST |
48 | | | 46 | |
49 | .if ${OPSYS} == "SunOS" | | 47 | .if ${OPSYS} == "SunOS" |
50 | PLIST_SUBST+= GNU_PREFIX="g" | | 48 | PLIST_SUBST+= GNU_PREFIX="g" |
51 | | | 49 | |
52 | .else | | 50 | .else |
53 | PLIST_SUBST+= GNU_PREFIX="" | | 51 | PLIST_SUBST+= GNU_PREFIX="" |
54 | .endif | | 52 | .endif |
55 | | | 53 | |
56 | BUILD_DEFS+= PAPERSIZE | | 54 | BUILD_DEFS+= PAPERSIZE |
57 | .if defined(PAPERSIZE) | | 55 | .if defined(PAPERSIZE) |
58 | CONFIGURE_ENV+= PAGE=${PAPERSIZE:Q} | | 56 | CONFIGURE_ENV+= PAGE=${PAPERSIZE:Q} |
59 | .endif | | 57 | .endif |
60 | | | 58 | |
| | | 59 | .include "../../mk/compiler.mk" |
| | | 60 | .if !empty(CC_VERSION:Mgcc-4.[6-9].*) |
| | | 61 | CFLAGS.SunOS+= -std=c99 -D_XOPEN_SOURCE=600 |
| | | 62 | .endif |
| | | 63 | |
61 | # Usually the mdoc.local "volume-operating-system" definition is for | | 64 | # Usually the mdoc.local "volume-operating-system" definition is for |
62 | # the operating system name often displayed on top of man pages. And | | 65 | # the operating system name often displayed on top of man pages. And |
63 | # "operating-system" is for the default .Os value (operating system | | 66 | # "operating-system" is for the default .Os value (operating system |
64 | # and version/release) and is usually displayed at bottom of man page. | | 67 | # and version/release) and is usually displayed at bottom of man page. |
65 | # XXX Use "pkgsrc" as default .Os value. | | 68 | # XXX Use "pkgsrc" as default .Os value. |
66 | # Also, avoid having pre-patched groff.info-2 installed (install uses wildcard) | | 69 | # Also, avoid having pre-patched groff.info-2 installed (install uses wildcard) |
67 | post-patch: | | 70 | post-patch: |
68 | ${SED} -e "s,@@VOLUME_OPERATING_SYSTEM@@,${OPSYS},g" \ | | 71 | ${SED} -e "s,@@VOLUME_OPERATING_SYSTEM@@,${OPSYS},g" \ |
69 | -e "s,@@OPERATING_SYSTEM@@,pkgsrc,g" \ | | 72 | -e "s,@@OPERATING_SYSTEM@@,pkgsrc,g" \ |
70 | ${FILESDIR}/mdoc.local > ${WRKDIR}/mdoc.local | | 73 | ${FILESDIR}/mdoc.local > ${WRKDIR}/mdoc.local |
71 | @${RM} ${WRKSRC}/doc/groff.info-2.orig | | 74 | @${RM} ${WRKSRC}/doc/groff.info-2.orig |
72 | | | 75 | |
73 | # Groff installs its own man and ms macros as mgan and mgs if the | | 76 | # Groff installs its own man and ms macros as mgan and mgs if the |