Add more license tags with SPDX identifiers
[openwrt/openwrt.git] / package / libs / lzo / Makefile
1 #
2 # Copyright (C) 2006-2012 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.08
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:=fcec64c26a0f4f4901468f360029678f
17
18 KG_LICENSE:=GPL-2.0+
19 PKG_LICENSE_FILES:=COPYING
20
21 PKG_FIXUP:=autoreconf
22 PKG_INSTALL:=1
23 PKG_LICENSE:=GPL-2.0+
24
25 PKG_BUILD_PARALLEL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/liblzo
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=A real-time data compression library
33 URL:=http://www.oberhumer.com/opensource/lzo/
34 endef
35
36 define Package/liblzo/description
37 LZO is a data compression library which is suitable for data de-/compression
38 in real-time. This means it favours speed over compression ratio.
39 endef
40
41 define Build/Configure
42 $(call Build/Configure/Default, \
43 --enable-shared \
44 --enable-static \
45 )
46 endef
47
48 TARGET_CFLAGS += $(FPIC)
49 MAKE_FLAGS += CFLAGS_O="$(TARGET_CFLAGS)"
50
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/lzo $(1)/usr/include/
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.{a,so*} $(1)/usr/lib/
55 endef
56
57 define Package/liblzo/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.so* $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,liblzo))