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

PORTNAME=   wop
PORTVERSION=    0.4.3
PORTREVISION=   12
CATEGORIES= games
MASTER_SITES=   http://wormsofprey.org/download/ \
        http://mirror.amdmi3.ru/distfiles/
DISTFILES=  ${PORTNAME}-${PORTVERSION}-src${EXTRACT_SUFX} \
        ${PORTNAME}data-${DATAVERSION}${EXTRACT_SUFX}

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Free real-time Worms game

BUILD_DEPENDS=  makedepend:${PORTSDIR}/devel/makedepend

USES=       tar:bzip2 gmake
USE_SDL=    sdl net mixer ttf image

DATAVERSION=    2005-12-21
DESKTOP_ENTRIES="Worms of Prey" \
        "Real-time Worms game" \
        "${DATADIR}/images/gui/wop32.png" \
        "wop" \
        "Game;ActionGame;" \
        false

PORTDOCS=   *
PORTDATA=   *

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's|__va_copy|va_copy|g' ${WRKSRC}/src/string.cpp
    @${REINPLACE_CMD} -e 's|; make|; ${MAKE_CMD}|g' ${WRKSRC}/Makefile ${WRKSRC}/src/Makefile
    @${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/sdlwidgets/Makefile ${WRKSRC}/src/Makefile
    @${REINPLACE_CMD} -e 's|= g++|?= g++|g' ${WRKSRC}/sdlwidgets/Makefile ${WRKSRC}/src/Makefile
    @${REINPLACE_CMD} -e 's|/etc/woprc|${PREFIX}/etc/woprc|' ${WRKSRC}/src/wopsettings.cpp
    @${REINPLACE_CMD} -e 's|\./data|${DATADIR}|' ${WRKSRC}/woprc
    @${REINPLACE_CMD} -e '/stdint.h/ d' ${WRKSRC}/src/attachableobject.cpp

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/wop ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/woprc ${STAGEDIR}${PREFIX}/etc/woprc.sample
    ${MKDIR} ${STAGEDIR}${DATADIR}
    cd ${WRKDIR}/${PORTNAME}data-${DATAVERSION} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in AUTHORS COPYING ChangeLog README README-COMMAND-LINE-OPTIONS.txt
    ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor

.include <bsd.port.mk>