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