2010-02-19 00:14:01 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-07-18 13:22:31 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=lzo
|
2011-07-12 07:55:25 +00:00
|
|
|
PKG_VERSION:=2.05
|
2010-12-10 12:39:17 +00:00
|
|
|
PKG_RELEASE:=1
|
2006-07-18 13:22:31 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.oberhumer.com/opensource/lzo/download/
|
2011-07-12 07:55:25 +00:00
|
|
|
PKG_MD5SUM:=c67cda5fa191bab761c7cb06fe091e36
|
2010-12-10 12:39:17 +00:00
|
|
|
|
2010-12-10 12:51:39 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2006-07-18 13:22:31 +00:00
|
|
|
|
2010-03-19 16:23:44 +00:00
|
|
|
PKG_INSTALL:=1
|
2010-02-19 00:14:01 +00:00
|
|
|
|
2006-07-18 13:22:31 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/liblzo
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=A real-time data compression library
|
|
|
|
URL:=http://www.oberhumer.com/opensource/lzo/
|
|
|
|
endef
|
|
|
|
|
2008-07-06 17:40:57 +00:00
|
|
|
define Package/liblzo/description
|
2010-03-19 16:23:44 +00:00
|
|
|
LZO is a data compression library which is suitable for data de-/compression in
|
|
|
|
real-time. This means it favours speed over compression ratio.
|
2008-07-06 17:40:57 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-18 13:22:31 +00:00
|
|
|
define Build/Configure
|
2006-10-28 22:43:08 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
)
|
2006-07-18 13:22:31 +00:00
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2010-03-19 16:23:44 +00:00
|
|
|
MAKE_FLAGS += CFLAGS_O="$(TARGET_CFLAGS)"
|
2006-07-18 13:22:31 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/lzo $(1)/usr/include/
|
2010-03-19 16:23:44 +00:00
|
|
|
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.{a,so*} $(1)/usr/lib/
|
2006-07-18 13:22:31 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/liblzo/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2010-03-19 16:23:44 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.so* $(1)/usr/lib/
|
2006-10-28 22:43:08 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-18 13:22:31 +00:00
|
|
|
$(eval $(call BuildPackage,liblzo))
|