blob: c6fc343e1d409b1c84e10c75de5564937d83f9d2 (
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
61
62
63
64
65
66
67
68
69
70
71
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= vamos
PORTVERSION= 0.7.1
PORTREVISION= 7
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
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libboost_date_time.so:${PORTSDIR}/devel/boost-libs \
libpng.so:${PORTSDIR}/graphics/png
USES= libtool openal:al,alut pkgconfig
USE_XORG= sm ice x11 xi xext xmu
USE_GL= glut
USE_SDL= sdl
GNU_CONFIGURE= yes
CONFIGURE_ARGS= ac_cv_lib_freeglut_glutGetModifiers=no \
--disable-unit-tests
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -lpthread -L${LOCALBASE}/lib
INFO= vamos
PORTDOCS= *
OPTIONS_DEFINE= DOCS
INSTALLS_ICONS= yes
ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 128x128
DESKTOP_ENTRIES="Vamos" "" ${PORTNAME} \
"${PORTNAME}" "Game;ArcadeGame;" ""
post-extract:
@${CHMOD} ${BINMODE} ${WRKSRC}/config/install-sh
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
'/^AM_CXXFLAGS/s| -pedantic|| ; \
/^AM_CXXFLAGS/s| -O[[:alnum:]]|| ; \
/^AM_CXXFLAGS/s| -g|| ; \
/^AM_CXXFLAGS/s| -DBOOST_TEST_DYN_LINK|| ; \
/^AM_CXXFLAGS/s| -L/usr/lib/boost||'
post-install:
.for l in geometry media body track world
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libvamos-${l}.so.0
.endfor
.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 ${PREFIX}/share/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>
|