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.

59 lines
1.6 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
  10. PKG_RELEASE:=1
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/nss-$(PKG_VERSION)
  12. PKG_SOURCE:=nss-$(PKG_VERSION)-with-nspr-4.10.4.tar.gz
  13. PKG_SOURCE_URL:=ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_16_RTM/src/
  14. PKG_INSTALL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. CONFIGURE_PATH=nspr
  17. MAKE_PATH=nspr
  18. define Package/nspr
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=Netscape Portable Runtime (NSPR)
  22. URL:=https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR
  23. DEPENDS:=+libpthread +librt
  24. MAINTAINER:=Luka Perkov <luka@openwrt.org>
  25. endef
  26. define Package/nspr/description
  27. Netscape Portable Runtime (NSPR) provides a platform-neutral API for system
  28. level and libc-like functions. The API is used in the Mozilla clients, many of
  29. Red Hat's and Sun's server applications, and other software offerings.
  30. endef
  31. CONFIGURE_ARGS += \
  32. --with-arch=toolchain-default \
  33. --with-fpu=toolchain-default \
  34. --with-float-abi=toolchain-default \
  35. --with-soft-float=toolchain-default
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/
  38. $(CP) $(PKG_INSTALL_DIR)/usr/include/ $(1)/usr/
  39. $(INSTALL_DIR) $(1)/usr/lib
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*{a,so} $(1)/usr/lib/
  41. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/nspr.pc $(1)/usr/lib/pkgconfig/
  43. endef
  44. define Package/nspr/install
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*so $(1)/usr/lib
  47. endef
  48. $(eval $(call BuildPackage,nspr))