aboutsummaryrefslogtreecommitdiffstats
path: root/games/tome/Makefile
blob: 7cb31d2fb6714bfb3ad0a75847b825073ac30766 (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
# New ports collection makefile for:    tome
# Date created:     04 Nov 2002
# Whom:         kris@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   tome
PORTVERSION=    2.3.5
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   http://t-o-m-e.net/dl/src/
DISTNAME=   tome-235-src

MAINTAINER= ports@FreeBSD.org
COMMENT=    Roguelike dungeon exploration game based on JRR Tolkien's works

SUB_FILES=  pkg-deinstall

ALL_TARGET= # empty
MAKEFILE=   makefile.bsd
USE_GMAKE=  yes
USE_BZIP2=  yes
WRKSRC=     ${WRKDIR}/${DISTNAME}/src

OPTIONS=        X11 "Turn on support for X" on
DESKTOP_ENTRIES=    "ToME" "Roguelike game based on JRR Tolkien's work" \
            "${DATADIR}/xtra/graf/tome-128.png" \
            "tome -v -g" "Application;Game;RolePlaying;" \
            false

.include <bsd.port.pre.mk>

.ifndef (WITHOUT_X11)
USE_XORG=   x11
.endif

post-patch:
.ifdef (WITHOUT_X11)
    ${REINPLACE_CMD} -e 's/-DUSE_X11//g' ${WRKSRC}/${MAKEFILE}
    ${REINPLACE_CMD} -e 's/-lX11//g' ${WRKSRC}/${MAKEFILE}
    ${REINPLACE_CMD} -e 's@-L$$(LOCALBASE)/lib@@g' ${WRKSRC}/${MAKEFILE}
    ${REINPLACE_CMD} -e 's@-I$$(LOCALBASE)/include@@g' ${WRKSRC}/${MAKEFILE}
.endif

.include <bsd.port.post.mk>