2 # Copyright (C) 2008-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
13 PKG_SOURCE_URL:=git://git.open-mesh.org/vis.git
14 PKG_REV:=e141311c6a4fc824efbad536c137ed279905d825
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)
25 PKG_EXTRA_CFLAGS=-DDEBUG_MALLOC -DMEMORY_USAGE -DPROFILE_DATA -DREVISION_VERSION=\"\ rv$(PKG_REV)\" -D_GNU_SOURCE
27 include $(INCLUDE_DIR)/package.mk
32 SUBMENU:=Routing and Redirection
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>
39 define Package/vis/description
40 visualization server for B.A.T.M.A.N. layer 3
44 EXTRA_CFLAGS='$(TARGET_CFLAGS) $(PKG_EXTRA_CFLAGS)' \
45 CCFLAGS="$(TARGET_CFLAGS)" \
46 OFLAGS="$(TARGET_CFLAGS)" \
47 REVISION="$(PKG_REV)" \
51 INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
56 define Build/Configure
60 $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_VIS_ARGS)
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
70 define Package/vis/conffiles
74 $(eval $(call BuildPackage,vis))