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.

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