Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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:= cacao
  5. PKG_VERSION:= 0.99.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 63220327925ace13756ae334c55a3baa
  8. PKG_SITES:= http://www.complang.tuwien.ac.at/cacaojvm/download/cacao-0.99.4/
  9. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
  10. include ../rules.mk
  11. install: ${STAGING_HOST_DIR}/usr/bin/cacao
  12. $(WRKBUILD)/.configured: ${WRKDIST}/.prepared
  13. (cd $(WRKBUILD); ./configure --prefix=/usr --disable-libjvm --enable-debug \
  14. --with-vm-zip=$(STAGING_HOST_DIR)/usr/share/cacao/vm.zip \
  15. --with-java-runtime-library=gnuclasspath \
  16. --with-java-runtime-library-classes=$(STAGING_HOST_DIR)/usr/share/classpath/glibj.zip \
  17. --with-java-runtime-library-prefix=$(STAGING_HOST_DIR)/usr \
  18. --with-jni_md_h=$(STAGING_HOST_DIR)/usr/include \
  19. );
  20. touch $@
  21. $(WRKBUILD)/.compiled: ${WRKDIST}/.configured
  22. ${MAKE} -C ${WRKBUILD} $(MAKE_TRACE)
  23. touch $@
  24. ${STAGING_HOST_DIR}/usr/bin/cacao: $(WRKBUILD)/.compiled
  25. ${MAKE} -C ${WRKBUILD} DESTDIR=$(STAGING_HOST_DIR) install $(MAKE_TRACE)
  26. include $(TOPDIR)/mk/tools.mk