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
20 include $(INCLUDE_DIR
)/package.mk
25 TITLE
:=A real-time data compression library
26 URL
:=http
://www.oberhumer.com
/opensource
/lzo
/
29 define Package
/liblzo
/description
30 LZO is a data compression library which is suitable for data
31 de-
/compression in real-time.
32 This means it favours speed over compression ratio.
35 define Build
/Configure
36 $(call Build
/Configure
/Default
, \
42 TARGET_CFLAGS
+= $(FPIC
)
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
46 CFLAGS_O
="$(TARGET_CFLAGS)" \
47 DESTDIR
="$(PKG_INSTALL_DIR)" \
51 define Build
/InstallDev
52 $(INSTALL_DIR
) $(1)/usr
/include
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/lzo
$(1)/usr
/include/
54 $(INSTALL_DIR
) $(1)/usr
/lib
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/liblzo2.
{a
,so
*} $(1)/usr
/lib
/
58 define Package
/liblzo
/install
59 $(INSTALL_DIR
) $(1)/usr
/lib
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/liblzo2.so.
* $(1)/usr
/lib
/
63 $(eval
$(call BuildPackage
,liblzo
))