summaryrefslogtreecommitdiffstats
path: root/games/avanor/Makefile
blob: 86ae56807fd9a7b0d83cf7fb54e71a954bb45fad (plain)
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
# Created by: Martin Tournoij <carpetsmoker@xs4all.nl>
# $FreeBSD$

PORTNAME=	avanor
PORTVERSION=	0.5.8
CATEGORIES=	games
MASTER_SITES=	SF
DISTNAME=	${PORTNAME}-${PORTVERSION}-src

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Rogue-like game with easy ADOM-like user interface

USE_BZIP2=	yes
USE_GMAKE=	yes
MAKE_ARGS+=	VERSION=${PORTVERSION} DATA_DIR=${DATADIR}/
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

NO_STAGE=	yes
post-patch:
	@${REINPLACE_CMD} -e "s|g++|${CXX}|; \
		s|CFLAGS =|CFLAGS+=|;" \
			${WRKSRC}/Makefile

	@${REINPLACE_CMD} -e "s|DATA_DIR|\"~/.avanor/\"|" \
		${WRKSRC}/helpers/hiscore.h

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/avanor ${PREFIX}/bin
	${MKDIR} ${DATADIR}/manual
	${INSTALL_DATA} ${WRKSRC}/manual/* ${DATADIR}/manual/

.include <bsd.port.mk>
OpenPOWER on IntegriCloud