|
Line 0
Link Here
|
|
|
1 |
# $FreeBSD$ |
| 2 |
|
| 3 |
PORTNAME= sumo |
| 4 |
DISTVERSION= 0.31.0 |
| 5 |
CATEGORIES= cad |
| 6 |
MASTER_SITES= http://www.dlr.de/ts/en/Portaldata/16/Resources/projekte/sumo/ |
| 7 |
DISTNAME= ${PORTNAME}-src-${DISTVERSIONFULL} |
| 8 |
#DISTFILES= ${PORTNAME}-src-${DISTVERSIONFULL}${EXTRACT_SUFX} |
| 9 |
|
| 10 |
MAINTAINER= enriquefynn@gmail.com |
| 11 |
COMMENT= Traffic simulation suite for road vehicles, public transportation, etc |
| 12 |
|
| 13 |
LICENSE= GPLv3 |
| 14 |
LICENSE_FILE= ${WRKSRC}/COPYING |
| 15 |
|
| 16 |
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ |
| 17 |
libFOX-1.6.so:x11-toolkits/fox16 \ |
| 18 |
libfreetype.so:print/freetype2 \ |
| 19 |
libgdal.so:graphics/gdal \ |
| 20 |
libpng16.so:graphics/png \ |
| 21 |
libproj.so:graphics/proj \ |
| 22 |
libtiff.so:graphics/tiff \ |
| 23 |
libxerces-c.so:textproc/xerces-c3 |
| 24 |
|
| 25 |
USES= jpeg zip |
| 26 |
GNU_CONFIGURE= yes |
| 27 |
CONFIGURE_ARGS= --with-proj-gdal=${LOCALBASE} \ |
| 28 |
--with-xerces-libraries=${LOCALBASE}/lib |
| 29 |
USE_GL= gl glu |
| 30 |
USE_XORG= x11 xcursor xext xfixes xft xi xrandr xrender |
| 31 |
|
| 32 |
OPTIONS_DEFINE= DEBUG DOCS # the GUI option is possible (--without-fox-config), but it is broken, and it doesn't seem important to have. https://github.com/DLR-TS/sumo/issues/3655 |
| 33 |
|
| 34 |
DEBUG_CONFIGURE_ENABLE= debug |
| 35 |
DOCS_DISTFILES= ${PORTNAME}-doc-${DISTVERSION}${EXTRACT_SUFX} |
| 36 |
DOCS_USES= shebangfix |
| 37 |
DOCS_VARS= SHEBANG_FILES=docs/tutorial/*/*.py |
| 38 |
|
| 39 |
PORTDOCS= * |
| 40 |
|
| 41 |
do-install-DOCS-on: |
| 42 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
| 43 |
@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} |
| 44 |
@${FIND} ${STAGEDIR}${DOCSDIR} -d -empty -delete |
| 45 |
#@${REINPLACE_CMD} -i '' -e 's|#!/usr/bin/env python|#!${PYTHON_CMD}|' ${STAGEDIR}${DOCSDIR}/tutorial/*/*.py |
| 46 |
|
| 47 |
.include <bsd.port.pre.mk> |
| 48 |
|
| 49 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000 |
| 50 |
BUILD_DEPENDS+= clang40:devel/llvm40 |
| 51 |
CC= clang40 |
| 52 |
CXX= clang++40 # fails to build with the default compiler on 10 |
| 53 |
.endif |
| 54 |
|
| 55 |
.include <bsd.port.post.mk> |