Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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:= mozjs
  5. PKG_VERSION:= 17.0.0
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 20b6f8f1140ef6e47daa3b16965c9202
  8. PKG_DESCR:= javascript library
  9. PKG_SECTION:= libs
  10. PKG_BUILDDEP:= bzip2-host python2-host nspr
  11. PKG_SITES:= http://ftp.mozilla.org/pub/mozilla.org/js/
  12. PKG_OPTS:= dev
  13. PKG_HOST_DEPENDS:= !darwin
  14. DISTFILES:= ${PKG_NAME}${PKG_VERSION}.tar.gz
  15. WRKDIST= ${WRKDIR}/${PKG_NAME}${PKG_VERSION}
  16. WRKSRC= ${WRKDIST}/js/src
  17. include $(TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,MOZJS,mozjs,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  19. CONFIGURE_ENV+= HOST_CC="${CC_FOR_BUILD}" HOST_CFLAGS="${CFLAGS_FOR_BUILD}"
  20. CONFIGURE_ENV+= HOST_LDFLAGS="${LDFLAGS_FOR_BUILD}"
  21. CONFIGURE_ENV+= HOST_CXXFLAGS="${CXXFLAGS_FOR_BUILD}" HOST_CXX="${CXX_FOR_BUILD}"
  22. CONFIGURE_ARGS+= --disable-optimize \
  23. --with-system-nspr
  24. mozjs-install:
  25. $(INSTALL_DIR) $(IDIR_MOZJS)/usr/lib
  26. $(CP) $(WRKINST)/usr/lib/libmozjs*.so* \
  27. $(IDIR_MOZJS)/usr/lib
  28. include ${TOPDIR}/mk/pkg-bottom.mk