1
0

Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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:= nspr
  5. PKG_VERSION:= 4.8.7
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 97e30989a56ab813453b71261849c200
  8. PKG_DESCR:= Netscape Portable Runtime library
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://www.mozilla.org/projects/nspr/
  11. PKG_SITES:= ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PKG_VERSION}/src/
  12. PKG_ARCH_DEPENDS:= !cris
  13. PKG_SUBPKGS:= NSPR NSPR_DEV
  14. PKGSC_NSPR_DEV:= devel
  15. PKGSD_NSPR_DEV:= nspr headers
  16. WRKSRC= ${WRKDIST}/mozilla/nsprpub
  17. include $(TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,NSPR,nspr,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,NSPR_DEV,nspr-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_NSPR_DEV},${PKGSC_NSPR_DEV}))
  20. CONFIGURE_ENV+= OS_TARGET="Linux" HOST_CC="${CC_FOR_BUILD}" HOST_CFLAGS="${CFLAGS_FOR_BUILD}"
  21. ifeq (${ADK_LINUX_64},y)
  22. CONFIGURE_ARGS+= --enable-64bit
  23. endif
  24. nspr-install:
  25. $(INSTALL_DIR) $(IDIR_NSPR)/usr/lib
  26. $(CP) $(WRKINST)/usr/lib/*.so* $(IDIR_NSPR)/usr/lib
  27. nspr-dev-install:
  28. $(INSTALL_DIR) $(IDIR_NSPR_DEV)/usr/include
  29. $(CP) $(WRKINST)/usr/include/* $(IDIR_NSPR_DEV)/usr/include
  30. include ${TOPDIR}/mk/pkg-bottom.mk