source: packages/libs/lzo/Makefile @ 24414

Last change on this file since 24414 was 24414, checked in by jow, 6 years ago

[packages] lzo: force full autoreconf, remove private libtool copy, supply missing macros

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=lzo
11PKG_VERSION:=2.04
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.oberhumer.com/opensource/lzo/download/
16PKG_MD5SUM:=a383c7055a310e2a71b9ecd19cfea238
17
18PKG_FIXUP:=libtool
19PKG_REMOVE_FILES:=aclocal.m4 autoconf/ltmain.sh
20
21PKG_INSTALL:=1
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/liblzo
26  SECTION:=libs
27  CATEGORY:=Libraries
28  TITLE:=A real-time data compression library
29  URL:=http://www.oberhumer.com/opensource/lzo/
30endef
31
32define Package/liblzo/description
33LZO is a data compression library which is suitable for data de-/compression in
34real-time. This means it favours speed over compression ratio.
35endef
36
37define Build/Configure
38        $(call Build/Configure/Default, \
39                --enable-shared \
40                --enable-static \
41        )
42endef
43
44TARGET_CFLAGS += $(FPIC)
45
46MAKE_FLAGS += CFLAGS_O="$(TARGET_CFLAGS)"
47
48define Build/InstallDev
49        $(INSTALL_DIR) $(1)/usr/include
50        $(CP) $(PKG_INSTALL_DIR)/usr/include/lzo $(1)/usr/include/
51
52        $(INSTALL_DIR) $(1)/usr/lib
53        $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.{a,so*} $(1)/usr/lib/
54endef
55
56define Package/liblzo/install
57        $(INSTALL_DIR) $(1)/usr/lib
58        $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.so* $(1)/usr/lib/
59endef
60
61$(eval $(call BuildPackage,liblzo))
Note: See TracBrowser for help on using the repository browser.