pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libgnomeui Fix SunOS build with GCC 7.1.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d6e98ed91225
branches:  trunk
changeset: 362789:d6e98ed91225
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu May 25 12:58:34 2017 +0000

description:
Fix SunOS build with GCC 7.1.

diffstat:

 devel/libgnomeui/Makefile |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 9eb426bac41b -r d6e98ed91225 devel/libgnomeui/Makefile
--- a/devel/libgnomeui/Makefile Thu May 25 12:11:55 2017 +0000
+++ b/devel/libgnomeui/Makefile Thu May 25 12:58:34 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.133 2017/02/12 06:24:40 ryoon Exp $
+# $NetBSD: Makefile,v 1.134 2017/05/25 12:58:34 jperkin Exp $
 #
 
 DISTNAME=      libgnomeui-2.24.5
@@ -22,9 +22,19 @@
 PKGCONFIG_BASE=                ${WRKSRC}/libgnomeui/libgnomeui-2.0.pc
 PKGCONFIG_OVERRIDE=    ${PKGCONFIG_BASE}.in
 
+.include "../../mk/compiler.mk"
+
+.if ${OPSYS} == "SunOS" && !empty(CC_VERSION:Mgcc-[7-9]*)
+SUBST_CLASSES+=                xopen
+SUBST_STAGE.xopen=     pre-configure
+SUBST_FILES.xopen=     libgnomeui/gnome-file-entry.c libgnomeui/gnome-client.c
+SUBST_FILES.xopen+=    libgnomeui/gnome-dateedit.c
+SUBST_SED.xopen=       -e '/_XOPEN_SOURCE/s/500/600/'
+SUBST_SED.xopen+=      -e '/_XOPEN_SOURCE$$/s/$$/ 600/'
+.endif
+
 # Needed because part of the pc files doesn't get filled in till after
 # configure does its pass
-
 post-configure:
        ${SED} ${PKGCONFIG_OVERRIDE_SED} < ${PKGCONFIG_BASE} > \
                ${PKGCONFIG_BASE}.tmp



Home | Main Index | Thread Index | Old Index