[73773] trunk/dports/java/openjdk6/Portfile

landonf at macports.org landonf at macports.org
Wed Nov 24 19:47:13 PST 2010


Revision: 73773
          http://trac.macports.org/changeset/73773
Author:   landonf at macports.org
Date:     2010-11-24 19:47:09 -0800 (Wed, 24 Nov 2010)
Log Message:
-----------
Add configuration for PPC; this is untested/unsupported, but it may be possible to build a zero-based PPC port using a variation on these settings. I don't have a PPC machine, so I can't pursue this.
This also fixes the PPC portindex issue referenced in the previous commit.

Modified Paths:
--------------
    trunk/dports/java/openjdk6/Portfile

Modified: trunk/dports/java/openjdk6/Portfile
===================================================================
--- trunk/dports/java/openjdk6/Portfile	2010-11-25 02:51:11 UTC (rev 73772)
+++ trunk/dports/java/openjdk6/Portfile	2010-11-25 03:47:09 UTC (rev 73773)
@@ -226,29 +226,34 @@
 
 } elseif {${build_arch} == "ppc"} {
     # Currently unsupported
+    build.env-append "UNAME_MACHINE=ppc"
+    set openjdk_datamodel "32"
+    set openjdk_build_arch "ppc"
+} else {
+    # Unknown architecture
+    set openjdk_datamodel "32"
+    set openjdk_build_arch "unsupported"
 }
 
-pre-build {
-    build.args \
-        ARCH_DATA_MODEL="${openjdk_datamodel}" \
-        ALT_BOOTDIR="${bootstrapvm}" \
-        ALT_JDK_IMPORT_PATH="${bootstrapvm}" \
-        ALT_BINARY_PLUGS_PATH="${prefix}/share/java/icedtea6-plugs/jre/lib/rt-closed.jar" \
-        ALT_DROPS_DIR="${distpath}" \
-        ANT_HOME="${prefix}/share/java/apache-ant" \
-        ALT_FREETYPE_HEADERS_PATH="${prefix}/include" \
-        ALT_FREETYPE_LIB_PATH="${prefix}/lib" \
-        ALT_CUPS_HEADERS_PATH="/usr/include" \
-        ALT_MOTIF_DIR="${prefix}" \
-        ALT_X11_PATH="${prefix}" \
-        ALT_DEVTOOLS_PATH=/usr \
-        ALT_CACERTS_FILE=/System/Library/Frameworks/JavaVM.framework/Home/lib/security/cacerts \
-        NO_DOCS=true \
-        LANG="C" \
-        BUILD_NUMBER="${version}" \
-        MILESTONE=fcs \
-        HOTSPOT_BUILD_JOBS="${build.jobs}"
-}
+build.args \
+    ARCH_DATA_MODEL="${openjdk_datamodel}" \
+    ALT_BOOTDIR="${bootstrapvm}" \
+    ALT_JDK_IMPORT_PATH="${bootstrapvm}" \
+    ALT_BINARY_PLUGS_PATH="${prefix}/share/java/icedtea6-plugs/jre/lib/rt-closed.jar" \
+    ALT_DROPS_DIR="${distpath}" \
+    ANT_HOME="${prefix}/share/java/apache-ant" \
+    ALT_FREETYPE_HEADERS_PATH="${prefix}/include" \
+    ALT_FREETYPE_LIB_PATH="${prefix}/lib" \
+    ALT_CUPS_HEADERS_PATH="/usr/include" \
+    ALT_MOTIF_DIR="${prefix}" \
+    ALT_X11_PATH="${prefix}" \
+    ALT_DEVTOOLS_PATH=/usr \
+    ALT_CACERTS_FILE=/System/Library/Frameworks/JavaVM.framework/Home/lib/security/cacerts \
+    NO_DOCS=true \
+    LANG="C" \
+    BUILD_NUMBER="${version}" \
+    MILESTONE=fcs \
+    HOTSPOT_BUILD_JOBS="${build.jobs}"
 
 variant fastdebug {
     build.post_args FASTDEBUG=true
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101124/2f6e1d8d/attachment.html>


More information about the macports-changes mailing list