summaryrefslogtreecommitdiffstats
path: root/games/fargoal/Makefile
blob: d0353b346a388f0d755ed1d27052f5407948b62d (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# New ports collection makefile for:	fargoal
# Date Created:				13 December 2003
# Whom:				 	chris_pressey@yahoo.ca
#
# $FreeBSD$
#

PORTNAME=	fargoal
PORTVERSION=	20040629
PORTREVISION=	1
CATEGORIES=	games
MASTER_SITES=	SF/squidfighter/${PORTNAME}/20040630
DISTNAME=	${PORTNAME}${PORTVERSION}

MAINTAINER=	alepulver@FreeBSD.org
COMMENT=	Remake of classic roguelike game "Sword of Fargoal"

LIB_DEPENDS=	alleg.42:${PORTSDIR}/devel/allegro

WRKSRC=		${WRKDIR}/${PORTNAME}/src

USE_ZIP=	yes
USE_GMAKE=	yes

SUB_FILES=	${PORTNAME}-sh

do-install:
# Script
	@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-sh ${PREFIX}/bin/${PORTNAME}

# Program
	@${INSTALL_PROGRAM} ${WRKSRC}/../sword ${PREFIX}/libexec/${PORTNAME}

# Data
.for f in agreement.txt data gfx sfx
	@${MKDIR} ${DATADIR}
	@${CP} -R ${WRKSRC}/../${f} ${DATADIR}
.endfor

post-install:
# Fix permissions
	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
	@${FIND} ${DATADIR} -type f -print0 | \
		${XARGS} -0 ${CHMOD} ${SHAREMODE}
	@${FIND} ${DATADIR} -type d -print0 | \
		${XARGS} -0 ${CHMOD} ${BINMODE}

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