From 306a2d326620820b03546bacf949d295339bf8af Mon Sep 17 00:00:00 2001 From: jperkin Date: Tue, 26 Apr 2016 15:26:44 +0000 Subject: Fix build on Darwin < 10.9 by disabling Cocoa notification support. --- devel/glib2/Makefile.common | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'devel/glib2') diff --git a/devel/glib2/Makefile.common b/devel/glib2/Makefile.common index f50a7e0f457..0acdec04837 100644 --- a/devel/glib2/Makefile.common +++ b/devel/glib2/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.47 2016/04/07 18:33:05 prlw1 Exp $ +# $NetBSD: Makefile.common,v 1.48 2016/04/26 15:26:44 jperkin Exp $ # # used by devel/glib2/Makefile # used by devel/gdbus-codegen/Makefile @@ -64,6 +64,19 @@ 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. +.if !empty(MACHINE_PLATFORM:MDarwin-[0-9].*) || \ + !empty(MACHINE_PLATFORM:MDarwin-1[012].*) +SUBST_CLASSES+= gcocoa +SUBST_STAGE.gcocoa= pre-configure +SUBST_FILES.gcocoa= gio/Makefile.in +SUBST_FILES.gcocoa+= configure +SUBST_SED.gcocoa= -e 's,gcocoanotificationbackend.c,,g' +SUBST_SED.gcocoa+= -e '/gcocoanotificationbackend/d' +SUBST_SED.gcocoa+= -e 's,10.9.0,10.0.0,g' +.endif + .if !empty(MACHINE_PLATFORM:MDarwin-[56].*-*) CONFIGURE_ENV+= gt_cv_c_wchar_t=no .endif -- cgit v1.2.3