Skip to content
Permalink
Browse files

Possible fix for Mac OS X 10.3.x build failures

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@28266 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Randall H. Wood
Randall H. Wood committed Aug 27, 2007
1 parent fea523d commit 8c733e0f1d4c34bd03948d082f061389bf94c179
Showing with 6 additions and 1 deletion.
  1. +6 −1 x11/gtk2/Portfile
@@ -53,7 +53,7 @@ pre-configure {
return -code 1 "\nYou must first build cairo with the quartz variant enabled. Please\nuninstall (or deactivate) the cairo port and reinstall by running:\n\n\"port install cairo +quartz\"\n"
}
}
if {[file exists ${prefix}/bin/cups-config]} {
if {${os.platform} == "darwin" && [rpm-vercomp ${os.version} 8.0] < 0 && [file exists ${prefix}/bin/cups-config]} {
return -code 1 "\nThe cups-headers port may prevent building this port. Please uninstall\n(or deactivate) cups-headers and restart the build.\n"
}
}
@@ -71,6 +71,11 @@ build.args CFLAGS+="-I${x11prefix}/include"

platform darwin 6 { patchfiles-append patch-gtk-xdgmime-xdgmimemagic.c }

platform darwin 7 {
depends_build-append \
port:cups-headers
}

variant quartz { configure.args-append --with-gdktarget=quartz }

post-patch { reinplace "s|xdg_data_dirs = \"/usr|xdg_data_dirs = \"${prefix}/share:/usr|g" ${worksrcpath}/gtk/xdgmime/xdgmime.c

0 comments on commit 8c733e0

Please sign in to comment.
You can’t perform that action at this time.