From owner-svn-ports-all@FreeBSD.ORG Wed Mar 26 02:36:36 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3AB65A8F; Wed, 26 Mar 2014 02:36:36 +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 26D329BC; Wed, 26 Mar 2014 02:36:36 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2Q2aaYF030046; Wed, 26 Mar 2014 02:36:36 GMT (envelope-from swills@svn.freebsd.org) Received: (from swills@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2Q2aaWW030045; Wed, 26 Mar 2014 02:36:36 GMT (envelope-from swills@svn.freebsd.org) Message-Id: <201403260236.s2Q2aaWW030045@svn.freebsd.org> From: Steve Wills Date: Wed, 26 Mar 2014 02:36:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r349214 - head/games/linux-unrealgold X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2014 02:36:36 -0000 Author: swills Date: Wed Mar 26 02:36:35 2014 New Revision: 349214 URL: http://svnweb.freebsd.org/changeset/ports/349214 QAT: https://qat.redports.org/buildarchive/r349214/ Log: - Stage - Convert NOPORTDOCS to DOCS OPTION PR: ports/187863 Submitted by: Johannes Jost Meixner Modified: head/games/linux-unrealgold/Makefile Modified: head/games/linux-unrealgold/Makefile ============================================================================== --- head/games/linux-unrealgold/Makefile Wed Mar 26 02:32:34 2014 (r349213) +++ head/games/linux-unrealgold/Makefile Wed Mar 26 02:36:35 2014 (r349214) @@ -3,7 +3,7 @@ PORTNAME= unrealgold PORTVERSION= 436 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games linux MASTER_SITES= http://offload1.icculus.org/~ravage/unreal/${PORTNAME}/ PKGNAMEPREFIX= linux- @@ -31,11 +31,12 @@ DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPR HELPFILES= README ReadMe.htm ReadMe.txt ReadMe220.htm ReadMe222.htm ReadMe223.htm ReadMe224.htm MANUALFILES= "Unreal NaPali Manual.pdf" "Unreal manual.pdf" PORTDOCS= ${HELPFILES} +OPTIONS_DEFINE= DOCS CDDIRS= Help Maps Maps/UPak Music Sounds Sounds/int System Textures -NO_STAGE= yes .include +.include UT_DATADIR!= cd ${PORTSDIR}/games/linux-ut && ${MAKE} -V DATADIR @@ -150,41 +151,41 @@ do-install: ${ECHO_CMD} "${PKGNAME} requires linux-ut with 436 version."; \ ${FALSE}; \ fi - @${MKDIR} ${DATADIR} - @cd ${DATADIR} && ${MKDIR} ${CDDIRS} + @${MKDIR} ${STAGEDIR}${DATADIR} + @cd ${STAGEDIR}${DATADIR} && ${MKDIR} ${CDDIRS} .for dir in Music Sounds Textures System @${ECHO_CMD} "Linking UT ${dir}" @${GREP} "%%UT%%%%DATADIR%%/${dir}" ${PLIST} | \ ${SED} -e 's|%%UT%%%%DATADIR%%|${UT_DATADIR}|' | \ - ${XARGS} -J % ${LN} -sf % ${DATADIR}/${dir} + ${XARGS} -J % ${LN} -sf % ${STAGEDIR}${DATADIR}/${dir} .endfor - ${INSTALL_DATA} ${WRKSRC}/Data/Help/Logo.xpm ${DATADIR}/Help - ${INSTALL_DATA} ${WRKSRC}/Data/System/*.ini ${DATADIR}/System - ${INSTALL_DATA} ${WRKSRC}/Data/System/*.int ${DATADIR}/System - ${INSTALL_DATA} ${WRKSRC}/Data/System/*.u ${DATADIR}/System - ${INSTALL_PROGRAM} ${WRKSRC}/Data/System/*-bin ${DATADIR}/System - @${BRANDELF} -t Linux ${DATADIR}/System/*-bin - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/Data/Help/Logo.xpm ${STAGEDIR}${DATADIR}/Help + ${INSTALL_DATA} ${WRKSRC}/Data/System/*.ini ${STAGEDIR}${DATADIR}/System + ${INSTALL_DATA} ${WRKSRC}/Data/System/*.int ${STAGEDIR}${DATADIR}/System + ${INSTALL_DATA} ${WRKSRC}/Data/System/*.u ${STAGEDIR}${DATADIR}/System + ${INSTALL_PROGRAM} ${WRKSRC}/Data/System/*-bin ${STAGEDIR}${DATADIR}/System + @${BRANDELF} -t Linux ${STAGEDIR}${DATADIR}/System/*-bin + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin # Install the files @${ECHO_CMD} "Installing files from CD" .for dir in ${CDDIRS} @${GREP} -e "%%UG%%%%DATADIR%%/${dir}/[^/]*$$" ${PLIST} | \ ${SED} -e 's|%%UG%%%%DATADIR%%|${WRKDIR}/source|' | \ - ${XARGS} -J % ${INSTALL_DATA} % ${DATADIR}/${dir} + ${XARGS} -J % ${INSTALL_DATA} % ${STAGEDIR}${DATADIR}/${dir} .endfor # Rename DM maps so UT can see them - @${FIND} ${DATADIR}/Maps -name Dm\*.unr | \ + @${FIND} ${STAGEDIR}${DATADIR}/Maps -name Dm\*.unr | \ ${SED} 's/\(.*\)\(Dm\)\(.*\)/${LN:S,/,\\/,g} -sf & \1DM-\3/' | ${SH} -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .if !defined(RAVAGE) .for i in ${HELPFILES:NREADME} - ${INSTALL_DATA} ${WRKDIR}/source/Help/${i} ${DOCSDIR} + ${INSTALL_DATA} ${WRKDIR}/source/Help/${i} ${STAGEDIR}${DOCSDIR} .endfor .endif .for i in ${MANUALFILES} - ${INSTALL_DATA} ${WRKDIR}/source/Manual/${i} ${DOCSDIR} + ${INSTALL_DATA} ${WRKDIR}/source/Manual/${i} ${STAGEDIR}${DOCSDIR} .endfor .endif