| @@ -1,95 +1,95 @@ | | | @@ -1,95 +1,95 @@ |
1 | # $NetBSD: Makefile,v 1.76 2015/01/08 09:02:27 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.77 2015/01/17 12:10:01 wiedi Exp $ |
2 | | | 2 | |
3 | DISTNAME= groff-1.22.3 | | 3 | DISTNAME= groff-1.22.3 |
4 | CATEGORIES= textproc | | 4 | CATEGORIES= textproc |
5 | MASTER_SITES= ${MASTER_SITE_GNU:=groff/} | | 5 | MASTER_SITES= ${MASTER_SITE_GNU:=groff/} |
6 | | | 6 | |
7 | MAINTAINER= pkgsrc-users@NetBSD.org | | 7 | MAINTAINER= pkgsrc-users@NetBSD.org |
8 | HOMEPAGE= http://www.gnu.org/software/groff/groff.html | | 8 | HOMEPAGE= http://www.gnu.org/software/groff/groff.html |
9 | COMMENT= GNU roff text processing suite | | 9 | COMMENT= GNU roff text processing suite |
10 | LICENSE= gnu-gpl-v3 | | 10 | LICENSE= gnu-gpl-v3 |
11 | | | 11 | |
12 | CONFLICTS= mdocml<1.12.0nb3 ja-groff-[0-9]* | | 12 | CONFLICTS= mdocml<1.12.0nb3 ja-groff-[0-9]* |
13 | | | 13 | |
14 | CHECK_PERMS= NO | | 14 | CHECK_PERMS= NO |
15 | MAKE_JOBS_SAFE= NO | | 15 | MAKE_JOBS_SAFE= NO |
16 | | | 16 | |
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 gmake | | 22 | USE_TOOLS+= perl:run sed:run awk:run gmake |
23 | EXTRACT_USING= bsdtar | | 23 | EXTRACT_USING= bsdtar |
24 | USE_FEATURES= getopt_long | | 24 | USE_FEATURES= getopt_long |
25 | | | 25 | |
26 | INFO_FILES= YES | | 26 | INFO_FILES= YES |
27 | | | 27 | |
28 | REPLACE_AWK+= font/devlj4/generate/special.awk | | 28 | REPLACE_AWK+= font/devlj4/generate/special.awk |
29 | REPLACE_PERL+= contrib/*/*.pl | | 29 | REPLACE_PERL+= contrib/*/*.pl |
30 | REPLACE_PERL+= src/roff/grog/grog.pl | | 30 | REPLACE_PERL+= src/roff/grog/grog.pl |
31 | REPLACE_PERL+= src/roff/grog/subs.pl | | 31 | REPLACE_PERL+= src/roff/grog/subs.pl |
32 | | | 32 | |
33 | REPLACE_INTERPRETER+= sed | | 33 | REPLACE_INTERPRETER+= sed |
34 | REPLACE.sed.old= .*/sed | | 34 | REPLACE.sed.old= .*/sed |
35 | REPLACE.sed.new= ${SED} | | 35 | REPLACE.sed.new= ${SED} |
36 | REPLACE_FILES.sed+= font/devps/generate/symbol.sed | | 36 | REPLACE_FILES.sed+= font/devps/generate/symbol.sed |
37 | | | 37 | |
38 | .include "options.mk" | | 38 | .include "options.mk" |
39 | | | 39 | |
40 | PLIST_SRC+= ${WRKDIR}/PLIST-local | | 40 | PLIST_SRC+= ${WRKDIR}/PLIST-local |
41 | PLIST_SRC+= PLIST | | 41 | PLIST_SRC+= PLIST |
42 | | | 42 | |
43 | .include "../../mk/bsd.prefs.mk" | | 43 | .include "../../mk/bsd.prefs.mk" |
44 | | | 44 | |
45 | BUILD_DEFS+= PAPERSIZE | | 45 | BUILD_DEFS+= PAPERSIZE |
46 | .if defined(PAPERSIZE) | | 46 | .if defined(PAPERSIZE) |
47 | CONFIGURE_ENV+= PAGE=${PAPERSIZE:Q} | | 47 | CONFIGURE_ENV+= PAGE=${PAPERSIZE:Q} |
48 | .endif | | 48 | .endif |
49 | | | 49 | |
50 | .include "../../mk/compiler.mk" | | 50 | .include "../../mk/compiler.mk" |
51 | .if !empty(CC_VERSION:Mgcc-4.[6-9].*) | | 51 | .if !empty(CC_VERSION:Mgcc-4.[6-9].*) |
52 | CFLAGS.SunOS+= -std=c99 -D_XOPEN_SOURCE=600 | | 52 | CFLAGS.SunOS+= -std=c99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ |
53 | .endif | | 53 | .endif |
54 | | | 54 | |
55 | post-extract: | | 55 | post-extract: |
56 | ${CP} -p ${FILESDIR}/*.c ${WRKSRC} | | 56 | ${CP} -p ${FILESDIR}/*.c ${WRKSRC} |
57 | | | 57 | |
58 | # Usually the mdoc.local "volume-operating-system" definition is for | | 58 | # Usually the mdoc.local "volume-operating-system" definition is for |
59 | # the operating system name often displayed on top of man pages. And | | 59 | # the operating system name often displayed on top of man pages. And |
60 | # "operating-system" is for the default .Os value (operating system | | 60 | # "operating-system" is for the default .Os value (operating system |
61 | # and version/release) and is usually displayed at bottom of man page. | | 61 | # and version/release) and is usually displayed at bottom of man page. |
62 | # XXX Use "pkgsrc" as default .Os value. | | 62 | # XXX Use "pkgsrc" as default .Os value. |
63 | post-patch: | | 63 | post-patch: |
64 | ${SED} -e "s,@@VOLUME_OPERATING_SYSTEM@@,${OPSYS},g" \ | | 64 | ${SED} -e "s,@@VOLUME_OPERATING_SYSTEM@@,${OPSYS},g" \ |
65 | -e "s,@@OPERATING_SYSTEM@@,pkgsrc,g" \ | | 65 | -e "s,@@OPERATING_SYSTEM@@,pkgsrc,g" \ |
66 | ${FILESDIR}/mdoc.local > ${WRKDIR}/mdoc.local | | 66 | ${FILESDIR}/mdoc.local > ${WRKDIR}/mdoc.local |
67 | | | 67 | |
68 | # Groff installs its own man and ms macros as mgan and mgs if the | | 68 | # Groff installs its own man and ms macros as mgan and mgs if the |
69 | # configure script thinks replacing the system ones is not safe. Since | | 69 | # configure script thinks replacing the system ones is not safe. Since |
70 | # this depends heavily on exactly what the system macros are, each | | 70 | # this depends heavily on exactly what the system macros are, each |
71 | # vendor OS is likely to be different and possibly differ by version. | | 71 | # vendor OS is likely to be different and possibly differ by version. |
72 | # | | 72 | # |
73 | # It also installs wrappers around the system macros for a variety of | | 73 | # It also installs wrappers around the system macros for a variety of |
74 | # other traditional macro packages, if those macros don't have an FSF | | 74 | # other traditional macro packages, if those macros don't have an FSF |
75 | # copyright. | | 75 | # copyright. |
76 | | | 76 | |
77 | post-install: | | 77 | post-install: |
78 | ${INSTALL_DATA} ${WRKDIR}/mdoc.local \ | | 78 | ${INSTALL_DATA} ${WRKDIR}/mdoc.local \ |
79 | ${DESTDIR}${PREFIX}/share/groff/site-tmac | | 79 | ${DESTDIR}${PREFIX}/share/groff/site-tmac |
80 | ${FIND} ${DESTDIR}${PREFIX}/lib/groff/site-tmac -type f -print | \ | | 80 | ${FIND} ${DESTDIR}${PREFIX}/lib/groff/site-tmac -type f -print | \ |
81 | ${SED} 's;${DESTDIR}${PREFIX}/;;g' > ${WRKDIR}/PLIST-local | | 81 | ${SED} 's;${DESTDIR}${PREFIX}/;;g' > ${WRKDIR}/PLIST-local |
82 | ${RUN}set -e; for f in an.tmac m.tmac mm.tmac mmse.tmac \ | | 82 | ${RUN}set -e; for f in an.tmac m.tmac mm.tmac mmse.tmac \ |
83 | mse.tmac s.tmac; do \ | | 83 | mse.tmac s.tmac; do \ |
84 | for p in "" g; do \ | | 84 | for p in "" g; do \ |
85 | line="share/groff/${PKGVERSION_NOREV}/tmac/$$p$$f"; \ | | 85 | line="share/groff/${PKGVERSION_NOREV}/tmac/$$p$$f"; \ |
86 | if [ -e "${DESTDIR}${PREFIX}/$$line" ]; then \ | | 86 | if [ -e "${DESTDIR}${PREFIX}/$$line" ]; then \ |
87 | break; \ | | 87 | break; \ |
88 | fi; \ | | 88 | fi; \ |
89 | done; \ | | 89 | done; \ |
90 | ${ECHO} "$$line" >> ${WRKDIR}/PLIST-local; \ | | 90 | ${ECHO} "$$line" >> ${WRKDIR}/PLIST-local; \ |
91 | done | | 91 | done |
92 | | | 92 | |
93 | # we only want the charset.alias file, so no buildlinkery for libiconv | | 93 | # we only want the charset.alias file, so no buildlinkery for libiconv |
94 | DEPENDS+= libiconv-[0-9]*:../../converters/libiconv | | 94 | DEPENDS+= libiconv-[0-9]*:../../converters/libiconv |
95 | .include "../../mk/bsd.pkg.mk" | | 95 | .include "../../mk/bsd.pkg.mk" |