1
0

Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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:= 4
  7. PKG_MD5SUM:= 7654e9657691f5f09c4f481ed4686176
  8. PKG_DESCR:= A Java Virtual Machine (JVM) implementation
  9. PKG_SECTION:= 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 ${TOPDIR}/mk/host.mk
  17. include ${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_STYLE:= auto
  21. HOST_CONFIGURE_ARGS+= --with-classpath-install-dir=$(STAGING_HOST_DIR)/usr
  22. BUILD_STYLE:= manual
  23. INSTALL_STYLE:= manual
  24. CONFIGURE_ARGS+= --enable-ffi
  25. hostpost-install:
  26. ln -sf ${STAGING_HOST_DIR}/usr/bin/jamvm ${STAGING_HOST_DIR}/usr/lib/jvm/bin/java
  27. ln -sf ${STAGING_HOST_DIR}/usr/bin/jamvm ${STAGING_HOST_DIR}/usr/lib/jvm/jre/bin/java
  28. do-build:
  29. ${INSTALL_DIR} ${WRKINST}/usr/bin
  30. ${INSTALL_DIR} ${WRKINST}/usr/share/jamvm
  31. ${MAKE} -C ${WRKBUILD}/src \
  32. ${TARGET_CONFIGURE_OPTS}
  33. ${CP} ${WRKBUILD}/src/jamvm ${WRKINST}/usr/bin
  34. ${MAKE} -C ${WRKBUILD}/lib
  35. ${CP} ${WRKBUILD}/lib/classes.zip ${WRKINST}/usr/share/jamvm
  36. do-install:
  37. ${INSTALL_DIR} ${IDIR_JAMVM}/usr/bin
  38. ${INSTALL_DIR} ${IDIR_JAMVM}/usr/share/jamvm
  39. ${INSTALL_BIN} ${WRKINST}/usr/bin/jamvm ${IDIR_JAMVM}/usr/bin
  40. ${CP} ${WRKINST}/usr/share/jamvm/classes.zip \
  41. ${IDIR_JAMVM}/usr/share/jamvm
  42. include ${TOPDIR}/mk/host-bottom.mk
  43. include ${TOPDIR}/mk/pkg-bottom.mk