1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | name icedtea |
---|
6 | version 1.11 |
---|
7 | categories java |
---|
8 | maintainers nomaintainer |
---|
9 | description Build harness for OpenJDK |
---|
10 | long_description The IcedTea project provides a harness to build the source code \ |
---|
11 | from http://openjdk.java.net using Free Software build tools and \ |
---|
12 | adds a number of key features to the upstream OpenJDK codebase |
---|
13 | |
---|
14 | homepage http://iced-tea.org/wiki/Main_Page |
---|
15 | platforms darwin |
---|
16 | master_sites http://icedtea.classpath.org/download/source/ |
---|
17 | |
---|
18 | checksums md5 752b5f08cdd1a0b9c823c544b0d56799 \ |
---|
19 | sha1 1811ac701ad9ef4cad43a98a5726c9eef0558d72 \ |
---|
20 | rmd160 84a5905285fd35bb798a99099dd6eb62fdaff5bd |
---|
21 | |
---|
22 | depends_lib \ |
---|
23 | port:zlib \ |
---|
24 | port:freetype \ |
---|
25 | port:gsed \ |
---|
26 | port:coreutils \ |
---|
27 | port:xalanj \ |
---|
28 | port:eclipse-ecj32 \ |
---|
29 | port:xercesj \ |
---|
30 | port:wget \ |
---|
31 | port:gawk \ |
---|
32 | port:jpeg \ |
---|
33 | port:giflib \ |
---|
34 | port:libpng \ |
---|
35 | port:xorg-xproto \ |
---|
36 | port:xorg-libXt \ |
---|
37 | port:xorg-libXp \ |
---|
38 | port:xorg-libXinerama \ |
---|
39 | port:xorg-libXtst |
---|
40 | |
---|
41 | depends_build port:apache-ant |
---|
42 | |
---|
43 | set java_base /System/Library/Frameworks/JavaVM.framework/Versions/1.5 |
---|
44 | |
---|
45 | use_parallel_build no |
---|
46 | |
---|
47 | post-extract { |
---|
48 | file mkdir ${workpath}/Java/1.5/Home/jre/lib/i386 |
---|
49 | file mkdir ${workpath}/Java/1.5/Home/lib |
---|
50 | ln -s ${java_base}/Classes/classes.jar ${workpath}/Java/1.5/Home/lib/tools.jar |
---|
51 | ln -s ${java_base}/Libraries/libjawt.dylib ${workpath}/Java/1.5/Home/jre/lib/i386 |
---|
52 | ln -s ${java_base}/Libraries/libjava.jnilib ${workpath}/Java/1.5/Home/jre/lib/i386/libjava.dylib |
---|
53 | ln -s ${java_base}/Libraries/libverify.dylib ${workpath}/Java/1.5/Home/jre/lib/i386 |
---|
54 | ln -s ${java_base}/Libraries ${workpath}/Java/1.5/Home/jre/lib/i386/server |
---|
55 | ln -s ${java_base}/Libraries ${workpath}/Java/1.5/Home/jre/lib/i386/client |
---|
56 | ln -s ${java_base}/Headers ${workpath}/Java/1.5/Home/include |
---|
57 | ln -s ${java_base}/Home/bin ${workpath}/Java/1.5/Home/bin |
---|
58 | |
---|
59 | file mkdir ${workpath}/rt-stripped |
---|
60 | exec unzip -q -d ${workpath}/rt-stripped ${java_base}/Classes/classes.jar -x *tools* |
---|
61 | exec jar -cf ${workpath}/Java/1.5/Home/jre/lib/rt.jar -C ${workpath}/rt-stripped . |
---|
62 | |
---|
63 | file mkdir ${workpath}/bin |
---|
64 | copy ${filespath}/ecj.in ${workpath}/bin/ecj |
---|
65 | reinplace "s|@@PREFIX@@|${prefix}|g" ${workpath}/bin/ecj |
---|
66 | |
---|
67 | copy ${filespath}/patch-SYSTEM_ZLIB.diff ${worksrcpath} |
---|
68 | copy ${filespath}/patch-openjdk-hotspot-src-os-bsd-vm-os_bsd.cpp.diff ${worksrcpath} |
---|
69 | copy ${filespath}/patch-openjdk-hotspot-make-bsd-Makefile.diff ${worksrcpath} |
---|
70 | copy ${filespath}/patch-openjdk-hotspot-make-bsd-makefiles-vm.make.diff ${worksrcpath} |
---|
71 | copy ${filespath}/patch-openjdk-hotspot-src-share-vm-utilities-globalDefinitions.hpp.diff ${worksrcpath} |
---|
72 | reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/patch-openjdk-hotspot-src-os-bsd-vm-os_bsd.cpp.diff |
---|
73 | } |
---|
74 | |
---|
75 | patchfiles patch-Makefile.am.diff patch-patches-ecj-icedtea.patch.diff patch-configure.ac.diff |
---|
76 | |
---|
77 | use_automake yes |
---|
78 | use_autoconf yes |
---|
79 | |
---|
80 | pre-configure { |
---|
81 | exec aclocal |
---|
82 | } |
---|
83 | |
---|
84 | configure.args --with-project=bsd \ |
---|
85 | --with-parallel-jobs=${build.jobs} \ |
---|
86 | --with-javac=${workpath}/bin/ecj \ |
---|
87 | --with-ecj-jar=${prefix}/share/java/eclipse-ecj.jar \ |
---|
88 | --with-xalan2-jar=${prefix}/share/java/xalan.jar \ |
---|
89 | --with-xalan2-serializer-jar=${prefix}/share/java/serializer.jar \ |
---|
90 | --with-xerces2-jar=${prefix}/share/java/xercesImpl.jar \ |
---|
91 | --with-jibx=${prefix}/share/java \ |
---|
92 | --with-jdk-home=${workpath}/Java/1.5/Home \ |
---|
93 | --without-rhino \ |
---|
94 | --disable-plugin \ |
---|
95 | --disable-xrender |
---|
96 | |
---|
97 | |
---|
98 | build.args SYSTEM_ZLIB=true \ |
---|
99 | ALT_FREETYPE_LIB_PATH=${prefix}/lib \ |
---|
100 | ALT_FREETYPE_HEADERS_PATH=${prefix}/include \ |
---|
101 | DISTRIBUTION_PATCHES="patch-SYSTEM_ZLIB.diff patch-openjdk-hotspot-src-os-bsd-vm-os_bsd.cpp.diff patch-openjdk-hotspot-src-share-vm-utilities-globalDefinitions.hpp.diff patch-openjdk-hotspot-make-bsd-Makefile.diff patch-openjdk-hotspot-make-bsd-makefiles-vm.make.diff" |
---|
102 | |
---|
103 | destroot { |
---|
104 | xinstall -m 755 -d ${destroot}${prefix}/share/java/ |
---|
105 | file copy ${worksrcpath}/openjdk/build/bsd-i586/j2sdk-image ${destroot}${prefix}/share/java/${name}/ |
---|
106 | } |
---|
107 | |
---|