From 5b6dbc15f5effd4666f07d65b91dfd5e898e4a26 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Wed, 24 Jun 2015 16:03:45 +0200 Subject: [PATCH] hiredis: add new package Signed-off-by: Daniel Golle --- libs/hiredis/Makefile | 55 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 libs/hiredis/Makefile diff --git a/libs/hiredis/Makefile b/libs/hiredis/Makefile new file mode 100644 index 0000000000..31971b907a --- /dev/null +++ b/libs/hiredis/Makefile @@ -0,0 +1,55 @@ +# +# Copyright (C) 2010-2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=hiredis +PKG_VERSION:=0.13.1 +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/redis/hiredis.git +PKG_SOURCE_VERSION:=f58dd249d6ed47a7e835463c3b04722972281dbb +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz + +PKG_LICENSE:=BSD-3-Clause +PKG_LICENSE_FILES:=COPYING +PKG_MAINTAINER:=Daniel Golle + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/libhiredis + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Minimalistic C client for Redis + URL:=https://github.com/redis/hiredis +endef + +define Package/libhiredis/description + Hiredis is a minimalistic C client library for the Redis database. +endef + +MAKE_FLAGS += ARCH="" DEBUG="" PREFIX="/usr" + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/hiredis/adapters + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/hiredis/adapters/* $(1)/usr/include/hiredis/adapters + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/hiredis/*.h $(1)/usr/include/hiredis/ + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhiredis.{so*,a} $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/hiredis.pc $(1)/usr/lib/pkgconfig +endef + +define Package/libhiredis/install + $(INSTALL_DIR) $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhiredis.so* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libhiredis)) -- 2.30.2