1
0

Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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:= 3
  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. PKG_ARCH_DEPENDS:= !m68k
  15. include ${TOPDIR}/mk/host.mk
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call HOST_template,JAMVM,jamvm,${PKG_VERSION}-${PKG_RELEASE}))
  18. $(eval $(call PKG_template,JAMVM,jamvm,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. HOST_STYLE:= auto
  20. HOST_CONFIGURE_ARGS+= --with-classpath-install-dir=$(STAGING_HOST_DIR)/usr
  21. BUILD_STYLE:= manual
  22. INSTALL_STYLE:= manual
  23. CONFIGURE_ARGS+= --enable-ffi
  24. ifeq ($(ARCH),mips)
  25. CONFIGURE_ARGS+= --disable-tls
  26. endif
  27. ifeq ($(ARCH),arm)
  28. CONFIGURE_ARGS+= --disable-tls
  29. endif
  30. hostpost-install:
  31. ln -sf ${STAGING_HOST_DIR}/usr/bin/jamvm ${STAGING_HOST_DIR}/usr/lib/jvm/bin/java
  32. ln -sf ${STAGING_HOST_DIR}/usr/bin/jamvm ${STAGING_HOST_DIR}/usr/lib/jvm/jre/bin/java
  33. do-build:
  34. ${INSTALL_DIR} ${WRKINST}/usr/bin
  35. ${INSTALL_DIR} ${WRKINST}/usr/share/jamvm
  36. ${MAKE} -C ${WRKBUILD}/src \
  37. ${TARGET_CONFIGURE_OPTS}
  38. ${CP} ${WRKBUILD}/src/jamvm ${WRKINST}/usr/bin
  39. ${MAKE} -C ${WRKBUILD}/lib
  40. ${CP} ${WRKBUILD}/lib/classes.zip ${WRKINST}/usr/share/jamvm
  41. do-install:
  42. ${INSTALL_DIR} ${IDIR_JAMVM}/usr/bin
  43. ${INSTALL_DIR} ${IDIR_JAMVM}/usr/share/jamvm
  44. ${INSTALL_BIN} ${WRKINST}/usr/bin/jamvm ${IDIR_JAMVM}/usr/bin
  45. ${CP} ${WRKINST}/usr/share/jamvm/classes.zip \
  46. ${IDIR_JAMVM}/usr/share/jamvm
  47. include ${TOPDIR}/mk/host-bottom.mk
  48. include ${TOPDIR}/mk/pkg-bottom.mk