From aae3d2c9a031725a9562f4752f8a360745659da4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Sun, 25 Jan 2015 00:19:21 +0100 Subject: [PATCH] sumo: add new package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- utils/sumo/Makefile | 60 ++++++++++++++++++++++++++++++++++++++++ utils/sumo/files/sumo.sh | 6 ++++ 2 files changed, 66 insertions(+) create mode 100644 utils/sumo/Makefile create mode 100644 utils/sumo/files/sumo.sh diff --git a/utils/sumo/Makefile b/utils/sumo/Makefile new file mode 100644 index 000000000..7aa3c8b0e --- /dev/null +++ b/utils/sumo/Makefile @@ -0,0 +1,60 @@ +# +# Copyright (C) 2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=sumo +PKG_VERSION:=0.22.0 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-src-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@SF/sumo +PKG_MD5SUM:=d239a3f94fdb905fdaf1648f2b71fd42 +PKG_MAINTAINER:=Álvaro Fernández Rojas + +PKG_LICENSE:=GPL-3.0 +PKG_LICENSE_FILES:=COPYING + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +CONFIGURE_ARGS += \ + --with-xerces-includes=$(STAGING_DIR)/usr/include/xercesc \ + --disable-debug \ + --disable-dependency-tracking \ + --disable-silent-rules + +define Package/sumo + SECTION:=utils + CATEGORY:=Utilities + TITLE:=SUMO - Simulation of Urban MObility + URL:=http://sumo-sim.org/ + DEPENDS:=+libstdcpp +libxerces-c +endef + +define Package/sumo/description + SUMO is a free and open traffic simulation suite which is available since 2001. + SUMO allows modelling of intermodal traffic systems including road vehicles, + public transport and pedestrians. Included with SUMO is a wealth of supporting + tools which handle tasks such as route finding, visualization, network import + and emission calculation. SUMO can be enhanced with custom models and provides + various APIs to remotely control the simulation. +endef + +define Package/sumo/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{activitygen,dfrouter,duarouter,emissionsDrivingCycle,emissionsMap,jtrrouter,marouter,netconvert,netgenerate,od2trips,polyconvert,TraCITestClient} $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sumo $(1)/usr/bin/sumo-bin + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) files/sumo.sh $(1)/usr/sbin/sumo + $(INSTALL_DIR) $(1)/usr/share/sumo + $(CP) $(PKG_BUILD_DIR)/data $(1)/usr/share/sumo/ +endef + +$(eval $(call BuildPackage,sumo)) diff --git a/utils/sumo/files/sumo.sh b/utils/sumo/files/sumo.sh new file mode 100644 index 000000000..2ae8df8c2 --- /dev/null +++ b/utils/sumo/files/sumo.sh @@ -0,0 +1,6 @@ +#!/bin/sh +# Copyright (C) 2015 OpenWrt.org + +SUMO_HOME=/usr/share/sumo sumo-bin $@ + +exit 0