aboutsummaryrefslogtreecommitdiffstats
path: root/games/sdlsand/Makefile
blob: 1b521e1fd92800dec183dd559339b9aae404e5d2 (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
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$

PORTNAME=   sdlsand
PORTVERSION=    20061017
PORTREVISION=   4
CATEGORIES= games
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Simulation of falling sand and other materials

USE_ZIP=    yes
USE_SDL=    sdl

WRKSRC=     ${WRKDIR}/SDL\ Sand/SDL\ Sand

PLIST_FILES=    bin/${PORTNAME}
PORTDOCS=   *

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e '/crtdbg/ d' ${WRKSRC}/CmdLine.cpp

do-build:
    cd ${WRKSRC} && ${CXX} -o ${PORTNAME} ${CXXFLAGS} \
        `${SDL_CONFIG} --cflags --libs` main.cpp CmdLine.cpp

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>