2015-01-25 00:19:21 +01:00
|
|
|
#
|
2016-05-08 21:02:44 +02:00
|
|
|
# Copyright (C) 2015-2016 OpenWrt.org
|
2015-01-25 00:19:21 +01:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=sumo
|
2022-02-05 23:58:17 +01:00
|
|
|
PKG_VERSION:=1.12.0
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 18:32:27 +02:00
|
|
|
PKG_RELEASE:=1
|
2015-01-25 00:19:21 +01:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-src-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/sumo
|
2022-02-05 23:58:17 +01:00
|
|
|
PKG_HASH:=163dd6f7ed718e2a30630be3d2ac2ddfc4abce24750ed7f4efce879a3ae9447e
|
2015-01-25 00:19:21 +01:00
|
|
|
|
2019-04-22 04:29:15 +02:00
|
|
|
PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
|
2019-10-04 03:27:01 +02:00
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
2015-01-25 00:19:21 +01:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-11 01:27:06 +02:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2015-01-25 00:19:21 +01:00
|
|
|
|
|
|
|
define Package/sumo
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=SUMO - Simulation of Urban MObility
|
2019-04-22 04:29:15 +02:00
|
|
|
URL:=https://sumo.dlr.de/
|
2019-10-04 03:27:01 +02:00
|
|
|
DEPENDS:=+libxerces-c +zlib
|
2015-01-25 00:19:21 +01:00
|
|
|
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
|
|
|
|
|
2020-12-21 05:30:35 +01:00
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DCCACHE_SUPPORT=OFF
|
|
|
|
|
2015-01-25 00:19:21 +01:00
|
|
|
define Package/sumo/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2019-10-04 03:27:01 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{activitygen,dfrouter,duarouter,emissionsDrivingCycle,emissionsMap,jtrrouter,marouter,netconvert,netgenerate,od2trips,polyconvert} $(1)/usr/bin
|
2015-01-25 00:19:21 +01:00
|
|
|
$(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))
|