noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[feed/packages.git] / libs / liblz4 / Makefile
1 #
2 # Copyright (C) 2015 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 # Although liblz4 exports a major.minor.patch version, it isn't always
11 # incremented for new releases. Check the NEWS file and instead use a
12 # release tag when appropriate. (eg: PKG_VERSION:=r131)
13 PKG_NAME:=liblz4
14 PKG_VERSION:=v1.7.5
15 PKG_RELEASE:=1
16
17 PKG_LICENSE:=BSD-2-Clause
18 PKG_MAINTAINER:=Darik Horn <dajhorn@vanadac.com>
19
20 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
21 PKG_SOURCE_PROTO:=git
22 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
23 PKG_SOURCE_URL:=https://github.com/lz4/lz4.git
24 PKG_SOURCE_VERSION:=$(PKG_VERSION)
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/liblz4
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=Extremely fast compression
32 URL:=http://www.lz4.org/
33 endef
34
35 define Package/liblz4/description
36 LZ4 is a compression codec that features a very fast encoder and an
37 even faster decoder. This package provides the liblz4 shared library.
38 endef
39
40 TARGET_CFLAGS += $(FPIC)
41
42 define Build/Compile
43 $(MAKE) -C "$(PKG_BUILD_DIR)/lib" $(MAKE_INSTALL_FLAGS) \
44 CC="$(TARGET_CC)" \
45 CFLAGS="$(TARGET_CFLAGS)" \
46 PREFIX="$(CONFIGURE_PREFIX)" \
47 install
48 endef
49
50 define Build/InstallDev
51 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
52 endef
53
54 define Package/liblz4/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblz4.so* $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,liblz4))