Tweak sysutils/ansible23 version 2.3.2.0
[dports.git] / games / stormbaancoureur / Makefile
1 # Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
2 # $FreeBSD$
3
4 PORTNAME=       stormbaancoureur
5 PORTVERSION=    2.1.6
6 PORTREVISION=   1
7 CATEGORIES=     games
8 MASTER_SITES=   http://www.stolk.org/stormbaancoureur/download/ \
9                 http://mirror.amdmi3.ru/distfiles/
10
11 MAINTAINER=     amdmi3@FreeBSD.org
12 COMMENT=        Simulated obstacle course for automobiles
13
14 BUILD_DEPENDS=  ${LOCALBASE}/lib/libplibsl.a:x11-toolkits/plib \
15                 ${LOCALBASE}/lib/libode.a:devel/ode
16
17 USE_GL=         glut
18
19 MAKE_ENV=       DATADIR="${DATADIR}"
20
21 BUILD_WRKSRC=   ${WRKSRC}/src-stormbaancoureur
22 INSTALL_WRKSRC= ${WRKSRC}/src-stormbaancoureur
23
24 PLIST_FILES=    bin/${PORTNAME}
25 PORTDOCS=       *
26 PORTDATA=       *
27
28 OPTIONS_DEFINE= ALSA DOCS
29 OPTIONS_DEFAULT=ALSA
30
31 ALSA_LIB_DEPENDS=       libasound.so:audio/alsa-lib
32 ALSA_RUN_DEPENDS=       ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins
33 ALSA_MAKE_ENV=          ALSA_LIBS="-lasound"
34 ALSA_EXTRA_PATCHES_OFF= ${FILESDIR}/extra-patch-src-common-soundenginealsa.cxx \
35                         ${FILESDIR}/extra-patch-src-common-soundenginealsa.h
36
37 post-patch:
38         @${REINPLACE_CMD} -e 's|__DATADIR|"${DATADIR}"|' \
39                 ${WRKSRC}/src-stormbaancoureur/main.cxx
40
41 post-install:
42         ${MKDIR} ${STAGEDIR}${DOCSDIR}
43         ${INSTALL_DATA} ${INSTALL_WRKSRC}/README ${STAGEDIR}${DOCSDIR}
44         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
45
46 .include <bsd.port.mk>