ef17a516eda046bac3d4eacd06aec196b5c9a6f5
[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 PKG_RELEASE:=9
12
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_DATE:=2013-04-07
15 PKG_SOURCE_VERSION:=7710cce42e8d63ea114056a4a140835d4a452933
16 PKG_SOURCE_URL:=https://git.open-mesh.org/vis.git
17 PKG_MIRROR_HASH:=2544df816f9294e192cd6bb3592695416796fc6b254d182f1f124e686833f50d
18
19 PKG_MAINTAINER:=Corinna "Elektra" Aichele <onelektra@gmx.net>
20 PKG_LICENSE:=GPL-2.0-only
21
22 PKG_BUILD_PARALLEL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/vis
27 SECTION:=net
28 CATEGORY:=Network
29 SUBMENU:=Routing and Redirection
30 DEPENDS:=+libpthread
31 TITLE:=visualization server for B.A.T.M.A.N. layer 3
32 URL:=https://www.open-mesh.org/
33 endef
34
35 define Package/vis/description
36 visualization server for B.A.T.M.A.N. layer 3
37 endef
38
39 MAKE_FLAGS += \
40 EXTRA_CFLAGS='-DDEBUG_MALLOC -DMEMORY_USAGE -DPROFILE_DATA -DREVISION_VERSION=\"\ rv$(PKG_REV)\" -D_GNU_SOURCE' \
41 REVISION="$(PKG_REV)" \
42 CC="$(TARGET_CC)" \
43 vis
44
45 define Package/vis/install
46 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/vis $(1)/usr/sbin/
48 $(INSTALL_BIN) ./files/etc/init.d/vis $(1)/etc/init.d
49 $(INSTALL_DATA) ./files/etc/config/vis $(1)/etc/config
50 endef
51
52 define Package/vis/conffiles
53 /etc/config/vis
54 endef
55
56 $(eval $(call BuildPackage,vis))