Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 May 2014 06:03:44 +0000 (UTC)
From:      Barbara Guida <bar@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r354781 - in head: Mk games/linux-enemyterritory
Message-ID:  <201405220603.s4M63i0Z051367@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bar
Date: Thu May 22 06:03:44 2014
New Revision: 354781
URL: http://svnweb.freebsd.org/changeset/ports/354781
QAT: https://qat.redports.org/buildarchive/r354781/

Log:
  - Stage support
  - Add DOCS and NVIDIA_GL options
  - Restore MASTER_SITES
  - Install without using custom commands
  - Take maintainership (former maintainer agreed by private mail)
  - For MASTER_SITE_IDSOFTWARE, remove ftp.chg.ru (looks dead) and add ftp.gwdg.de

Modified:
  head/Mk/bsd.sites.mk
  head/games/linux-enemyterritory/Makefile

Modified: head/Mk/bsd.sites.mk
==============================================================================
--- head/Mk/bsd.sites.mk	Thu May 22 05:59:18 2014	(r354780)
+++ head/Mk/bsd.sites.mk	Thu May 22 06:03:44 2014	(r354781)
@@ -627,7 +627,7 @@ MASTER_SITE_HORDE+= \
 
 .if !defined(IGNORE_MASTER_SITE_IDSOFTWARE)
 MASTER_SITE_IDSOFTWARE+= \
-	ftp://ftp.chg.ru/pub/games/idgames/idstuff/%SUBDIR%/ \
+	ftp://ftp.gwdg.de/pub/misc2/ftp.idsoftware.com/idstuff/%SUBDIR%/ \
 	http://ftp4.de.freesbie.org/pub/misc/ftp.idsoftware.com/idstuff/%SUBDIR%/ \
 	ftp://ftp.fu-berlin.de/pc/games/idgames/idstuff/%SUBDIR%/ \
 	ftp://ftp.gamers.org/pub/idgames/idstuff/%SUBDIR%/ \

Modified: head/games/linux-enemyterritory/Makefile
==============================================================================
--- head/games/linux-enemyterritory/Makefile	Thu May 22 05:59:18 2014	(r354780)
+++ head/games/linux-enemyterritory/Makefile	Thu May 22 06:03:44 2014	(r354781)
@@ -3,15 +3,15 @@
 
 PORTNAME=	enemyterritory
 PORTVERSION=	2.60b
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	games linux
-MASTER_SITES=		${MASTER_SITE_IDSOFTWARE:S|$|et/:patch|}
-#MASTER_SITES=	${MASTER_SITE_IDSOFTWARE:S|$|et/linux/:full|}
+MASTER_SITES=	${MASTER_SITE_IDSOFTWARE:S|$|et/:patch|} \
+		${MASTER_SITE_IDSOFTWARE:S|$|et/linux/:full|}
 PKGNAMEPREFIX=	linux-
 DISTNAME=	et-linux-2.60b.x86
 DISTFILES=	et-linux-2.60.x86.run:full ET-2.60b.zip:patch
 
-MAINTAINER=	benlutz@datacomm.ch
+MAINTAINER=	bar@FreeBSD.org
 COMMENT=	Wolfenstein: Enemy Territory (Linux version)
 
 ONLY_FOR_ARCHS=	i386 amd64
@@ -19,11 +19,19 @@ USE_LINUX=	yes
 USES=		zip:infozip
 NO_CDROM=	Redistribution is limited, see license
 ETDIR=		${PREFIX}/lib/${PORTNAME}
