[25014] trunk/dports/textproc/pdftk/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Fri May 11 00:56:28 PDT 2007


Revision: 25014
          http://trac.macosforge.org/projects/macports/changeset/25014
Author:   ryandesign at macports.org
Date:     2007-05-11 00:56:28 -0700 (Fri, 11 May 2007)

Log Message:
-----------
Use gcc42 by default now. This makes it possible to build pdftk
on Intel Macs. PowerPC users who already have gcc41, gcc34 or
gcj34 installed and would prefer not to expend the considerable
CPU time and disk space to build gcc42 can use the available
variants.

Also, the available variants are now being marked as conflicting
with one another, since they do.

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

Modified: trunk/dports/textproc/pdftk/Portfile
===================================================================
--- trunk/dports/textproc/pdftk/Portfile	2007-05-11 07:44:50 UTC (rev 25013)
+++ trunk/dports/textproc/pdftk/Portfile	2007-05-11 07:56:28 UTC (rev 25014)
@@ -36,12 +36,9 @@
 	md5 7214230b937dc996d209c05b7b7b3518 \
 	sha1 e5eb83dd96dbda68072efe8f2637aad59f50dffc
 
-depends_lib			port:gcc41
+build.args \
+	-f Makefile.MacOSX
 
-build.args			-f Makefile.MacOSX \
-						TOOLPATH=${prefix}/bin/ \
-						VERSUFF=-dp-4.1
-
 destroot {
 	xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name}
 	xinstall -m 755 -W ${worksrcpath} pdftk ${destroot}/${prefix}/bin
@@ -51,16 +48,28 @@
 		${destroot}/${prefix}/share/man/man1
 }
 
-variant with_gcc34 {
-	depends_lib-delete  port:gcc41
+variant with_gcc34 conflicts with_gcj34 with_gcc41 with_gcc42 i386 {
 	depends_lib-append  port:gcc34
-	build.args-delete   VERSUFF=-dp-4.1
 	build.args-append   VERSUFF=-dp-3.4
 }
 
-variant with_gcj34 {
-	depends_lib-delete  port:gcc41
+variant with_gcj34 conflicts with_gcc34 with_gcc41 with_gcc42 i386 {
 	depends_lib-append  port:gcj34
-	build.args-delete   TOOLPATH=${prefix}/bin/ VERSUFF=-dp-4.1
 	build.args-append   TOOLPATH=${prefix}/gcj34-3.4.5/bin/
 }
+
+variant with_gcc41 conflicts with_gcc34 with_gcj34 with_gcc42 i386 {
+	depends_lib-append  port:gcc41
+	build.args-append   TOOLPATH=${prefix}/bin/ VERSUFF=-dp-4.1
+}
+
+variant with_gcc42 conflicts with_gcc34 with_gcj34 with_gcc41 {
+	depends_lib-append  port:gcc42
+	build.args-append   TOOLPATH=${prefix}/bin/ VERSUFF=-mp-4.2
+}
+
+platform i386 {}
+
+if { ![variant_isset with_gcc34] && ![variant_isset with_gcj34] && ![variant_isset with_gcc41] && ![variant_isset with_gcc42] } {
+	default_variants    +with_gcc42
+}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070511/6793bab9/attachment.html


More information about the macports-changes mailing list