Advertisement
Guest User

Untitled

a guest
Aug 5th, 2012
605
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 dependency on the X11 libraries, just a couple of definitions in the headers
  20. which I haven't got rid of yet.
  21.  
  22. http://dl.dropbox.com/u/61946213/x11hdrs.tar
  23. Put them in /boot/develop/headers/3rdparty/X11
  24.  
  25. === Get the boot jdk ===
  26.  
  27. http://dl.dropbox.com/u/61946213/j2sdk-haiku.tar.xz
  28. Grab the cacerts file from here: http://dl.dropbox.com/u/61946213/cacerts
  29. Put this file in /path/to/j2sdk-image/jre/lib/security/, overwriting the existing file.
  30.  
  31. === Install ant ===
  32.  
  33. http://archive.apache.org/dist/ant/source/apache-ant-1.8.4-src.tar.gz
  34. export LIBRARY_PATH=/path/to/j2sdk-image/jre/lib/i386/:$LIBRARY_PATH
  35. export JAVA_HOME=/path/to/j2sdk-image
  36. export ANT_HOME=/path/to/ant/install/dir
  37. sh build.sh install-lite
  38.  
  39. === Clone the Haiku jdk port repos ===
  40.  
  41. hg clone https://bitbucket.org/hamishm/haiku-jdk jdk
  42. hg clone https://bitbucket.org/hamishm/haiku-jdk-langtools jdk/langtools
  43. hg clone https://bitbucket.org/hamishm/haiku-jdk-hotspot jdk/hotspot
  44. hg clone https://bitbucket.org/hamishm/haiku-jdk-jaxp jdk/jaxp
  45. hg clone https://bitbucket.org/hamishm/haiku-jdk-jaxws jdk/jaxws
  46. hg clone https://bitbucket.org/hamishm/haiku-jdk-corba jdk/corba
  47. hg clone https://bitbucket.org/hamishm/haiku-jdk-jdk jdk/jdk
  48.  
  49. === Build the jdk ===
  50.  
  51. (cd /path/to/jdk)
  52. setgcc gcc4
  53. 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