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 (expand / 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,14 +1,14 @@ @@ -1,14 +1,14 @@
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
@@ -39,27 +39,27 @@ REPLACE_FILES.sed+= font/devps/generate/ @@ -39,27 +39,27 @@ REPLACE_FILES.sed+= font/devps/generate/
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" \