aboutsummaryrefslogtreecommitdiffstats
path: root/games/netrek-client-cow/Makefile
blob: c64d89a94b38e4b5a24106c064c57f1c72e1ae20 (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
# Created by: Kevin Zheng <kevinz5000@gmail.com>
# $FreeBSD$

PORTNAME=   netrek-client-cow
PORTVERSION=    3.3.1
PORTREVISION=   5
CATEGORIES= games
MASTER_SITES=   http://www.netrek.org/files/COW/ \
        http://quozl.us.netrek.org/netrek/

MAINTAINER= kevinz5000@gmail.com
COMMENT=    Multi-player battle simulation with a Star Trek theme

LIB_DEPENDS=    libImlib2.so:${PORTSDIR}/graphics/imlib2

LICENSE_FILE=   ${WRKSRC}/COPYING

GNU_CONFIGURE=  yes
USES=       gmake
USE_SDL=    sdl mixer

CONFIGURE_ARGS+=    NORSA='\#'

post-patch:
    ${REINPLACE_CMD} -e 's|ushort  damage|unsigned short damage|' \
        ${WRKSRC}/short.c
    ${REINPLACE_CMD} -e 's|inline void|void|' \
        ${WRKSRC}/local.[ch]
    ${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' \
        ${WRKSRC}/netrek-client-cow.desktop \
        ${WRKSRC}/sound.c \
        ${WRKSRC}/x11sprite.c
    ${REINPLACE_CMD} -e 's|8000, AUDIO_U8, 1|22050, AUDIO_U8, 2|' \
        ${WRKSRC}/sound.c
    ${REINPLACE_CMD} -e 's|games|bin|' \
        ${WRKSRC}/netrek-client-cow.desktop

.include <bsd.port.mk>