[package] update libpng to 1.2.40 (#5797)
[openwrt/svn-archive/archive.git] / libs / lzo / Makefile
1 #
2 # Copyright (C) 2006 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:=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:=0c3d078c2e8ea5a88971089a2f02a726
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/liblzo
21 SECTION:=libs
22 CATEGORY:=Libraries
23 TITLE:=A real-time data compression library
24 URL:=http://www.oberhumer.com/opensource/lzo/
25 endef
26
27 define Package/liblzo/description
28 LZO is a data compression library which is suitable for data
29 de-/compression in real-time.
30 This means it favours speed over compression ratio.
31 endef
32
33 define Build/Configure
34 $(call Build/Configure/Default, \
35 --enable-shared \
36 --enable-static \
37 )
38 endef
39
40 TARGET_CFLAGS += $(FPIC)
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 CFLAGS_O="$(TARGET_CFLAGS)" \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 all install
47 endef
48
49 define Build/InstallDev
50 mkdir -p $(1)/usr/include
51 $(CP) $(PKG_INSTALL_DIR)/usr/include/lzo $(1)/usr/include/
52 mkdir -p $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.{a,so*} $(1)/usr/lib/
54 endef
55
56 define Package/liblzo/install
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.so.* $(1)/usr/lib/
59 endef
60
61 $(eval $(call BuildPackage,liblzo))