blob: 78185c8b537ae1ee4a3db6b19edb358203b77b23 (
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
|
# Created by: alepulver
# $FreeBSD$
PORTNAME= quake4
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= games linux
MASTER_SITES= IDSOFTWARE/${PORTNAME}/demo GENTOO
PKGNAMEPREFIX= linux-
PKGNAMESUFFIX= -demo
DISTNAME= ${PORTNAME}-${PKGNAMEPREFIX}${PORTVERSION}${PKGNAMESUFFIX}.x86
EXTRACT_SUFX= .run
MAINTAINER= ports@FreeBSD.org
COMMENT= Quake 4 for Linux Demo
USE_LINUX= yes
USE_LINUX_APPS= sdl12
NO_WRKSUBDIR= yes
NO_CDROM= Redistribution is limited, see license
Q4DIR= lib/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
PLIST_SUB= Q4DIR="${Q4DIR}"
do-extract:
@${RM} -rf ${WRKDIR}
@${MKDIR} ${WRKDIR}
@cd ${WRKDIR} && ${TAIL} +376 ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \
${TAR} zxf -
do-build:
.for FILE in quake4 q4ded
@${SED} \
-e 's|@Q4DIR@|${PREFIX}/${Q4DIR}|' \
-e 's|@APP@|${FILE}.x86|' \
${FILESDIR}/run.sh.in > ${WRKSRC}/${PKGNAMEPREFIX}${FILE}.sh
.endfor
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${Q4DIR}/q4base
.for FILE in quake4 q4ded
${INSTALL_SCRIPT} ${WRKSRC}/${PKGNAMEPREFIX}${FILE}.sh \
${STAGEDIR}${PREFIX}/bin/${PKGNAMEPREFIX}${FILE}-demo
${INSTALL_PROGRAM} ${WRKSRC}/bin/FreeBSD/x86/${FILE}.x86 \
${STAGEDIR}${PREFIX}/${Q4DIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/q4base/* ${STAGEDIR}${PREFIX}/${Q4DIR}/q4base
.include <bsd.port.mk>
|