[packages] libidn: update to 1.18
[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:=2
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
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/liblzo
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=A real-time data compression library
26 URL:=http://www.oberhumer.com/opensource/lzo/
27 endef
28
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.
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 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 CFLAGS_O="$(TARGET_CFLAGS)" \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
48 all install
49 endef
50
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/
56 endef
57
58 define Package/liblzo/install
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.so.* $(1)/usr/lib/
61 endef
62
63 $(eval $(call BuildPackage,liblzo))