Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= jamvm
  5. PKG_VERSION:= 1.5.4
  6. PKG_RELEASE:= 5
  7. PKG_HASH:= 7865693698bc4322cabe1014a4b7ebdec1bc1daf45f1a4457b6e908a4446b124
  8. PKG_DESCR:= java virtual machine implementation
  9. PKG_SECTION:= dev/lang
  10. PKG_DEPENDS:= libffi zlib
  11. PKG_BUILDDEP:= libffi zlib
  12. PKG_URL:= http://jamvm.sourceforge.net
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=jamvm/}
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. PKG_ARCH_DEPENDS:= !m68k
  16. include ${ADK_TOPDIR}/mk/host.mk
  17. include ${ADK_TOPDIR}/mk/package.mk
  18. $(eval $(call HOST_template,JAMVM,jamvm,${PKG_VERSION}-${PKG_RELEASE}))
  19. $(eval $(call PKG_template,JAMVM,jamvm,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. HOST_CONFIGURE_ARGS+= --libdir=$(STAGING_HOST_DIR)/usr/lib/jamvm \
  21. --includedir=$(STAGING_HOST_DIR)/usr/include/jamvm \
  22. --with-classpath-install-dir=$(STAGING_HOST_DIR)/usr
  23. BUILD_STYLE:= manual
  24. INSTALL_STYLE:= manual
  25. CONFIGURE_ARGS+= --enable-ffi
  26. hostpost-install:
  27. ln -sf ${STAGING_HOST_DIR}/usr/bin/jamvm ${STAGING_HOST_DIR}/usr/lib/jvm/bin/java
  28. ln -sf ${STAGING_HOST_DIR}/usr/bin/jamvm ${STAGING_HOST_DIR}/usr/lib/jvm/jre/bin/java
  29. do-build:
  30. ${INSTALL_DIR} ${WRKINST}/usr/bin
  31. ${INSTALL_DIR} ${WRKINST}/usr/share/jamvm
  32. ${MAKE} -C ${WRKBUILD}/src \
  33. ${TARGET_CONFIGURE_OPTS}
  34. ${CP} ${WRKBUILD}/src/jamvm ${WRKINST}/usr/bin
  35. ${MAKE} -C ${WRKBUILD}/lib
  36. ${CP} ${WRKBUILD}/lib/classes.zip ${WRKINST}/usr/share/jamvm
  37. do-install:
  38. ${INSTALL_DIR} ${IDIR_JAMVM}/usr/bin
  39. ${INSTALL_DIR} ${IDIR_JAMVM}/usr/share/jamvm
  40. ${INSTALL_BIN} ${WRKINST}/usr/bin/jamvm ${IDIR_JAMVM}/usr/bin
  41. ${CP} ${WRKINST}/usr/share/jamvm/classes.zip \
  42. ${IDIR_JAMVM}/usr/share/jamvm
  43. include ${ADK_TOPDIR}/mk/host-bottom.mk
  44. include ${ADK_TOPDIR}/mk/pkg-bottom.mk