[145018] trunk/dports/devel/glade/Portfile
mcalhoun at macports.org
mcalhoun at macports.org
Sat Jan 23 13:59:13 PST 2016
Revision: 145018
https://trac.macports.org/changeset/145018
Author: mcalhoun at macports.org
Date: 2016-01-23 13:59:13 -0800 (Sat, 23 Jan 2016)
Log Message:
-----------
glade: allow build if gtk3 was built with +quartz variant
Modified Paths:
--------------
trunk/dports/devel/glade/Portfile
Modified: trunk/dports/devel/glade/Portfile
===================================================================
--- trunk/dports/devel/glade/Portfile 2016-01-23 21:51:56 UTC (rev 145017)
+++ trunk/dports/devel/glade/Portfile 2016-01-23 21:59:13 UTC (rev 145018)
@@ -3,6 +3,7 @@
PortSystem 1.0
PortGroup gobject_introspection 1.0
+PortGroup active_variants 1.1
name glade
version 3.19.0
@@ -77,4 +78,25 @@
system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
}
+variant x11 conflicts quartz {
+ require_active_variants gtk3 x11 quartz
+}
+
+variant quartz conflicts x11 {
+ require_active_variants gtk3 quartz x11
+ depends_lib-append port:gtk-osx-application-gtk3
+
+ # compile glade-registration.c as Objective-C file since it includes
+ # /System/Library/Frameworks/AppKit.framework/Headers/AppKit.h
+ post-configure {
+ reinplace \
+ "s|-o glade-glade-registration.o|-xobjective-c -o glade-glade-registration.o|g" \
+ ${worksrcpath}/src/Makefile
+ }
+}
+
+if {![variant_isset quartz]} {
+ default_variants +x11
+}
+
livecheck.type gnome-with-unstable
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160123/c84b2736/attachment.html>
More information about the macports-changes
mailing list