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.

61 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2006-2016 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:=lzo
  9. PKG_VERSION:=2.10
  10. PKG_RELEASE:=4
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.oberhumer.com/opensource/lzo/download/
  13. PKG_HASH:=c0f892943208266f9b6543b3ae308fab6284c5c90e627931446fb49b4221a072
  14. PKG_LICENSE:=GPL-2.0-or-later
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_BUILD_PARALLEL:=1
  17. CMAKE_BINARY_SUBDIR:=openwrt-build
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/liblzo
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=A real-time data compression library
  24. URL:=http://www.oberhumer.com/opensource/lzo/
  25. ABI_VERSION:=2
  26. endef
  27. define Package/liblzo/description
  28. LZO is a data compression library which is suitable for data de-/compression
  29. in real-time. This means it favours speed over compression ratio.
  30. endef
  31. CMAKE_OPTIONS += \
  32. -DENABLE_SHARED=ON \
  33. -DENABLE_STATIC=ON \
  34. \
  35. -DBUILD_TESTING=OFF \
  36. -DCMAKE_SKIP_INSTALL_RPATH=ON
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/lzo $(1)/usr/include/
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.{a,so*} $(1)/usr/lib/
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lzo2.pc $(1)/usr/lib/pkgconfig
  42. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/lzo2.pc
  43. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/lzo2.pc
  44. endef
  45. define Package/liblzo/install
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.so.* $(1)/usr/lib/
  48. endef
  49. $(eval $(call BuildPackage,liblzo))