2013-09-20 19:36:33 +02:00
|
|
|
# Created by: alepulver
|
2006-05-08 21:42:57 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= doom3
|
2007-07-25 16:39:59 +02:00
|
|
|
PORTVERSION= 1.3.1.1304
|
2007-07-26 18:33:50 +02:00
|
|
|
PORTEPOCH= 1
|
2006-05-08 21:42:57 +02:00
|
|
|
CATEGORIES= games linux
|
2015-05-14 12:15:04 +02:00
|
|
|
MASTER_SITES= IDSOFTWARE/doom3/linux
|
2006-05-08 21:42:57 +02:00
|
|
|
PKGNAMEPREFIX= linux-
|
|
|
|
DISTNAME= ${PORTNAME}-linux-${PORTVERSION}.x86
|
|
|
|
EXTRACT_SUFX= .run
|
|
|
|
|
2011-02-27 05:54:41 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-05-08 21:42:57 +02:00
|
|
|
COMMENT= Doom III for Linux
|
|
|
|
|
2016-09-05 21:23:42 +02:00
|
|
|
USES= linux
|
|
|
|
USE_LINUX= xorglibs
|
2013-12-12 05:38:11 +01:00
|
|
|
NO_CDROM= Redistribution is limited, see license; Requested by id Software
|
2006-05-08 21:42:57 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2012-06-12 18:35:45 +02:00
|
|
|
OPTIONS_DEFINE= NO_CDKEY
|
|
|
|
NO_CDKEY_DESC= Use older version which doesn't require cd key
|
2006-05-08 21:42:57 +02:00
|
|
|
|
|
|
|
DATADIR= ${PREFIX}/lib/${PKGNAMEPREFIX}${PORTNAME}
|
2014-12-29 02:16:41 +01:00
|
|
|
SUB_FILES= doom3 doom3-ded pkg-message pkg-deinstall
|
2006-05-08 21:42:57 +02:00
|
|
|
|
2012-06-12 18:35:45 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2006-05-08 21:42:57 +02:00
|
|
|
|
2012-06-12 18:35:45 +02:00
|
|
|
.if ${PORT_OPTIONS:MNO_CDKEY}
|
2015-05-14 12:15:04 +02:00
|
|
|
MASTER_SITES= IDSOFTWARE/doom3/linux/old
|
2006-05-08 21:42:57 +02:00
|
|
|
PORTVERSION= 1.1.1286
|
2007-07-26 18:33:50 +02:00
|
|
|
PORTEPOCH= 0
|
2006-05-08 21:42:57 +02:00
|
|
|
PLIST_SUB+= NEW="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NEW=""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-extract:
|
2015-11-05 13:36:25 +01:00
|
|
|
@${MKDIR} ${WRKSRC}
|
|
|
|
@cd ${WRKSRC} && ${TAIL} +374 ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \
|
2006-05-08 21:42:57 +02:00
|
|
|
${TAR} zxf -
|
|
|
|
|
2012-06-12 18:35:45 +02:00
|
|
|
.if empty(PORT_OPTIONS:MNO_CDKEY)
|
2007-07-25 16:39:59 +02:00
|
|
|
post-extract:
|
|
|
|
@${RM} ${WRKSRC}/pb/PB_EULA.txt
|
|
|
|
.endif
|
|
|
|
|
2006-05-08 21:42:57 +02:00
|
|
|
do-install:
|
2013-11-16 04:17:37 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/base
|
2006-05-08 21:42:57 +02:00
|
|
|
cd ${WRKSRC}/base && \
|
2013-11-16 04:17:37 +01:00
|
|
|
${INSTALL_DATA} game01.pk4 pak*.pk4 ${STAGEDIR}${DATADIR}/base
|
2006-05-08 21:42:57 +02:00
|
|
|
cd ${WRKSRC}/bin/Linux/x86 && \
|
2013-11-16 04:17:37 +01:00
|
|
|
${INSTALL_PROGRAM} doom.x86 doomded.x86 ${STAGEDIR}${DATADIR}
|
2012-06-12 18:35:45 +02:00
|
|
|
.if empty(PORT_OPTIONS:MNO_CDKEY)
|
2013-11-16 04:17:37 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/d3xp
|
2007-07-25 16:39:59 +02:00
|
|
|
cd ${WRKSRC}/d3xp && \
|
2013-11-16 04:17:37 +01:00
|
|
|
${INSTALL_DATA} game01.pk4 pak*.pk4 ${STAGEDIR}${DATADIR}/d3xp
|
|
|
|
${CP} -r ${WRKSRC}/pb ${STAGEDIR}${DATADIR}
|
2007-07-25 16:39:59 +02:00
|
|
|
.endif
|
2013-11-16 04:17:37 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doom3.png ${STAGEDIR}${PREFIX}/share/pixmaps
|
2006-09-05 00:13:27 +02:00
|
|
|
.for f in doom3 doom3-ded
|
2016-09-05 21:23:42 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${f} ${STAGEDIR}${PREFIX}/bin/${PKGNAMEPREFIX}${f}
|
2006-09-05 00:13:27 +02:00
|
|
|
.endfor
|
2006-05-08 21:42:57 +02:00
|
|
|
|
2012-06-12 18:35:45 +02:00
|
|
|
.include <bsd.port.mk>
|