Merge pull request #360 from dangowrt/bmx7_use_procd
[feed/routing.git] / vis / Makefile
1 #
2 # Copyright (C) 2008-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=vis
11
12 PKG_SOURCE_PROTO:=git
13 PKG_SOURCE_URL:=git://git.open-mesh.org/vis.git
14 PKG_REV:=e141311c6a4fc824efbad536c137ed279905d825
15 PKG_VERSION:=1440
16 PKG_RELEASE:=0
17 PKG_LICENSE:=GPL-2.0
18
19 PKG_SOURCE_VERSION:=$(PKG_REV)
20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
22 PKG_MIRROR_HASH:=fd4b337a56993eec9a03ad8e7918bccc7691aa8b2e5ab6dd7863350f07503285
23 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
24
25 PKG_EXTRA_CFLAGS=-DDEBUG_MALLOC -DMEMORY_USAGE -DPROFILE_DATA -DREVISION_VERSION=\"\ rv$(PKG_REV)\" -D_GNU_SOURCE
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/vis
30 SECTION:=net
31 CATEGORY:=Network
32 SUBMENU:=Routing and Redirection
33 DEPENDS:=+libpthread
34 TITLE:=visualization server for B.A.T.M.A.N. layer 3
35 URL:=https://www.open-mesh.org/
36 MAINTAINER:=Corinna "Elektra" Aichele <onelektra@gmx.net>
37 endef
38
39 define Package/vis/description
40 visualization server for B.A.T.M.A.N. layer 3
41 endef
42
43 MAKE_VIS_ARGS += \
44 EXTRA_CFLAGS='$(TARGET_CFLAGS) $(PKG_EXTRA_CFLAGS)' \
45 CCFLAGS="$(TARGET_CFLAGS)" \
46 OFLAGS="$(TARGET_CFLAGS)" \
47 REVISION="$(PKG_REV)" \
48 CC="$(TARGET_CC)" \
49 NODEBUG=1 \
50 UNAME="Linux" \
51 INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
52 STRIP="/bin/true" \
53 vis install
54
55
56 define Build/Configure
57 endef
58
59 define Build/Compile
60 $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_VIS_ARGS)
61 endef
62
63 define Package/vis/install
64 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d
65 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/vis $(1)/usr/sbin/
66 $(INSTALL_BIN) ./files/etc/init.d/vis $(1)/etc/init.d
67 $(INSTALL_DATA) ./files/etc/config/vis $(1)/etc/config
68 endef
69
70 define Package/vis/conffiles
71 /etc/config/vis
72 endef
73
74 $(eval $(call BuildPackage,vis))