Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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:= !cris !avr32 !m68k
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,JAMVM,jamvm,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. BUILD_STYLE:= manual
  18. INSTALL_STYLE:= manual
  19. CONFIGURE_ARGS+= --enable-ffi
  20. ifeq ($(ARCH),mips)
  21. CONFIGURE_ARGS+= --disable-tls
  22. endif
  23. ifeq ($(ARCH),arm)
  24. CONFIGURE_ARGS+= --disable-tls
  25. endif
  26. do-build:
  27. ${INSTALL_DIR} ${WRKINST}/usr/bin
  28. ${INSTALL_DIR} ${WRKINST}/usr/share/jamvm
  29. ${MAKE} -C ${WRKBUILD}/src \
  30. ${TARGET_CONFIGURE_OPTS}
  31. ${CP} ${WRKBUILD}/src/jamvm ${WRKINST}/usr/bin
  32. ${MAKE} -C ${WRKBUILD}/lib
  33. ${CP} ${WRKBUILD}/lib/classes.zip ${WRKINST}/usr/share/jamvm
  34. do-install:
  35. ${INSTALL_DIR} ${IDIR_JAMVM}/usr/bin
  36. ${INSTALL_DIR} ${IDIR_JAMVM}/usr/share/jamvm
  37. ${INSTALL_BIN} ${WRKINST}/usr/bin/jamvm ${IDIR_JAMVM}/usr/bin
  38. ${CP} ${WRKINST}/usr/share/jamvm/classes.zip \
  39. ${IDIR_JAMVM}/usr/share/jamvm
  40. include ${TOPDIR}/mk/pkg-bottom.mk