2006-07-18 13:22:31 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=lzo
|
2008-07-06 17:40:57 +00:00
|
|
|
PKG_VERSION:=2.03
|
2006-07-18 13:22:31 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.oberhumer.com/opensource/lzo/download/
|
2008-07-06 17:40:57 +00:00
|
|
|
PKG_MD5SUM:=0c3d078c2e8ea5a88971089a2f02a726
|
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
|
|
|
|
LZO is a data compression library which is suitable for data
|
|
|
|
de-/compression in real-time.
|
|
|
|
This means it favours speed over compression ratio.
|
|
|
|
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
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
CFLAGS_O="$(TARGET_CFLAGS)" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-10-07 03:20:26 +00:00
|
|
|
mkdir -p $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/lzo $(1)/usr/include/
|
|
|
|
mkdir -p $(1)/usr/lib
|
|
|
|
$(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
|
2007-01-08 11:19:08 +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))
|