You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=nspr
  9. PKG_VERSION:=3.16.6
  10. PKG_RELEASE:=1
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/nss-$(PKG_VERSION)
  12. PKG_SOURCE:=nss-$(PKG_VERSION)-with-nspr-4.10.6.tar.gz
  13. PKG_SOURCE_URL:=ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_16_6_RTM/src/
  14. PKG_MD5SUM:=4722706ea101948712b5ad003629679f
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. CONFIGURE_PATH=nspr
  18. MAKE_PATH=nspr
  19. define Package/nspr
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=Netscape Portable Runtime (NSPR)
  23. URL:=https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR
  24. DEPENDS:=+libpthread +librt
  25. MAINTAINER:=Luka Perkov <luka@openwrt.org>
  26. endef
  27. define Package/nspr/description
  28. Netscape Portable Runtime (NSPR) provides a platform-neutral API for system
  29. level and libc-like functions. The API is used in the Mozilla clients, many of
  30. Red Hat's and Sun's server applications, and other software offerings.
  31. endef
  32. CONFIGURE_ARGS += \
  33. --with-arch=toolchain-default \
  34. --with-fpu=toolchain-default \
  35. --with-float-abi=toolchain-default \
  36. --with-soft-float=toolchain-default
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/ $(1)/usr/
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*{a,so} $(1)/usr/lib/
  42. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/nspr.pc $(1)/usr/lib/pkgconfig/
  44. endef
  45. define Package/nspr/install
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*so $(1)/usr/lib
  48. endef
  49. $(eval $(call BuildPackage,nspr))