[42741] trunk/dports/textproc/doxygen/Portfile

css at macports.org css at macports.org
Sun Nov 30 04:27:54 PST 2008


Revision: 42741
          http://trac.macports.org/changeset/42741
Author:   css at macports.org
Date:     2008-11-30 04:27:49 -0800 (Sun, 30 Nov 2008)
Log Message:
-----------
Patch doxygen's configuration to more accurately inherit the MacPorts configure parameters. This helps to choose the user's preferred compiler as chosen via gcc_select. see #17213

Modified Paths:
--------------
    trunk/dports/textproc/doxygen/Portfile

Modified: trunk/dports/textproc/doxygen/Portfile
===================================================================
--- trunk/dports/textproc/doxygen/Portfile	2008-11-30 08:51:54 UTC (rev 42740)
+++ trunk/dports/textproc/doxygen/Portfile	2008-11-30 12:27:49 UTC (rev 42741)
@@ -4,7 +4,7 @@
 
 name			doxygen
 version			1.5.7
-revision		1
+revision		2
 categories		textproc devel
 maintainers		css at macports.org
 description		Documentation system for several programming languages
@@ -38,7 +38,7 @@
 # setup to work smoothly with Qt3
 post-patch {
 	reinplace "s|\$(QTDIR)/include|\$(QTDIR)/include/qt3|g" \
-		"${worksrcpath}/tmake/lib/macosx-c++/tmake.conf"
+		${tmake_conf}
 	reinplace "s|@@PREFIX@@|${prefix}|g" \
 		${worksrcpath}/addon/doxywizard/Makefile.doxywizard
 	reinplace "s|@@X11PREFIX@@|${x11prefix}|g" \
@@ -52,6 +52,11 @@
 configure.args		--docdir ${prefix}/share/doc --dot ${prefix}/bin/dot
 configure.env		QTDIR=${prefix}
 
+post-configure {
+	reinplace "/^TMAKE_CC\[\[:space:\]\]/s%=.*%= ${configure.cc}%" ${tmake_conf}
+	reinplace "/^TMAKE_CXX\[\[:space:\]\]/s%=.*%= ${configure.cxx}%" ${tmake_conf}
+}
+
 build.env		QTDIR=${prefix}
 build.target		all
 
@@ -74,6 +79,8 @@
 
 platform darwin {
 	# Specify the platform explicitly to avoid a universal build.
+	global tmake_conf
+	set tmake_conf	${worksrcpath}/tmake/lib/macosx-c++/tmake.conf
 	configure.args-append	--platform macosx-c++
 	if {[variant_isset wizard]} {
 		post-destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081130/8bb9bbcb/attachment.html>


More information about the macports-changes mailing list