2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.oberhumer.com
/opensource
/lzo
/download
/
17 PKG_MD5SUM
:=0c3d078c2e8ea5a88971089a2f02a726
19 include $(INCLUDE_DIR
)/package.mk
24 TITLE
:=A real-time data compression library
25 URL
:=http
://www.oberhumer.com
/opensource
/lzo
/
28 define Package
/liblzo
/description
29 LZO is a data compression library which is suitable for data
30 de-
/compression in real-time.
31 This means it favours speed over compression ratio.
34 define Build
/Configure
35 $(call Build
/Configure
/Default
, \
42 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
43 CFLAGS_O
="$(TARGET_CFLAGS)" \
44 DESTDIR
="$(PKG_INSTALL_DIR)" \
48 define Build
/InstallDev
49 mkdir
-p
$(1)/usr
/include
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/lzo
$(1)/usr
/include/
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
))