blob: 9383436874ba8f6c783654fa86f27d499bef314c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
PORTNAME= vamos
PORTVERSION= 0.8.2
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/ \
SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}_icons${EXTRACT_SUFX}:icons
MAINTAINER= ports@FreeBSD.org
COMMENT= Automotive simulation framework
WWW= https://vamos.sourceforge.net/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR}
LIB_DEPENDS= ${PY_BOOST} \
libpng.so:graphics/png
USES= compiler:c++11-lang gl libtool localbase openal:al,alut \
python sdl xorg
USE_XORG= sm ice x11 xi xext xmu
USE_GL= gl glu glut
USE_SDL= sdl
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-unit-tests=no
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
LLD_UNSAFE= for preemption of audio/openal-soft libs
INFO= vamos
PORTDOCS= *
OPTIONS_DEFINE= DOCS
ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 128x128
DESKTOP_ENTRIES="Vamos" "" ${PORTNAME} \
"${PORTNAME}" "Game;ArcadeGame;" ""
post-patch:
@${REINPLACE_CMD} -e '/test/s,ax_boost_python_lib",BOOST_PYTHON_LIB",' \
-e 's,^for python in python.*python;,for python in python${PYTHON_VER};,' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e '/std::/s,mem_fun,mem_fn,' \
${WRKSRC}/body/Gl_Car.cc \
${WRKSRC}/track/Strip_Track.cc
post-install:
.for s in ${ICON_SIZES}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
.endfor
${LN} -sf ../icons/hicolor/48x48/apps/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
cd ${WRKSRC} && ${COPYTREE_SHARE} "AUTHORS ChangeLog README TODO doc/matrixfaq.htm" \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|