phidget21: add missing dependency
[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.05
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.oberhumer.com/opensource/lzo/download/
16 PKG_MD5SUM:=c67cda5fa191bab761c7cb06fe091e36
17
18 PKG_FIXUP:=autoreconf
19
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/liblzo
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=A real-time data compression library
28 URL:=http://www.oberhumer.com/opensource/lzo/
29 endef
30
31 define Package/liblzo/description
32 LZO is a data compression library which is suitable for data de-/compression in
33 real-time. This means it favours speed over compression ratio.
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default, \
38 --enable-shared \
39 --enable-static \
40 )
41 endef
42
43 TARGET_CFLAGS += $(FPIC)
44
45 MAKE_FLAGS += CFLAGS_O="$(TARGET_CFLAGS)"
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include
49 $(CP) $(PKG_INSTALL_DIR)/usr/include/lzo $(1)/usr/include/
50
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.{a,so*} $(1)/usr/lib/
53 endef
54
55 define Package/liblzo/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.so* $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,liblzo))