source: packages/net/restund/Makefile @ 26979

Last change on this file since 26979 was 26979, checked in by jow, 6 years ago

[packages] restund, baresip, libre: update to v0.2.0

File size: 1.3 KB
RevLine 
[24640]1#
2# Makefile
3#
4# Copyright (C) 2010 Alfred E. Heggestad
5#
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=restund
[26979]10PKG_VERSION:=0.2.0
[24640]11PKG_RELEASE:=1
12
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14PKG_SOURCE_URL:=http://www.creytiv.com/pub/
[26979]15PKG_MD5SUM:=b8fa2ab40d7952fd78c5d72ab1742232
[24640]16
17include $(INCLUDE_DIR)/package.mk
18
19define Package/restund
20  SECTION:=net
21  CATEGORY:=Network
22  DEPENDS:=+libre
23  TITLE:=libre stun server
24  URL:=http://www.creytiv.com/
25endef
26
27#PKG_MAKE_OPTS += USE_MYSQL=
28
29define Build/Compile
[24654]30        $(MAKE) -C $(PKG_BUILD_DIR) \
[26979]31                LIBRE_MK=$(STAGING_DIR)/usr/share/re/re.mk \
32                LIBRE_INC=$(STAGING_DIR)/usr/include/re \
[24654]33                CC="$(TARGET_CC)" \
[26979]34                CFLAGS="$(TARGET_CFLAGS)" \
[24654]35                DESTDIR="$(PKG_INSTALL_DIR)" \
36                $(PKG_MAKE_OPTS) \
37                SYSROOT="$(TOOLCHAIN_DIR)" \
38                SYSROOT_ALT="$(STAGING_DIR)/usr" \
39                RELEASE=1 \
40                all install
[24640]41endef
42
43define Package/restund/install
[24654]44        $(INSTALL_DIR) $(1)/usr/sbin
45        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/restund $(1)/usr/sbin/
46        $(INSTALL_DIR) $(1)/usr/lib/$(PKG_NAME)/modules
47        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME)/modules/*.so $(1)/usr/lib/$(PKG_NAME)/modules/.
48        $(INSTALL_DIR) $(1)/etc
49        $(INSTALL_CONF) $(PKG_BUILD_DIR)/etc/restund.conf $(1)/etc/
50        $(INSTALL_DIR) $(1)/etc/init.d
51        $(INSTALL_BIN) ./files/restund.init $(1)/etc/init.d/restund
[24640]52endef
53
54$(eval $(call BuildPackage,restund))
Note: See TracBrowser for help on using the repository browser.