2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.oberhumer.com/opensource/lzo/download/
16 PKG_MD5SUM:=fcec64c26a0f4f4901468f360029678f
19 PKG_LICENSE_FILES:=COPYING
27 include $(INCLUDE_DIR)/package.mk
32 TITLE:=A real-time data compression library
33 URL:=http://www.oberhumer.com/opensource/lzo/
36 define Package/liblzo/description
37 LZO is a data compression library which is suitable for data de-/compression
38 in real-time. This means it favours speed over compression ratio.
41 define Build/Configure
42 $(call Build/Configure/Default, \
48 TARGET_CFLAGS += $(FPIC)
49 MAKE_FLAGS += CFLAGS_O="$(TARGET_CFLAGS)"
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/lzo $(1)/usr/include/
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.{a,so*} $(1)/usr/lib/
57 define Package/liblzo/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.so* $(1)/usr/lib/
62 $(eval $(call BuildPackage,liblzo))