You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2015 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:=sumo
  9. PKG_VERSION:=0.22.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-src-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/sumo
  13. PKG_MD5SUM:=d239a3f94fdb905fdaf1648f2b71fd42
  14. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  15. PKG_LICENSE:=GPL-3.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. CONFIGURE_ARGS += \
  21. --with-xerces-includes=$(STAGING_DIR)/usr/include/xercesc \
  22. --disable-debug \
  23. --disable-dependency-tracking \
  24. --disable-silent-rules
  25. define Package/sumo
  26. SECTION:=utils
  27. CATEGORY:=Utilities
  28. TITLE:=SUMO - Simulation of Urban MObility
  29. URL:=http://sumo-sim.org/
  30. DEPENDS:=+libstdcpp +libxerces-c
  31. endef
  32. define Package/sumo/description
  33. SUMO is a free and open traffic simulation suite which is available since 2001.
  34. SUMO allows modelling of intermodal traffic systems including road vehicles,
  35. public transport and pedestrians. Included with SUMO is a wealth of supporting
  36. tools which handle tasks such as route finding, visualization, network import
  37. and emission calculation. SUMO can be enhanced with custom models and provides
  38. various APIs to remotely control the simulation.
  39. endef
  40. define Package/sumo/install
  41. $(INSTALL_DIR) $(1)/usr/bin
  42. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{activitygen,dfrouter,duarouter,emissionsDrivingCycle,emissionsMap,jtrrouter,marouter,netconvert,netgenerate,od2trips,polyconvert,TraCITestClient} $(1)/usr/bin
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sumo $(1)/usr/bin/sumo-bin
  44. $(INSTALL_DIR) $(1)/usr/sbin
  45. $(INSTALL_BIN) files/sumo.sh $(1)/usr/sbin/sumo
  46. $(INSTALL_DIR) $(1)/usr/share/sumo
  47. $(CP) $(PKG_BUILD_DIR)/data $(1)/usr/share/sumo/
  48. endef
  49. $(eval $(call BuildPackage,sumo))