2002-03-02 22:44:05 +00:00
# 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
2003-03-07 06:14:21 +00:00
COMMENT = Return to Castle Wolfenstein for Linux .pk3 files
2002-03-02 22:44:05 +00:00
# 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/
. i n c l u d e < b s d . p o r t . p r e . m k >
. f o r f i l e i n $ { D I S T F I L E S }
. i f ! e x i s t s ( $ { D I S T D I R } / r t c w - p a k s / $ { f i l e } )
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.
. e n d i f
. e n d f o r
# Do nothing for the build. Don't set NO_BUILD because of the earlier
# BUILD_DEPENDS
do-build :
do-install :
${ MKDIR } -p ${ GAMEDIR } /main
. f o r f i l e i n $ { D I S T F I L E S }
${ INSTALL_DATA } ${ DISTDIR } /rtcw-paks/${ file } ${ GAMEDIR } /main
. e n d f o r
. i n c l u d e < b s d . p o r t . p o s t . m k >