-INSTALL_DIR=	${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
 PATCH_260B_DIR=	Enemy Territory 2.60b
-USE_LINUX_APPS=	dri
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS NVIDIA_GL
+NVIDIA_GL_DESC=	Use GL driver from nvidia-driver
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNVIDIA_GL}
+RUN_DEPENDS+=	${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
+.else
+USE_LINUX_APPS+=	dri
+.endif
+
 do-extract:
 	@${MKDIR} ${WRKSRC}
 	@cd ${WRKSRC} && \
@@ -45,58 +53,51 @@ do-build:
 .endfor
 
 do-install:
-	${INSTALL_DIR} ${ETDIR}
+	${MKDIR} ${STAGEDIR}${ETDIR}
 
 .for DIR in etmain etmain/video pb
-	${INSTALL_DIR} ${ETDIR}/${DIR}
+	${MKDIR} ${STAGEDIR}${ETDIR}/${DIR}
 .endfor
 
-.if !defined(NOPORTDOCS)
-	${INSTALL_DIR} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${RMDIR} ${WRKSRC}/Docs/Help/_private
-	${CP} -R ${WRKSRC}/Docs/* ${DOCSDIR}
-	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}/*
-	${FIND} ${DOCSDIR}/* -type f -print0 | \
-		${XARGS} -0 ${CHMOD} ${SHAREMODE}
-	${FIND} ${DOCSDIR}/* -type d -print0 | \
-		${XARGS} -0 ${CHMOD} ${BINMODE}
+	(cd ${WRKSRC}/Docs && \
+		${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
 .for FILE in CHANGES pb/PB_EULA.txt
-	${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
 .endfor
 .endif
 
-	${CP} -R ${WRKSRC}/pb/htm ${ETDIR}/pb
-	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${ETDIR}/pb/htm
-	${FIND} ${ETDIR}/pb/htm -type f -print0 | \
-		${XARGS} -0 ${CHMOD} ${SHAREMODE}
-	${FIND} ${ETDIR}/pb/htm -type d -print0 | \
-		${XARGS} -0 ${CHMOD} ${BINMODE}
+	${MKDIR} ${STAGEDIR}${ETDIR}/pb/htm
+	(cd ${WRKSRC}/pb/htm && \
+		${COPYTREE_SHARE} . ${STAGEDIR}${ETDIR}/pb/htm)
 
-	${INSTALL_SCRIPT} ${WRKSRC}/openurl.sh ${ETDIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/openurl.sh ${STAGEDIR}${ETDIR}
 	${INSTALL_DATA} ${WRKSRC}/etmain/video/etintro.roq \
-		${ETDIR}/etmain/video
+		${STAGEDIR}${ETDIR}/etmain/video
 
 .for FILE in campaigncycle.cfg cgame.mp.i386.so hunkusage.dat lmscycle.cfg \
 	mp_bin.pk3 objectivecycle.cfg pak0.pk3 pak1.pk3 pak2.pk3 \
 	punkbuster.cfg qagame.mp.i386.so server.cfg stopwatchcycle.cfg \
 	ui.mp.i386.so
-	${INSTALL_DATA} ${WRKSRC}/etmain/${FILE} ${ETDIR}/etmain
+	${INSTALL_DATA} ${WRKSRC}/etmain/${FILE} ${STAGEDIR}${ETDIR}/etmain
 .endfor
 
 .for FILE in pbag.so pbags.so pbcl.db pbcl.so pbcls.so pbsv.db pbsv.so
-	${INSTALL_DATA} ${WRKSRC}/pb/${FILE} ${ETDIR}/pb
+	${INSTALL_DATA} ${WRKSRC}/pb/${FILE} ${STAGEDIR}${ETDIR}/pb
 .endfor
-	${INSTALL_PROGRAM} ${WRKSRC}/pb/pbweb.x86 ${ETDIR}/pb
+	${INSTALL_PROGRAM} ${WRKSRC}/pb/pbweb.x86 ${STAGEDIR}${ETDIR}/pb
 
-	${INSTALL_DIR} ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/ET.xpm ${DATADIR}
+	${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/ET.xpm ${STAGEDIR}${DATADIR}
 
 .for FILE in et.x86 etded.x86
-	${INSTALL_PROGRAM} ${WRKSRC}/bin/Linux/x86/${FILE} ${ETDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/bin/Linux/x86/${FILE} ${STAGEDIR}${ETDIR}
 .endfor
 
 .for FILE in et etded
-	${INSTALL_SCRIPT} ${WRKSRC}/${FILE} ${PREFIX}/bin
+	${INSTALL_SCRIPT} ${WRKSRC}/${FILE} ${STAGEDIR}${PREFIX}/bin
 .endfor
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405220603.s4M63i0Z051367>