[packages] c-ares: update to 1.7.1
[openwrt/svn-archive/archive.git] / libs / lzo / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=lzo
11 PKG_VERSION:=2.03
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.oberhumer.com/opensource/lzo/download/
16 PKG_MD5SUM:=0c3d078c2e8ea5a88971089a2f02a726
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/liblzo
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=A real-time data compression library
27 URL:=http://www.oberhumer.com/opensource/lzo/
28 endef
29
30 define Package/liblzo/description
31 LZO is a data compression library which is suitable for data de-/compression in
32 real-time. This means it favours speed over compression ratio.
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --enable-shared \
38 --enable-static \
39 )
40 endef
41
42 TARGET_CFLAGS += $(FPIC)
43
44 MAKE_FLAGS += CFLAGS_O="$(TARGET_CFLAGS)"
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/lzo $(1)/usr/include/
49
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.{a,so*} $(1)/usr/lib/
52 endef
53
54 define Package/liblzo/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.so* $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,liblzo))