Makefile 1.8 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:= jamvm
  5. PKG_VERSION:= 1.5.4
  6. PKG_RELEASE:= 5
  7. PKG_MD5SUM:= 7654e9657691f5f09c4f481ed4686176
  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 ${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+= --libdir=$(STAGING_HOST_DIR)/usr/lib/jamvm \
  22. --includedir=$(STAGING_HOST_DIR)/usr/include/jamvm \
  23. --with-classpath-install-dir=$(STAGING_HOST_DIR)/usr
  24. BUILD_STYLE:= manual
  25. INSTALL_STYLE:= manual
  26. CONFIGURE_ARGS+= --enable-ffi
  27. hostpost-install:
  28. ln -sf ${STAGING_HOST_DIR}/usr/bin/jamvm ${STAGING_HOST_DIR}/usr/lib/jvm/bin/java
  29. ln -sf ${STAGING_HOST_DIR}/usr/bin/jamvm ${STAGING_HOST_DIR}/usr/lib/jvm/jre/bin/java
  30. do-build:
  31. ${INSTALL_DIR} ${WRKINST}/usr/bin
  32. ${INSTALL_DIR} ${WRKINST}/usr/share/jamvm
  33. ${MAKE} -C ${WRKBUILD}/src \
  34. ${TARGET_CONFIGURE_OPTS}
  35. ${CP} ${WRKBUILD}/src/jamvm ${WRKINST}/usr/bin
  36. ${MAKE} -C ${WRKBUILD}/lib
  37. ${CP} ${WRKBUILD}/lib/classes.zip ${WRKINST}/usr/share/jamvm
  38. do-install:
  39. ${INSTALL_DIR} ${IDIR_JAMVM}/usr/bin
  40. ${INSTALL_DIR} ${IDIR_JAMVM}/usr/share/jamvm
  41. ${INSTALL_BIN} ${WRKINST}/usr/bin/jamvm ${IDIR_JAMVM}/usr/bin
  42. ${CP} ${WRKINST}/usr/share/jamvm/classes.zip \
  43. ${IDIR_JAMVM}/usr/share/jamvm
  44. include ${TOPDIR}/mk/host-bottom.mk
  45. include ${TOPDIR}/mk/pkg-bottom.mk