summaryrefslogtreecommitdiff
path: root/games/rtcw-paks/Makefile
blob: 734aa3341d2af0795a27170991d904656d48d12a (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
47
48
49
50
# New ports collection makefile for:    Return to Castle Wolfenstein paks
# Date created:				Sat Jul 15 14:27:16 SAST 2000
# Whom:					nik@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=	rtcw-paks
PORTVERSION=	1.0
CATEGORIES=	games linux
MASTER_SITES=	#
DISTFILES=	mp_pak0.pk3 mp_pak1.pk3 mp_pak2.pk3 \
		pak0.pk3 \
		sp_pak1.pk3 sp_pak2.pk3
DIST_SUBDIR=	rtcw-paks
IGNOREFILES=	${ALLFILES}

MAINTAINER=	nik@FreeBSD.org
COMMENT=	Return to Castle Wolfenstein for Linux .pk3 files

# Make this a BUILD_ rather than a RUN_DEPEND so that it can create the 
# directory hierarchy for us.
BUILD_DEPENDS=	${PREFIX}/usr/games/rtcw/wolf.x86:${PORTSDIR}/games/rtcw

ONLY_FOR_ARCHS=	i386
USE_LINUX_PREFIX=	yes
EXTRACT_ONLY=	# Don't extract anything
STRIP=

GAMEDIR=	${PREFIX}/usr/games/rtcw/

.include <bsd.port.pre.mk>

.for file in ${DISTFILES}
.if !exists(${DISTDIR}/rtcw-paks/${file})
IGNORE=You must manually copy all the .pk3 files from the main/ directory of an installed version of the game to the ${DISTDIR}/rtcw-paks directory and then run make again.
.endif
.endfor

# Do nothing for the build.  Don't set NO_BUILD because of the earlier 
# BUILD_DEPENDS
do-build:

do-install: 
	${MKDIR} -p ${GAMEDIR}/main
.for file in ${DISTFILES}
	${INSTALL_DATA} ${DISTDIR}/rtcw-paks/${file} ${GAMEDIR}/main
.endfor

.include <bsd.port.post.mk>