Sat Jan 17 12:10:01 2015 UTC ()
SunOS needs __EXTENSIONS__


(wiedi)
diff -r1.76 -r1.77 pkgsrc/textproc/groff/Makefile

cvs diff -r1.76 -r1.77 pkgsrc/textproc/groff/Makefile (switch to unified diff)

--- pkgsrc/textproc/groff/Makefile 2015/01/08 09:02:27 1.76
+++ pkgsrc/textproc/groff/Makefile 2015/01/17 12:10:01 1.77
@@ -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
3DISTNAME= groff-1.22.3 3DISTNAME= groff-1.22.3
4CATEGORIES= textproc 4CATEGORIES= textproc
5MASTER_SITES= ${MASTER_SITE_GNU:=groff/} 5MASTER_SITES= ${MASTER_SITE_GNU:=groff/}
6 6
7MAINTAINER= pkgsrc-users@NetBSD.org 7MAINTAINER= pkgsrc-users@NetBSD.org
8HOMEPAGE= http://www.gnu.org/software/groff/groff.html 8HOMEPAGE= http://www.gnu.org/software/groff/groff.html
9COMMENT= GNU roff text processing suite 9COMMENT= GNU roff text processing suite
10LICENSE= gnu-gpl-v3 10LICENSE= gnu-gpl-v3
11 11
12CONFLICTS= mdocml<1.12.0nb3 ja-groff-[0-9]* 12CONFLICTS= mdocml<1.12.0nb3 ja-groff-[0-9]*
13 13
14CHECK_PERMS= NO 14CHECK_PERMS= NO
15MAKE_JOBS_SAFE= NO 15MAKE_JOBS_SAFE= NO
16 16
17INSTALLATION_DIRS= share/groff/site-tmac 17INSTALLATION_DIRS= share/groff/site-tmac
18 18
19USE_LANGUAGES= c c++ 19USE_LANGUAGES= c c++
20GNU_CONFIGURE= YES 20GNU_CONFIGURE= YES
21CONFIGURE_ENV+= PERLPATH=${PERL5:Q} 21CONFIGURE_ENV+= PERLPATH=${PERL5:Q}
22USE_TOOLS+= perl:run sed:run awk:run gmake 22USE_TOOLS+= perl:run sed:run awk:run gmake
23EXTRACT_USING= bsdtar 23EXTRACT_USING= bsdtar
24USE_FEATURES= getopt_long 24USE_FEATURES= getopt_long
25 25
26INFO_FILES= YES 26INFO_FILES= YES
27 27
28REPLACE_AWK+= font/devlj4/generate/special.awk 28REPLACE_AWK+= font/devlj4/generate/special.awk
29REPLACE_PERL+= contrib/*/*.pl 29REPLACE_PERL+= contrib/*/*.pl
30REPLACE_PERL+= src/roff/grog/grog.pl 30REPLACE_PERL+= src/roff/grog/grog.pl
31REPLACE_PERL+= src/roff/grog/subs.pl 31REPLACE_PERL+= src/roff/grog/subs.pl
32 32
33REPLACE_INTERPRETER+= sed 33REPLACE_INTERPRETER+= sed
34REPLACE.sed.old= .*/sed 34REPLACE.sed.old= .*/sed
35REPLACE.sed.new= ${SED} 35REPLACE.sed.new= ${SED}
36REPLACE_FILES.sed+= font/devps/generate/symbol.sed 36REPLACE_FILES.sed+= font/devps/generate/symbol.sed
37 37
38.include "options.mk" 38.include "options.mk"
39 39
40PLIST_SRC+= ${WRKDIR}/PLIST-local 40PLIST_SRC+= ${WRKDIR}/PLIST-local
41PLIST_SRC+= PLIST 41PLIST_SRC+= PLIST
42 42
43.include "../../mk/bsd.prefs.mk" 43.include "../../mk/bsd.prefs.mk"
44 44
45BUILD_DEFS+= PAPERSIZE 45BUILD_DEFS+= PAPERSIZE
46.if defined(PAPERSIZE) 46.if defined(PAPERSIZE)
47CONFIGURE_ENV+= PAGE=${PAPERSIZE:Q} 47CONFIGURE_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].*)
52CFLAGS.SunOS+= -std=c99 -D_XOPEN_SOURCE=600 52CFLAGS.SunOS+= -std=c99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
53.endif 53.endif
54 54
55post-extract: 55post-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.
63post-patch: 63post-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
77post-install: 77post-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
94DEPENDS+= libiconv-[0-9]*:../../converters/libiconv 94DEPENDS+= libiconv-[0-9]*:../../converters/libiconv
95.include "../../mk/bsd.pkg.mk" 95.include "../../mk/bsd.pkg.mk"