Ticket #7535: credis.patch

File credis.patch, 2.2 KB (added by Antoine van Gelder <antoine@…>, 6 years ago)
  • libs/credis/patches/200-Makefile.patch

     
     1--- a/Makefile  2010-05-19 22:50:09.000000000 +0200 
     2+++ b/Makefile  2010-06-22 09:59:16.000000000 +0200 
     3@@ -1,9 +1,9 @@ 
     4-CFLAGS = -g -O2 -Wall 
     5-LDFLAGS = 
     6+CFLAGS += -g -O2 -Wall 
     7+LDFLAGS += 
     8 #CPPFLAGS = -DPRINTDEBUG 
     9  
     10 # build shared lib under OS X or Linux 
     11-OS = $(shell uname -s) 
     12+OS = Linux 
     13 ifeq ($(OS),Darwin) 
     14        SHAREDLIB_LINK_OPTIONS=-dynamiclib -Wl,-install_name -Wl, 
     15 else 
  • libs/credis/Makefile

     
     1include $(TOPDIR)/rules.mk 
     2 
     3PKG_NAME:=credis 
     4PKG_VERSION:=0.2.2 
     5PKG_RELEASE:=1 
     6 
     7PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     8PKG_SOURCE_URL:=http://credis.googlecode.com/files/ 
     9PKG_MD5SUM:=bbc498beb22b8590005520405766cf6e 
     10 
     11PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) 
     12 
     13include $(INCLUDE_DIR)/package.mk 
     14 
     15define Package/credis 
     16  SECTION:=libs 
     17  CATEGORY:=Libraries 
     18        TITLE:=C library for communicating with Redis servers. 
     19  URL:=http://code.google.com/p/credis 
     20endef 
     21 
     22define Package/credis/description 
     23 Credis is a client library in plain C for communicating with Redis 
     24 servers. Redis is a high performance key-value database, refer to  
     25 Redis project page for more information. Credis aims to be fast  
     26 and minimalistic with respect to memory usage. It supports 
     27 connections to multiple Redis servers.  
     28endef 
     29 
     30define Build/Compile 
     31        $(MAKE) -C $(PKG_BUILD_DIR) \ 
     32                CC='$(TARGET_CC)' \ 
     33                CFLAGS='$(TARGET_CFLAGS)' \ 
     34                LDFLAGS='$(TARGET_LDFLAGS)' \ 
     35                AR='$(TARGET_CROSS)ar' \ 
     36                all 
     37endef 
     38 
     39define Build/InstallDev 
     40        $(INSTALL_DIR) $(1)/usr/include 
     41        $(CP) $(PKG_BUILD_DIR)/credis.h $(1)/usr/include/credis.h 
     42        $(INSTALL_DIR) $(1)/usr/lib 
     43        $(CP) $(PKG_BUILD_DIR)/libcredis.{a,so*} $(1)/usr/lib/ 
     44endef 
     45 
     46define Package/credis/install 
     47        $(INSTALL_DIR)  $(1)/usr/lib 
     48        $(CP) $(PKG_BUILD_DIR)/libcredis.so $(1)/usr/lib 
     49endef 
     50 
     51$(eval $(call BuildPackage,credis))