summaryrefslogtreecommitdiff
path: root/games/quakeserver/Makefile
blob: 0d0605a786f51b6839faf3249fbef91467c31792 (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
51
52
53
54
55
# New ports collection makefile for:	quakeserver
# Version required:			1.01
# Date created:				October 26th 1996
# Whom:					jfitz@FreeBSD.ORG
#
# $Id: Makefile,v 1.8 1997/03/19 02:56:20 jfitz Exp $
#

PKGNAME=	quakeserver-1.01
CATEGORIES=	games
MASTER_SITES=	ftp://ftp.gamesdomain.com/pub/idsoftware/quake/ \
		ftp://ftp.cssweb.com/pub/games/idstuff/quake/ \
		ftp://ftp.feist.com/pub/pc/games/quake/
DISTFILES=	quake101.zip \
		quake-FreeBSD.tar.gz \
		intel_linux_quake101.tgz

MAINTAINER=	jfitz@freebsd.org

BUILD_DEPENDS=	unzip:${PORTSDIR}/archivers/unzip \
		lha:${PORTSDIR}/archivers/lha

RUN_DEPENDS=	expect:${PORTSDIR}/lang/expect \
		/compat/linux/lib/libc.so.5:${PORTSDIR}/emulators/linux_lib

# Uncomment the next line to include the QuakeC compiler port as well
#RUN_DEPENDS+=	qcc:${PORTSDIR}/games/qcc

NO_WRKSUBDIR=	YES
NO_BUILD=	YES
NO_CDROM=	"This software is shareware"

do-extract:
		@ ${MKDIR} -p work/quake
		@ ${MKDIR} -p work/server
		unzip -o ${DISTDIR}/quake101.zip -d ${WRKDIR}/quake QSW101.?
		@ cat ${WRKDIR}/quake/QSW101.[1-7] > ${WRKDIR}/quake/resource.exe
		cd ${WRKDIR}/quake; lha xf resource.exe id1/pak0.pak
		@ cd ${WRKDIR}/server; tar zxf ${DISTDIR}/quake-FreeBSD.tar.gz
		@ cd ${WRKDIR}/server/quake; tar zxf ${DISTDIR}/intel_linux_quake101.tgz

do-install:
		@ ${MKDIR} -p ${PREFIX}/quakeserver
		@ ${MKDIR} -p ${PREFIX}/quakeserver/id1
		for file in ${WRKDIR}/quake/id1/*; do \
			${INSTALL_DATA} $$file ${PREFIX}/quakeserver/id1; \
		done
		${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${WRKDIR}/server/quake/xquake ${PREFIX}/quakeserver
		${INSTALL_PROGRAM} ${WRKDIR}/server/quake/qstat ${PREFIX}/quakeserver; \
		${INSTALL_DATA} ${WRKDIR}/server/quake/README.FreeBSD ${PREFIX}/quakeserver
		for file in qsrv qsrv.expect qslog; do \
			${INSTALL_SCRIPT} ${WRKDIR}/server/quake/$$file ${PREFIX}/quakeserver; \
		done
		
.include <bsd.port.mk>