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.

56 lines
1.8 KiB

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