gdbm: moved to github
[packages.git] / libs / credis / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=credis
4 PKG_VERSION:=0.2.2
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=http://credis.googlecode.com/files/
9 PKG_MD5SUM:=bbc498beb22b8590005520405766cf6e
10
11 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
12
13 include $(INCLUDE_DIR)/package.mk
14
15 define 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
20 endef
21
22 define 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.
28 endef
29
30 define 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
37 endef
38
39 define 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/
44 endef
45
46 define Package/credis/install
47         $(INSTALL_DIR)  $(1)/usr/lib
48         $(CP) $(PKG_BUILD_DIR)/libcredis.so $(1)/usr/lib
49 endef
50
51 $(eval $(call BuildPackage,credis))