1
0

Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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:= jamvm
  5. PKG_VERSION:= 1.5.4
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 7654e9657691f5f09c4f481ed4686176
  8. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=jamvm/}
  9. include ../rules.mk
  10. install: ${STAGING_JAVA_HOST_DIR}/usr/bin/jamvm
  11. $(WRKBUILD)/.configured: ${WRKDIST}/.prepared
  12. cd $(WRKBUILD); env \
  13. CC='${CC_FOR_BUILD}' \
  14. CXX='${CXX_FOR_BUILD}' \
  15. ./configure \
  16. --prefix=$(STAGING_JAVA_HOST_DIR)/usr \
  17. --with-classpath-install-dir=$(STAGING_JAVA_HOST_DIR)/usr
  18. touch $@
  19. $(WRKBUILD)/.compiled: ${WRKDIST}/.configured
  20. ${MAKE} -C ${WRKBUILD} $(MAKE_TRACE)
  21. touch $@
  22. ${STAGING_JAVA_HOST_DIR}/usr/bin/jamvm: $(WRKBUILD)/.compiled
  23. ${MAKE} -C ${WRKBUILD} install $(MAKE_TRACE)
  24. ln -sf ${STAGING_JAVA_HOST_DIR}/usr/bin/jamvm ${STAGING_JAVA_HOST_DIR}/usr/lib/jvm/bin/java
  25. ln -sf ${STAGING_JAVA_HOST_DIR}/usr/bin/jamvm ${STAGING_JAVA_HOST_DIR}/usr/lib/jvm/jre/bin/java
  26. include $(TOPDIR)/mk/tools.mk