[38046] trunk/dports/textproc/openjade/Portfile

jmr at macports.org jmr at macports.org
Fri Jul 4 07:33:39 PDT 2008


Revision: 38046
          http://trac.macosforge.org/projects/macports/changeset/38046
Author:   jmr at macports.org
Date:     2008-07-04 07:33:39 -0700 (Fri, 04 Jul 2008)
Log Message:
-----------
openjade: fix missing CXX (#14075)

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

Modified: trunk/dports/textproc/openjade/Portfile
===================================================================
--- trunk/dports/textproc/openjade/Portfile	2008-07-04 13:56:23 UTC (rev 38045)
+++ trunk/dports/textproc/openjade/Portfile	2008-07-04 14:33:39 UTC (rev 38046)
@@ -28,7 +28,7 @@
 		--enable-default-catalog=${prefix}/share/sgml/catalog \
 		--datadir=${prefix}/share/sgml/openjade
 
-configure.env LIBS="-L${prefix}/lib"
+configure.env-append LIBS="-L${prefix}/lib"
 configure.cxxflags-append "-I${prefix}/include -fno-rtti" 
 
 post-configure	{ reinplace "s|^#pragma implementation||g" ${worksrcpath}/grove/Node.cxx
@@ -41,9 +41,18 @@
 		  reinplace "s|^#pragma interface||g" ${worksrcpath}/grove/Node.h
 		  reinplace "s|^#pragma interface||g" ${worksrcpath}/msggen.pl
 		  reinplace "s|^#pragma interface||g" ${worksrcpath}/spgrove/GroveApp.h
-#		  reinplace "s|CXX=|CXX=g++-3.3|g" ${worksrcpath}/libtool
 }
 
+platform darwin {
+    post-configure {
+		if {${os.major} < 8} {
+			reinplace "s|CXX=|CXX=/usr/bin/g++-3.3|g" ${worksrcpath}/libtool
+		} else {
+			reinplace "s|CXX=|CXX=/usr/bin/g++-4.0|g" ${worksrcpath}/libtool
+		}
+	}
+}
+
 destroot.target	install install-man
 
 post-destroot	{ system "install -d -m 755 ${destroot}${prefix}/share/sgml/openjade"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080704/27375a97/attachment.html 


More information about the macports-changes mailing list