Mon Oct 16 18:46:55 2017 UTC ()
libgnomeui: Extend SunOS workaround to GCC 6.x.


(jperkin)
diff -r1.135 -r1.136 pkgsrc/devel/libgnomeui/Makefile

cvs diff -r1.135 -r1.136 pkgsrc/devel/libgnomeui/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/libgnomeui/Makefile 2017/07/30 22:47:49 1.135
+++ pkgsrc/devel/libgnomeui/Makefile 2017/10/16 18:46:55 1.136
@@ -1,40 +1,40 @@ @@ -1,40 +1,40 @@
1# $NetBSD: Makefile,v 1.135 2017/07/30 22:47:49 wiz Exp $ 1# $NetBSD: Makefile,v 1.136 2017/10/16 18:46:55 jperkin Exp $
2# 2#
3 3
4DISTNAME= libgnomeui-2.24.5 4DISTNAME= libgnomeui-2.24.5
5PKGREVISION= 34 5PKGREVISION= 34
6CATEGORIES= devel gnome 6CATEGORIES= devel gnome
7MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libgnomeui/2.24/} 7MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libgnomeui/2.24/}
8EXTRACT_SUFX= .tar.bz2 8EXTRACT_SUFX= .tar.bz2
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= https://www.gnome.org/ 11HOMEPAGE= https://www.gnome.org/
12COMMENT= Core GNOME2 graphical libraries 12COMMENT= Core GNOME2 graphical libraries
13LICENSE= gnu-lgpl-v2 13LICENSE= gnu-lgpl-v2
14 14
15CONFLICTS+= gnome-libs<=1.4.2nb1 15CONFLICTS+= gnome-libs<=1.4.2nb1
16 16
17GNU_CONFIGURE= yes 17GNU_CONFIGURE= yes
18USE_PKGLOCALEDIR= yes 18USE_PKGLOCALEDIR= yes
19USE_TOOLS+= gmake msgfmt perl pkg-config intltool 19USE_TOOLS+= gmake msgfmt perl pkg-config intltool
20USE_LIBTOOL= yes 20USE_LIBTOOL= yes
21 21
22PKGCONFIG_BASE= ${WRKSRC}/libgnomeui/libgnomeui-2.0.pc 22PKGCONFIG_BASE= ${WRKSRC}/libgnomeui/libgnomeui-2.0.pc
23PKGCONFIG_OVERRIDE= ${PKGCONFIG_BASE}.in 23PKGCONFIG_OVERRIDE= ${PKGCONFIG_BASE}.in
24 24
25.include "../../mk/compiler.mk" 25.include "../../mk/compiler.mk"
26 26
27.if ${OPSYS} == "SunOS" && !empty(CC_VERSION:Mgcc-[7-9]*) 27.if ${OPSYS} == "SunOS" && !empty(CC_VERSION:Mgcc-[6-9]*)
28SUBST_CLASSES+= xopen 28SUBST_CLASSES+= xopen
29SUBST_STAGE.xopen= pre-configure 29SUBST_STAGE.xopen= pre-configure
30SUBST_FILES.xopen= libgnomeui/gnome-file-entry.c libgnomeui/gnome-client.c 30SUBST_FILES.xopen= libgnomeui/gnome-file-entry.c libgnomeui/gnome-client.c
31SUBST_FILES.xopen+= libgnomeui/gnome-dateedit.c 31SUBST_FILES.xopen+= libgnomeui/gnome-dateedit.c
32SUBST_SED.xopen= -e '/_XOPEN_SOURCE/s/500/600/' 32SUBST_SED.xopen= -e '/_XOPEN_SOURCE/s/500/600/'
33SUBST_SED.xopen+= -e '/_XOPEN_SOURCE$$/s/$$/ 600/' 33SUBST_SED.xopen+= -e '/_XOPEN_SOURCE$$/s/$$/ 600/'
34.endif 34.endif
35 35
36# Needed because part of the pc files doesn't get filled in till after 36# Needed because part of the pc files doesn't get filled in till after
37# configure does its pass 37# configure does its pass
38post-configure: 38post-configure:
39 ${SED} ${PKGCONFIG_OVERRIDE_SED} < ${PKGCONFIG_BASE} > \ 39 ${SED} ${PKGCONFIG_OVERRIDE_SED} < ${PKGCONFIG_BASE} > \
40 ${PKGCONFIG_BASE}.tmp 40 ${PKGCONFIG_BASE}.tmp