1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 12:53:54 +02:00
openwrt-packages/utils/sumo/Makefile
Rosen Penev a9abe60ef4 sumo: Update to 1.3.1
Converted to CMake for simplicity.

Added upstream patch to use sleep_for instead of deprecated usleep.

Added patch to fix compilation with musl.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-10-07 22:44:35 -07:00

56 lines
1.8 KiB
Makefile

#
# Copyright (C) 2015-2016 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:=1.3.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-src-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/sumo
PKG_HASH:=dd089814499cc8d21ea90ab506adbb01e7fda9d9685d9d90a1a41cc3fe680505
PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
PKG_LICENSE:=GPL-3.0-or-later
PKG_LICENSE_FILES:=COPYING
CMAKE_INSTALL:=1
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/sumo
SECTION:=utils
CATEGORY:=Utilities
TITLE:=SUMO - Simulation of Urban MObility
URL:=https://sumo.dlr.de/
DEPENDS:=+libxerces-c +zlib
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} $(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))