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.

62 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2007-2018 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:=libpsl
  9. PKG_VERSION:=0.20.2
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=LICENSE
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=https://github.com/rockdaboot/libpsl/releases/download/$(PKG_NAME)-$(PKG_VERSION)/
  16. PKG_HASH:=f8fd0aeb66252dfcc638f14d9be1e2362fdaf2ca86bde0444ff4d5cc961b560f
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libpsl
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=C library to handle the Public Suffix List
  23. URL:=https://github.com/rockdaboot/libpsl
  24. DEPENDS:=+libidn2 +libunistring
  25. endef
  26. define Package/libpsl/description
  27. C library to handle the Public Suffix List
  28. endef
  29. CONFIGURE_ARGS += --disable-rpath
  30. define Build/InstallDev
  31. $(INSTALL_DIR) \
  32. $(1)/usr/lib \
  33. $(1)/usr/include
  34. $(CP) \
  35. $(PKG_INSTALL_DIR)/usr/include/* \
  36. $(1)/usr/include/
  37. $(CP) \
  38. $(PKG_INSTALL_DIR)/usr/lib/* \
  39. $(1)/usr/lib/
  40. endef
  41. define Package/libpsl/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) \
  44. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  45. $(1)/usr/lib/
  46. endef
  47. $(eval $(call BuildPackage,libpsl))