Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=vis
  9. PKG_SOURCE_PROTO:=git
  10. PKG_SOURCE_URL:=https://git.open-mesh.org/vis.git
  11. PKG_REV:=e141311c6a4fc824efbad536c137ed279905d825
  12. PKG_VERSION:=1440
  13. PKG_RELEASE:=0
  14. PKG_LICENSE:=GPL-2.0
  15. PKG_SOURCE_VERSION:=$(PKG_REV)
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
  18. PKG_MIRROR_HASH:=fd4b337a56993eec9a03ad8e7918bccc7691aa8b2e5ab6dd7863350f07503285
  19. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
  20. PKG_EXTRA_CFLAGS=-DDEBUG_MALLOC -DMEMORY_USAGE -DPROFILE_DATA -DREVISION_VERSION=\"\ rv$(PKG_REV)\" -D_GNU_SOURCE
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/vis
  23. SECTION:=net
  24. CATEGORY:=Network
  25. SUBMENU:=Routing and Redirection
  26. DEPENDS:=+libpthread
  27. TITLE:=visualization server for B.A.T.M.A.N. layer 3
  28. URL:=https://www.open-mesh.org/
  29. MAINTAINER:=Corinna "Elektra" Aichele <onelektra@gmx.net>
  30. endef
  31. define Package/vis/description
  32. visualization server for B.A.T.M.A.N. layer 3
  33. endef
  34. MAKE_VIS_ARGS += \
  35. EXTRA_CFLAGS='$(TARGET_CFLAGS) $(PKG_EXTRA_CFLAGS)' \
  36. CCFLAGS="$(TARGET_CFLAGS)" \
  37. OFLAGS="$(TARGET_CFLAGS)" \
  38. REVISION="$(PKG_REV)" \
  39. CC="$(TARGET_CC)" \
  40. NODEBUG=1 \
  41. UNAME="Linux" \
  42. INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
  43. STRIP="/bin/true" \
  44. vis install
  45. define Build/Configure
  46. endef
  47. define Build/Compile
  48. $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_VIS_ARGS)
  49. endef
  50. define Package/vis/install
  51. $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/vis $(1)/usr/sbin/
  53. $(INSTALL_BIN) ./files/etc/init.d/vis $(1)/etc/init.d
  54. $(INSTALL_DATA) ./files/etc/config/vis $(1)/etc/config
  55. endef
  56. define Package/vis/conffiles
  57. /etc/config/vis
  58. endef
  59. $(eval $(call BuildPackage,vis))