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:=a383c7055a310e2a71b9ecd19cfea238
22 include $(INCLUDE_DIR)/package.mk
27 TITLE:=A real-time data compression library
28 URL:=http://www.oberhumer.com/opensource/lzo/
31 define Package/liblzo/description
32 LZO is a data compression library which is suitable for data de-/compression in
33 real-time. This means it favours speed over compression ratio.
36 define Build/Configure
37 $(call Build/Configure/Default, \
43 TARGET_CFLAGS += $(FPIC)
45 MAKE_FLAGS += CFLAGS_O="$(TARGET_CFLAGS)"
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include
49 $(CP) $(PKG_INSTALL_DIR)/usr/include/lzo $(1)/usr/include/
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.{a,so*} $(1)/usr/lib/
55 define Package/liblzo/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.so* $(1)/usr/lib/
60 $(eval $(call BuildPackage,liblzo))