2 # Copyright (C) 2006-2010 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:=0c3d078c2e8ea5a88971089a2f02a726
21 include $(INCLUDE_DIR)/package.mk
26 TITLE:=A real-time data compression library
27 URL:=http://www.oberhumer.com/opensource/lzo/
30 define Package/liblzo/description
31 LZO is a data compression library which is suitable for data de-/compression in
32 real-time. This means it favours speed over compression ratio.
35 define Build/Configure
36 $(call Build/Configure/Default, \
42 TARGET_CFLAGS += $(FPIC)
44 MAKE_FLAGS += CFLAGS_O="$(TARGET_CFLAGS)"
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/lzo $(1)/usr/include/
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.{a,so*} $(1)/usr/lib/
54 define Package/liblzo/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.so* $(1)/usr/lib/
59 $(eval $(call BuildPackage,liblzo))