aboutsummaryrefslogtreecommitdiffstats
path: root/games/wrogue/Makefile
blob: f7045388810154b504bf883a02350d9efce3b574 (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
# New ports collection makefile for:    warp-rogue
# Date created:     2007-02-26
# Whom:         Martin Tournoij <carpetsmoker@xs4all.nl>
#
# $FreeBSD$
#

PORTNAME=   wrogue
PORTVERSION=    0.7.5
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= todoom

MAINTAINER= carpetsmoker@xs4all.nl
COMMENT=    A gothic science fantasy roguelike game

USE_BZIP2=  yes
USE_SDL=    yes
USE_GMAKE=  yes
MAKEFILE=   unix.mak
ALL_TARGET= release
BUILD_WRKSRC=   ${WRKSRC}/src
INSTALL_WRKSRC= ${WRKDIR}

SUB_FILES=  unix.mak
SUB_LIST=   WRKSRC=${WRKSRC}

.include <bsd.port.pre.mk>

post-patch:
    @${REINPLACE_CMD} -e "s|-march=i586||; \
        s|gcc|${CC}|; \
        s|CFLAGS=|CFLAGS+=|" \
    ${WRKSRC}/src/unix.mak

    @${REINPLACE_CMD} -e "s|\./data/|${DATADIR}/|" \
        ${WRKSRC}/src/unix/be_unix.c

.include <bsd.port.post.mk>