Makefile (1929B)
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:=0.27.1 12 PKG_RELEASE:=1 13 14 PKG_SOURCE:=$(PKG_NAME)-src-$(PKG_VERSION).tar.gz 15 PKG_SOURCE_URL:=@SF/sumo 16 PKG_MD5SUM:=0bb98ab7339aea15b14b633e1b74691f 17 PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com> 18 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 CONFIGURE_ARGS += \ 29 --with-xerces=$(STAGING_DIR)/usr \ 30 --disable-debug \ 31 --disable-dependency-tracking \ 32 --disable-silent-rules 33 34 TARGET_CXXFLAGS+=-fpermissive 35 36 define Package/sumo 37 SECTION:=utils 38 CATEGORY:=Utilities 39 TITLE:=SUMO - Simulation of Urban MObility 40 URL:=http://sumo-sim.org/ 41 DEPENDS:=+libstdcpp +libxerces-c 42 endef 43 44 define Package/sumo/description 45 SUMO is a free and open traffic simulation suite which is available since 2001. 46 SUMO allows modelling of intermodal traffic systems including road vehicles, 47 public transport and pedestrians. Included with SUMO is a wealth of supporting 48 tools which handle tasks such as route finding, visualization, network import 49 and emission calculation. SUMO can be enhanced with custom models and provides 50 various APIs to remotely control the simulation. 51 endef 52 53 define Package/sumo/install 54 $(INSTALL_DIR) $(1)/usr/bin 55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{activitygen,dfrouter,duarouter,emissionsDrivingCycle,emissionsMap,jtrrouter,marouter,netconvert,netgenerate,od2trips,polyconvert,TraCITestClient} $(1)/usr/bin 56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sumo $(1)/usr/bin/sumo-bin 57 $(INSTALL_DIR) $(1)/usr/sbin 58 $(INSTALL_BIN) files/sumo.sh $(1)/usr/sbin/sumo 59 $(INSTALL_DIR) $(1)/usr/share/sumo 60 $(CP) $(PKG_BUILD_DIR)/data $(1)/usr/share/sumo/ 61 endef 62 63 $(eval $(call BuildPackage,sumo))