108 lines
3.2 KiB
Makefile
108 lines
3.2 KiB
Makefile
PORTNAME= ${GH_PROJECT:tl}
|
|
PORTVERSION= 1.14.0.3
|
|
CATEGORIES= games
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Realistic 3D train/railway simulator
|
|
WWW= https://openbve-project.net/
|
|
|
|
LICENSE= PD
|
|
|
|
BUILD_DEPENDS= msbuild:devel/msbuild
|
|
LIB_DEPENDS= libgdiplus.so:x11-toolkits/libgdiplus
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= leezer3
|
|
GH_PROJECT= OpenBVE
|
|
|
|
USES= gmake mono:nuget openal:soft sdl
|
|
USE_SDL= sdl2
|
|
MAKEFILE= makefile
|
|
ALL_TARGET= all-${WITH_DEBUG:?debug:release}
|
|
|
|
# Generated with `make makenuget'
|
|
NUGET_DEPENDS= Antlr4.Runtime=4.6.6 \
|
|
Bve5_Parsing.OpenBVE=1.2.2 \
|
|
CS-Script.lib=3.30.3 \
|
|
DotNetZip.OpenBVE=1.17.2 \
|
|
HidSharp=2.6.4 \
|
|
LibUsbDotNet=2.2.29 \
|
|
Microsoft.Bcl.AsyncInterfaces=8.0.0 \
|
|
Microsoft.Bcl.HashCode=6.0.0 \
|
|
Microsoft.NETFramework.ReferenceAssemblies.net461=1.0.3 \
|
|
Microsoft.NETFramework.ReferenceAssemblies.net48=1.0.3 \
|
|
Microsoft.NETFramework.ReferenceAssemblies=1.0.3 \
|
|
Mono.Cecil=0.11.3 \
|
|
NAudio.Vorbis=1.2.0 \
|
|
NAudio=1.10.0 \
|
|
NLayer.NAudioSupport=1.0.0 \
|
|
NLayer=1.12.0 \
|
|
NVorbis=0.10.1 \
|
|
Newtonsoft.Json=13.0.4 \
|
|
OpenTK-OpenBVE=1.0.4 \
|
|
OpenTK.GLControl-OpenBVE=1.0.1 \
|
|
ReactiveProperty.Core=9.7.0 \
|
|
ReactiveProperty=9.7.0 \
|
|
SharpCompress=0.50.4 \
|
|
System.Buffers=4.6.1 \
|
|
System.Collections.Immutable=10.0.10 \
|
|
System.ComponentModel.Annotations=5.0.0 \
|
|
System.Formats.Nrbf=10.0.10 \
|
|
System.Memory=4.6.3 \
|
|
System.Numerics.Vectors=4.6.1 \
|
|
System.Reactive=6.0.1 \
|
|
System.Reflection.Metadata=10.0.10 \
|
|
System.Resources.Extensions=4.6.0 \
|
|
System.Runtime.CompilerServices.Unsafe=6.1.2 \
|
|
System.Text.Encoding.CodePages=8.0.0 \
|
|
System.Threading.Tasks.Extensions=4.5.4 \
|
|
System.ValueTuple=4.6.2 \
|
|
Ude.NetStandard=1.2.0
|
|
|
|
DATADIR= ${PREFIX}/lib/${PORTNAME}
|
|
PORTDOCS= changelog.md credits.md routes-and-trains.txt
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(MONO_DEFAULT) && ${MONO_DEFAULT} > 6
|
|
BROKEN= fails to build with Mono version ${MONO_DEFAULT}: error MSB4184: The expression ""Program.cs".GetPathsOfAllDirectoriesAbove()" cannot be evaluated. Method 'System.String.GetPathsOfAllDirectoriesAbove' not found.
|
|
.endif
|
|
|
|
.if defined(WITH_DEBUG)
|
|
PLIST_SUB+= DEBUG="" RELEASE="@comment "
|
|
.else
|
|
PLIST_SUB+= RELEASE="" DEBUG="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/TargetFrameworkVersion/s,4[^<]*,4.6.1,' \
|
|
${WRKSRC}/source/Plugins/Route.Bve5/Route.Bve5.csproj \
|
|
|
|
_AUX_PROGS= CarXmlConvertor ObjectBender ObjectViewer RouteViewer \
|
|
TrainEditor TrainEditor2
|
|
|
|
do-install:
|
|
# According to Debian package, this is Windows-only, so can be removed
|
|
${RM} ${WRKSRC}/bin_[dr]*/AtsPluginProxy.*
|
|
${CP} -a ${WRKSRC}/bin_[dr]* ${STAGEDIR}${DATADIR}
|
|
.for prog wrpr in OpenBve ${PORTNAME} ${_AUX_PROGS:C,.*,& ${PORTNAME}-&,}
|
|
${PRINTF} '#!/bin/sh\n\nexec mono ${DATADIR}/${prog}.exe\
|
|
"$$@"\n' > ${STAGEDIR}${PREFIX}/bin/${wrpr:tl}
|
|
${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/${wrpr:tl}
|
|
.endfor
|
|
${INSTALL_MAN} ${WRKSRC}/debian/*.6 \
|
|
${STAGEDIR}${PREFIX}/share/man/man6
|
|
${INSTALL_DATA} ${WRKSRC}/debian/openbve.desktop \
|
|
${STAGEDIR}${PREFIX}/share/applications
|
|
${INSTALL_DATA} ${WRKSRC}/debian/openbve.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/debian/,} \
|
|
${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.post.mk>
|