hiredis: update to version 1.2.0
[feed/packages.git] / libs / hiredis / Makefile
1 #
2 # Copyright (C) 2010-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 PKG_NAME:=hiredis
11 PKG_VERSION:=1.2.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://codeload.github.com/redis/hiredis/tar.gz/v$(PKG_VERSION)?
16 PKG_HASH:=82ad632d31ee05da13b537c124f819eb88e18851d9cb0c30ae0552084811588c
17
18 PKG_LICENSE:=BSD-3-Clause
19 PKG_LICENSE_FILES:=COPYING
20 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
21
22 PKG_BUILD_PARALLEL:=1
23 CMAKE_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/cmake.mk
27
28 define Package/libhiredis
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=Minimalistic C client for Redis
32 URL:=https://github.com/redis/hiredis
33 endef
34
35 define Package/libhiredis/description
36 Hiredis is a minimalistic C client library for the Redis database.
37 endef
38
39 define Package/libhiredis/install
40 $(INSTALL_DIR) $(1)/usr/lib/
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhiredis.so* $(1)/usr/lib/
42 endef
43
44 $(eval $(call BuildPackage,libhiredis))