Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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:= icedtea
  5. PKG_VERSION:= 2.3.9
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= e96e5e578d442d3ae56cd332e8dbc6b6
  8. PKG_DESCR:= OpenJDK 7 Java VM
  9. PKG_SECTION:= lang
  10. PKG_URL:= http://openjdk.org/
  11. PKG_SITES:= http://icedtea.classpath.org/download/source/
  12. include ../rules.mk
  13. OPENJDK_NATIVE_ENV+= JAVACFLAGS="-cp ${STAGING_JAVA_HOST_DIR}/usr/share/java/libgcj-$(GCJ_VER).jar"
  14. OPENJDK_NATIVE_ENV+= DYLD_LIBRARY_PATH=$(STAGING_JAVA_HOST_DIR)/usr/lib:$(STAGING_JAVA_HOST_DIR)/usr/lib64
  15. OPENJDK_NATIVE_ENV+= LD_LIBRARY_PATH=$(STAGING_JAVA_HOST_DIR)/usr/lib:$(STAGING_JAVA_HOST_DIR)/usr/lib64
  16. OPENJDK_NATIVE_ENV+= ADK_ECJ=$(STAGING_JAVA_HOST_DIR)/usr/bin/ecj PATH=$$PATH:$(STAGING_JAVA_HOST_DIR)/usr/bin
  17. OPENJDK_NATIVE_ENV+= BOOTCLASSPATH="$(STAGING_JAVA_HOST_DIR)/usr/share/jamvm/classes.zip:$(STAGING_JAVA_HOST_DIR)/usr/share/classpath/glibj.zip"
  18. install: ${STAGING_JAVA_HOST_DIR}/bootstrap-jdk/bin/java
  19. CONFIGURE_ARGS+=\
  20. --enable-bootstrap \
  21. --enable-zero \
  22. --with-jdk-home=$(STAGING_JAVA_HOST_DIR)/usr/lib/jvm \
  23. --with-java=$(STAGING_JAVA_HOST_DIR)/usr/bin/java \
  24. --with-javac=$(STAGING_JAVA_HOST_DIR)/usr/bin/ecj \
  25. --with-ecj-jar=${STAGING_JAVA_HOST_DIR}/usr/share/java/ecj.jar \
  26. --without-hotspot-build \
  27. --disable-system-jpeg \
  28. --disable-system-lcms \
  29. --disable-system-zlib \
  30. --disable-system-png \
  31. --disable-system-gif \
  32. --disable-system-gtk \
  33. --disable-system-gio \
  34. --disable-system-fontconfig \
  35. --disable-compile-against-syscalls \
  36. --without-rhino \
  37. --disable-docs
  38. $(WRKDIST)/.configured: ${WRKDIST}/.prepared
  39. (cd ${WRKBUILD}; export ${OPENJDK_NATIVE_ENV}; ./configure ${CONFIGURE_ARGS})
  40. touch $@
  41. $(WRKBUILD)/.compiled: ${WRKDIST}/.configured
  42. export ${OPENJDK_NATIVE_ENV}; $(MAKE) -C $(WRKBUILD) icedtea-boot
  43. touch $@
  44. ${STAGING_JAVA_HOST_DIR}/bootstrap-jdk/bin/java: $(WRKBUILD)/.compiled
  45. $(CP) $(WRKSRC)/openjdk.build-boot/j2sdk-image $(STAGING_JAVA_HOST_DIR)/bootstrap-jdk
  46. touch $@
  47. include ${TOPDIR}/mk/pkg-bottom.mk