Makefile 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= openjdk
  5. PKG_VERSION:= 6
  6. PKG_EXTRAVER:= b22-28_feb_2011
  7. PKG_RELEASE:= 1
  8. PKG_MD5SUM:= 2d2bbbb0f9b81f1fec41ec730da8a933 \
  9. fd3f35e8a8a2ef9a64c035ed66cea06d \
  10. ef7a8b3624ea904bf584bc46d79b5e75 \
  11. bc95c133620bd68c161cac9891592901 \
  12. 91adfd41e6f001add4f92ae31216b1e3 \
  13. d526d0848c88607ce4e3a0a4edb75d50
  14. PKG_DESCR:= OpenJDK Java VM
  15. PKG_SECTION:= lang
  16. PKG_BUILDDEP:= xproto jpeg zlib libX11 libpng freetype
  17. PKG_URL:= http://openjdk.org/
  18. PKG_SITES:= http://download.java.net/openjdk/jdk6/promoted/b22/ \
  19. http://mirror.netcologne.de/apache.org/xml/xalan-j/binaries/ \
  20. http://icedtea.classpath.org/download/drops/ \
  21. http://icedtea.classpath.org/download/source/
  22. # autotools infrastructure for OpenJDK
  23. ICEDTEA_NAME:= icedtea6
  24. ICEDTEA_VERSION:= 1.10
  25. # bootstrap JARs
  26. XALAN_NAME= xalan-j
  27. XALAN_VERSION= 2_7_0
  28. # override generic extraction
  29. EXTRACT_OVERRIDE:= 1
  30. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION)-src-$(PKG_EXTRAVER).tar.gz \
  31. $(ICEDTEA_NAME)-$(ICEDTEA_VERSION).tar.gz \
  32. jaxp144_01.zip \
  33. jdk6-jaf-b20.zip \
  34. jdk6-jaxws-b20.zip \
  35. ${XALAN_NAME}_${XALAN_VERSION}-bin.tar.gz
  36. WRKDIST= ${WRKDIR}
  37. WRKSRC= ${WRKDIST}/${ICEDTEA_NAME}-${ICEDTEA_VERSION}
  38. PKG_SUBPKGS:= OPENJDK
  39. PKG_CFLINE_OPENJDK:= select ADK_TOOLCHAIN_GCC_JAVA
  40. PKG_CHOICES_OPENJDK:= ZERO SHARK CACAO JAMVM
  41. PKGCD_ZERO:= zero-assembly backend
  42. PKGCD_SHARK:= JIT backend
  43. PKGCD_CACAO:= Cacao JIT backend
  44. PKGCD_JAMVM:= JamVM backend
  45. include $(TOPDIR)/mk/package.mk
  46. $(eval $(call PKG_template,OPENJDK,openjdk,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  47. ifeq ($(ADK_PACKAGE_OPENJDK_ZERO),y)
  48. CONFIGURE_ARGS+= --enable-zero
  49. endif
  50. ifeq ($(ADK_PACKAGE_OPENJDK_SHARK),y)
  51. CONFIGURE_ARGS+= --enable-shark
  52. endif
  53. CONFIGURE_ARGS+= --disable-docs \
  54. --enable-bootstrap \
  55. --enable-openjdk-cross-compilation \
  56. --with-jdk-home=${STAGING_JAVA_HOST_DIR}/usr/lib/jvm \
  57. --with-java=$(STAGING_JAVA_HOST_DIR)/usr/bin/jamvm \
  58. --with-javac=$(STAGING_JAVA_HOST_DIR)/usr/bin/ecj \
  59. --with-gcj=$(STAGING_JAVA_HOST_DIR)/usr/bin/gcj \
  60. --with-openjdk-src-dir=$(WRKDIST)/$(PKG_NAME)-$(PKG_VERSION) \
  61. --with-xalan2-jar=${WRKDIST}/${XALAN_NAME}_${XALAN_VERSION}/xalan.jar \
  62. --with-xalan2-serializer-jar=${WRKDIST}/${XALAN_NAME}_${XALAN_VERSION}/serializer.jar \
  63. --with-xerces2-jar=${WRKDIST}/${XALAN_NAME}_${XALAN_VERSION}/xercesImpl.jar \
  64. --with-ecj-jar=${STAGING_JAVA_HOST_DIR}/usr/share/ecj.jar \
  65. --without-rhino \
  66. --disable-xrender \
  67. --disable-nss
  68. OPENJDK_BUILD_ENV+= JAVACFLAGS="-cp ${STAGING_JAVA_HOST_DIR}/usr/share/java/libgcj-4.5.2.jar"
  69. OPENJDK_BUILD_ENV+= DYLD_LIBRARY_PATH=$(STAGING_JAVA_HOST_DIR)/usr/lib:$(STAGING_JAVA_HOST_DIR)/usr/lib64
  70. OPENJDK_BUILD_ENV+= LD_LIBRARY_PATH=$(STAGING_JAVA_HOST_DIR)/usr/lib:$(STAGING_JAVA_HOST_DIR)/usr/lib64
  71. OPENJDK_BUILD_ENV+= ADK_ECJ=$(STAGING_JAVA_HOST_DIR)/usr/bin/ecj
  72. CONFIGURE_ENV+= ${OPENJDK_BUILD_ENV}
  73. MAKE_ENV+= ${OPENJDK_BUILD_ENV}
  74. do-extract:
  75. cd ${WRKDIST}; mkdir $(PKG_NAME)-$(PKG_VERSION) ; \
  76. tar xzf $(TOPDIR)/dl/$(PKG_NAME)-$(PKG_VERSION)-src-$(PKG_EXTRAVER).tar.gz -C $(PKG_NAME)-$(PKG_VERSION)
  77. cd $(WRKDIST); tar xzf $(TOPDIR)/dl/$(ICEDTEA_NAME)-$(ICEDTEA_VERSION).tar.gz
  78. cd ${WRKDIST}; tar xzf ${TOPDIR}/dl/${XALAN_NAME}_${XALAN_VERSION}-bin.tar.gz
  79. mkdir -p ${WRKBUILD}/drops
  80. cd ${TOPDIR}/dl; cp jaxp144_01.zip jdk6-jaf-b20.zip jdk6-jaxws-b20.zip \
  81. ${WRKBUILD}/drops
  82. pre-configure:
  83. cd ${WRKBUILD}; rm -rf config.{cache,status}; \
  84. export ${OPENJDK_BUILD_ENV}; ./configure \
  85. --enable-bootstrap \
  86. --enable-zero \
  87. --with-jdk-home=$(STAGING_JAVA_HOST_DIR)/usr/lib/jvm \
  88. --with-java=$(STAGING_JAVA_HOST_DIR)/usr/bin/jamvm \
  89. --with-javac=$(STAGING_JAVA_HOST_DIR)/usr/bin/ecj \
  90. --with-gcj=$(STAGING_JAVA_HOST_DIR)/usr/bin/gcj \
  91. --with-openjdk-src-dir=$(WRKDIST)/$(PKG_NAME)-$(PKG_VERSION) \
  92. --with-ecj-jar=${STAGING_JAVA_HOST_DIR}/usr/share/ecj.jar \
  93. --disable-docs \
  94. --disable-openjdk-cross-compilation \
  95. --with-xalan2-jar=${WRKDIST}/${XALAN_NAME}_${XALAN_VERSION}/xalan.jar \
  96. --with-xalan2-serializer-jar=${WRKDIST}/${XALAN_NAME}_${XALAN_VERSION}/serializer.jar \
  97. --with-xerces2-jar=${WRKDIST}/${XALAN_NAME}_${XALAN_VERSION}/xercesImpl.jar \
  98. --without-rhino \
  99. --disable-xrender \
  100. --disable-nss \
  101. && ${MAKE}
  102. openjdk-install:
  103. $(INSTALL_DIR) $(IDIR_OPENJDK)/usr/bin
  104. include ${TOPDIR}/mk/pkg-bottom.mk