From owner-svn-ports-head@FreeBSD.ORG Mon Nov 18 19:19:31 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 62E66990; Mon, 18 Nov 2013 19:19:31 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 38D2E20B8; Mon, 18 Nov 2013 19:19:31 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAIJJVRk039808; Mon, 18 Nov 2013 19:19:31 GMT (envelope-from danilo@svn.freebsd.org) Received: (from danilo@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAIJJVc2039807; Mon, 18 Nov 2013 19:19:31 GMT (envelope-from danilo@svn.freebsd.org) Message-Id: <201311181919.rAIJJVc2039807@svn.freebsd.org> From: Danilo Egea Gondolfo Date: Mon, 18 Nov 2013 19:19:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r334244 - head/games/linux-ut2004-demo X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Nov 2013 19:19:31 -0000 Author: danilo Date: Mon Nov 18 19:19:30 2013 New Revision: 334244 URL: http://svnweb.freebsd.org/changeset/ports/334244 Log: - Remove NO_PACKAGE - Add DOCS and NVIDIA_GL options - Add stage support Modified: head/games/linux-ut2004-demo/Makefile Modified: head/games/linux-ut2004-demo/Makefile ============================================================================== --- head/games/linux-ut2004-demo/Makefile Mon Nov 18 19:13:50 2013 (r334243) +++ head/games/linux-ut2004-demo/Makefile Mon Nov 18 19:19:30 2013 (r334244) @@ -17,7 +17,6 @@ COMMENT= Unreal Tournament 2004 demo ONLY_FOR_ARCHS= i386 amd64 USE_LINUX= yes USE_LINUX_APPS= xorglibs -NO_PACKAGE= Distfile size is 275MB, set FORCE_PACKAGE if you really want to build this package RESTRICTED= Redistribution is limited, see license NO_BUILD= yes NO_WRKSUBDIR= yes @@ -38,12 +37,14 @@ PORTDOCS= * LIBDIRS= Animations Benchmark ForceFeedback KarmaData Maps Music \ Sounds Speech StaticMeshes System Textures Web -NO_STAGE= yes -.include +OPTIONS_DEFINE= DOCS NVIDIA_GL +NVIDIA_GL_DESC= Use GL driver from nvidia-driver -.if defined(WITH_NVIDIA_GL) -RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver -.else +NVIDIA_GL_RUN_DEPENDS= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver + +.include + +.if ! ${PORT_OPTIONS:MNVIDIA_GL} USE_LINUX_APPS+=dri .endif @@ -64,30 +65,21 @@ pre-install: | ${SED} -e 's|^|@dirrm ${UTDIR_REL}/|' >> ${PLIST} do-install: - ${INSTALL_SCRIPT} ${WRKDIR}/ut2004-demo ${PREFIX}/bin - + ${INSTALL_SCRIPT} ${WRKDIR}/ut2004-demo ${STAGEDIR}${PREFIX}/bin cd ${WRKSRC} && \ ${FIND} ${LIBDIRS} -type d ! -empty -exec \ - ${MKDIR} "${UTDIR}/{}" \; && \ + ${MKDIR} "${STAGEDIR}${UTDIR}/{}" \; && \ ${FIND} ${LIBDIRS} -type f -exec \ - ${INSTALL_DATA} "{}" "${UTDIR}/{}" \; - - -${CHOWN} ${BINOWN}:${BINGRP} ${UTDIR}/System/*-bin - ${CHMOD} ${BINMODE} ${UTDIR}/System/*-bin - - -${CHOWN} ${LIBOWN}:${LIBGRP} ${UTDIR}/System/*.so* - ${CHMOD} ${LIBMODE} ${UTDIR}/System/*.so* - - ${MKDIR} ${DATADIR} + ${INSTALL_DATA} "{}" "${STAGEDIR}${UTDIR}/{}" \; + ${CHMOD} ${BINMODE} ${STAGEDIR}${UTDIR}/System/*-bin + ${CHMOD} ${LIBMODE} ${STAGEDIR}${UTDIR}/System/*.so* + @${MKDIR} ${STAGEDIR}${DATADIR} .for f in Help/UT2004Logo.bmp ut2004.xpm - ${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR} .endfor - -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in Help/Manual.pdf README.linux - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} .endfor -.endif -.include +.include