From 96276db04a0365752c6e8a584e0942a0d046b072 Mon Sep 17 00:00:00 2001 From: jperkin Date: Mon, 11 Dec 2017 13:34:00 +0000 Subject: glib2: Fix building with ObjC on older Darwin. --- devel/glib2/Makefile.common | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'devel') diff --git a/devel/glib2/Makefile.common b/devel/glib2/Makefile.common index 9f193485269..df707680e9b 100644 --- a/devel/glib2/Makefile.common +++ b/devel/glib2/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.59 2017/11/07 15:53:11 prlw1 Exp $ +# $NetBSD: Makefile.common,v 1.60 2017/12/11 13:34:00 jperkin Exp $ # # used by devel/glib2/Makefile # used by devel/gdbus-codegen/Makefile @@ -67,7 +67,8 @@ SUBST_MESSAGE.thr= Fixing libgthread. .endif # glib-2.48.0 dropped support for OSX < 10.9.0 just to add notification -# support, so we just disable that feature for older releases. +# support, so we just disable that feature for older releases, and work +# around some ObjC detection. .if !empty(MACHINE_PLATFORM:MDarwin-[0-9].*) || \ !empty(MACHINE_PLATFORM:MDarwin-1[012].*) SUBST_CLASSES+= gcocoa @@ -76,8 +77,14 @@ SUBST_FILES.gcocoa= configure SUBST_FILES.gcocoa+= gio/Makefile.in gio/giomodule.c SUBST_SED.gcocoa= -e 's,10.9.0,10.0.0,g' SUBST_SED.gcocoa+= -e 's,gcocoanotificationbackend.c,,g' +SUBST_SED.gcocoa+= -e 's,gnextstepsettingsbackend.c,gnextstepsettingsbackend.m,g' SUBST_SED.gcocoa+= -e '/gcocoanotificationbackend/d' SUBST_SED.gcocoa+= -e '/g_type_ensure.*g_cocoa_notification/d' +SUBST_SED.gcocoa+= -e '/-xobjective-c/d' + +pre-configure: + ${MV} ${WRKSRC}/gio/gnextstepsettingsbackend.c \ + ${WRKSRC}/gio/gnextstepsettingsbackend.m .endif .if !empty(MACHINE_PLATFORM:MDarwin-[56].*-*) -- cgit v1.2.3