Advertisement
Guest User

Untitled

a guest
Jun 11th, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. === Grab a couple of optional packages ===
  2.  
  3. installoptionalpackage xz-utils mercurial
  4.  
  5. === Install cpio 2.10 ===
  6.  
  7. http://ftp.gnu.org/gnu/cpio/cpio-2.10.tar.gz
  8. setgcc gcc4
  9. ./configure --prefix=/boot/common LDFLAGS=-lnetwork
  10. make
  11. make install
  12.  
  13. === Get the freetype optional package ===
  14.  
  15. http://haiku-files.org/files/optional-packages/lib/freetype-2.4.6-x86-gcc2-2012-03-15.zip
  16.  
  17. === Get the X11 headers ===
  18.  
  19. There's no real dependency on the X11 libraries, just a couple of things
  20. in the headers I've yet to get rid of.
  21. http://dl.dropbox.com/u/61946213/x11hdrs.tar
  22. Put them in /boot/develop/headers/3rdparty/X11
  23.  
  24. === Get the boot jdk ===
  25.  
  26. http://dl.dropbox.com/u/61946213/j2sdk-haiku.tar.xz
  27. Grab the cacerts file from here: http://dl.dropbox.com/u/61946213/cacerts
  28. Put this file in /path/to/j2sdk-image/jre/lib/security/, overwriting the existing file.
  29.  
  30. === Install ant ===
  31.  
  32. http://archive.apache.org/dist/ant/source/apache-ant-1.8.4-src.tar.gz
  33. export LIBRARY_PATH=/path/to/j2sdk-image/jre/lib/i386/:$LIBRARY_PATH
  34. export JAVA_HOME=/path/to/j2sdk-image
  35. export ANT_HOME=/path/to/ant/install/dir
  36. sh build.sh install-lite
  37.  
  38. === Clone the Haiku jdk port repos ===
  39.  
  40. hg clone https://bitbucket.org/hamishm/haiku-jdk jdk
  41. hg clone https://bitbucket.org/hamishm/haiku-jdk-langtools jdk/langtools
  42. hg clone https://bitbucket.org/hamishm/haiku-jdk-hotspot jdk/hotspot
  43. hg clone https://bitbucket.org/hamishm/haiku-jdk-jaxp jdk/jaxp
  44. hg clone https://bitbucket.org/hamishm/haiku-jdk-jaxws jdk/jaxws
  45. hg clone https://bitbucket.org/hamishm/haiku-jdk-corba jdk/corba
  46. hg clone https://bitbucket.org/hamishm/haiku-jdk-jdk jdk/jdk
  47.  
  48. === Get on the right branch in the jdk subrepo ===
  49.  
  50. I'll be merging this branch into the default branch soon enough, I just
  51. haven't got round to it yet.
  52.  
  53. (cd /path/to/jdk/jdk)
  54. hg update -C lwawt
  55.  
  56. === Build the jdk ===
  57.  
  58. (cd /path/to/jdk)
  59. setgcc gcc4
  60. ALT_BOOTDIR='/path/to/j2sdk-image' ALT_JDK_IMPORT_PATH='/path/to/j2sdk-image' ANT='/path/to/ant' ALT_OUTPUTDIR='/path/to/output/dir' ALLOW_DOWNLOADS='true' make
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement