rtklib: move to github
[openwrt.org/packages.git] / net / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#
# Copyright (C) 2009-2012 OpenWrt.org
# Copyright (C) 2009-2012 Thomas Heil <heil@terminal-consulting.de>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=memcached
PKG_VERSION:=1.4.12
PKG_RELEASE:=1
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://memcached.googlecode.com/files
PKG_MD5SUM:=4194de21b58a92de684ce69b8e501c44
 
PKG_INSTALL:=1
 
include $(INCLUDE_DIR)/package.mk
 
define Package/memcached
  SECTION:=net
  CATEGORY:=Network
  DEPENDS:=+libevent +libpthread
  TITLE:=The high-performance, distributed memory object caching system
  MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
  URL:=http://memcached.org/
endef
 
define Package/memcached/description
  Free and open source, high-performance, distributed memory object caching system
endef
 
define Package/memcached/conffiles
/etc/config/memcached
endef
 
ifeq ($(CONFIG_BIG_ENDIAN),y)
CONFIGURE_VARS += ac_cv_c_endian=big
else
CONFIGURE_VARS += ac_cv_c_endian=little
endif
 
CONFIGURE_ARGS += \
        --with-libevent=$(STAGING_DIR)/usr/include/libevent \
        --disable-docs \
        --disable-dtrace \
        --disable-coverage \
        --disable-sasl
 
TARGET_CFLAGS += \
        -std=gnu99
 
TARGET_LDFLAGS = \
        -L$(STAGING_DIR)/usr/lib/libevent -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
 
define Package/memcached/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/memcached $(1)/usr/bin/
        $(INSTALL_DIR) $(1)/etc/config
        $(INSTALL_CONF) ./files/memcached.config $(1)/etc/config/memcached
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/memcached.init $(1)/etc/init.d/memcached
endef
 
$(eval $(call BuildPackage,memcached))
 
comments