From owner-svn-ports-head@FreeBSD.ORG Sat Jun 7 23:30:52 2014 Return-Path: Delivered-To: svn-ports-head@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 091584D6; Sat, 7 Jun 2014 23:30:52 +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)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DD87C2CD0; Sat, 7 Jun 2014 23:30:51 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s57NUpBs092312; Sat, 7 Jun 2014 23:30:51 GMT (envelope-from mi@svn.freebsd.org) Received: (from mi@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s57NUp2i092305; Sat, 7 Jun 2014 23:30:51 GMT (envelope-from mi@svn.freebsd.org) Message-Id: <201406072330.s57NUp2i092305@svn.freebsd.org> From: Mikhail Teterin Date: Sat, 7 Jun 2014 23:30:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r356956 - in head/games: vegastrike vegastrike-data vegastrike/files 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.18 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: Sat, 07 Jun 2014 23:30:52 -0000 Author: mi Date: Sat Jun 7 23:30:50 2014 New Revision: 356956 URL: http://svnweb.freebsd.org/changeset/ports/356956 QAT: https://qat.redports.org/buildarchive/r356956/ Log: Uncondemn by adding patches to appease new C++ compilers (tested against GNU 4.8 and clang 3.4). Add support for staging. While here, change vegastrike to build against the existing boost. While here, rearrange vegastrike-data to extract directly to ${STAGEDIR}${DATADIR} -- saving one round of data-writing. Added: head/games/vegastrike/files/ head/games/vegastrike/files/patch-Makefile.in (contents, props changed) head/games/vegastrike/files/patch-c++ (contents, props changed) Modified: head/games/vegastrike-data/Makefile head/games/vegastrike/Makefile Modified: head/games/vegastrike-data/Makefile ============================================================================== --- head/games/vegastrike-data/Makefile Sat Jun 7 23:19:54 2014 (r356955) +++ head/games/vegastrike-data/Makefile Sat Jun 7 23:30:50 2014 (r356956) @@ -11,32 +11,29 @@ DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${ MAINTAINER= ports@FreeBSD.org COMMENT= Vega Strike data files -DEPRECATED= Does not compile with modern compilers -EXPIRATION_DATE= 2014-07-06 - USE_BZIP2= yes NO_BUILD= yes -PLIST= ${WRKDIR}/pkg-plist -WRKSRC= ${WRKDIR}/${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION} - MANUAL_PACKAGE_BUILD=huge -NO_STAGE= yes -post-patch: - @${FIND} ${WRKSRC} -name "Makefile.am" -delete - -pre-install: - @${RM} -f ${PLIST} - @cd ${WRKSRC} && \ - ${FIND} . -type f -mindepth 1 | ${SORT} | \ - ${SED} -e 's|^\./||; s|^|%%DATADIR%%/|' >> ${PLIST} && \ - ${FIND} . -type d -mindepth 1 | ${SORT} -r | \ - ${SED} -e 's|^\./||; s|^|@dirrm %%DATADIR%%/|' >> ${PLIST} - @${ECHO_CMD} "@dirrm %%DATADIR%%" >> ${PLIST} +do-extract: + ${MKDIR} ${WRKDIR} + # Will extract directly into ${STAGEDIR}${DATADIR:H} do-install: - ${MKDIR} ${DATADIR} - cd ${WRKSRC} && ${COPYTREE_SHARE} . ${DATADIR} + ${RM} -rf ${STAGEDIR}${DATADIR} + ${MKDIR} ${STAGEDIR}${DATADIR:H} + ${TAR} -C ${STAGEDIR}${DATADIR:H} -xvf ${_DISTDIR}/${DISTFILES} \ + --exclude Makefile.am --no-same-owner 2>&1 | \ + ${AWK} ' \ + BEGIN { dirn = 0 ; print "@cwd ${DATADIR}" } \ + { sub("^x [^/]*/", "") } \ + /\/$$/ { sub("/$$", ""); dirs[dirn++] = $$0 ; next } \ + !/^$$/ { print $$0 } \ + END {while (dirn--) print "@dirrm " dirs[dirn]; \ + print "@cwd"; print "@dirrm ${DATADIR_REL}" } \ + ' >> ${TMPPLIST} + ${MV} ${STAGEDIR}${DATADIR:H}/vegastrike-data-${PORTVERSION} \ + ${STAGEDIR}${DATADIR} .include Modified: head/games/vegastrike/Makefile ============================================================================== --- head/games/vegastrike/Makefile Sat Jun 7 23:19:54 2014 (r356955) +++ head/games/vegastrike/Makefile Sat Jun 7 23:30:50 2014 (r356956) @@ -3,7 +3,7 @@ PORTNAME= vegastrike PORTVERSION= 0.5.1.r1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/0.5.1/ DISTNAME= vegastrike-src-${PORTVERSION} @@ -11,12 +11,10 @@ DISTNAME= vegastrike-src-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Opensource 3D space simulator -DEPRECATED= Does not compile with modern compilers -EXPIRATION_DATE= 2014-07-06 - RUN_DEPENDS= ${DATADIR}/vegastrike.ico:${PORTSDIR}/games/vegastrike-data -LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2 \ - vorbis.4:${PORTSDIR}/audio/libvorbis \ +LIB_DEPENDS= boost_python:${PORTSDIR}/devel/boost-python-libs \ + expat:${PORTSDIR}/textproc/expat2 \ + vorbis:${PORTSDIR}/audio/libvorbis \ ogg:${PORTSDIR}/audio/libogg USE_BZIP2= yes @@ -30,10 +28,13 @@ USE_GL= gl glu glut USE_GNOME= gtk20 CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib +USE_DOS2UNIX= *.cpp *.h +EXTRACT_AFTER_ARGS+=--exclude boost # cegui and ffmpeg are not used yet CONFIGURE_ARGS= --disable-cegui --disable-ffmpeg \ --with-data-dir="${LOCALBASE}/share/${PORTNAME}" \ + --with-boost=system \ --enable-flags="${CXXFLAGS}" PLIST_FILES= bin/vegastrike bin/vssetup bin/vegaserver @@ -43,7 +44,6 @@ PORTDOCS= README OPTIONS_DEFINE= MESHER MESHER_DESC= Enable mesher modelling tool -NO_STAGE= yes .include .if ${OSVERSION} < 800000 @@ -63,15 +63,11 @@ post-patch: s|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/configure do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/vegaserver ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/vegastrike ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/vssetup ${PREFIX}/bin -.if ${PORT_OPTIONS:MMESHER} - ${INSTALL_PROGRAM} ${WRKSRC}/mesher ${PREFIX}/bin -.endif + ${INSTALL_PROGRAM} ${PLIST_FILES:S|bin|${WRKSRC}|} \ + ${STAGEDIR}${PREFIX}/bin .if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .endif post-install: Added: head/games/vegastrike/files/patch-Makefile.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/vegastrike/files/patch-Makefile.in Sat Jun 7 23:30:50 2014 (r356956) @@ -0,0 +1,20 @@ +This patch filters-out the libraries not needed for the vegaserver, +which is a daemon (non-GUI) process. It also removes the useless +patching of the Boost code. + +--- Makefile.in 2012-03-31 21:53:59.000000000 -0400 ++++ Makefile.in 2014-06-07 17:30:56.000000000 -0400 +@@ -3064,5 +3064,5 @@ + vegaserver$(EXEEXT): $(vegaserver_OBJECTS) $(vegaserver_DEPENDENCIES) + @rm -f vegaserver$(EXEEXT) +- $(CXXLINK) $(vegaserver_LDFLAGS) $(vegaserver_OBJECTS) $(vegaserver_LDADD) $(LIBS) ++ $(CXXLINK) $(vegaserver_LDFLAGS) $(vegaserver_OBJECTS) $(vegaserver_LDADD) $(filter-out -lX% -lGL% -lSDL% -lglut,$(LIBS)) + src/gui/$(am__dirstamp): + @$(mkdir_p) src/gui +@@ -5451,5 +5451,5 @@ + @BOOSTSYSTEM_FALSE@done + +-all: boost_patched_gcc44 ++all: + + boost_patched_gcc44: boost_gcc44.patch Added: head/games/vegastrike/files/patch-c++ ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/vegastrike/files/patch-c++ Sat Jun 7 23:30:50 2014 (r356956) @@ -0,0 +1,33 @@ +--- src/resizable.h 2010-02-25 09:26:53.000000000 -0500 ++++ src/resizable.h 2014-06-07 12:38:44.000000000 -0400 +@@ -1,2 +1,4 @@ ++#include ++ + #include + template < class ITEM > +--- src/cmd/unit_jump.h 2012-03-19 04:20:14.000000000 -0400 ++++ src/cmd/unit_jump.h 2014-06-07 12:46:15.000000000 -0400 +@@ -109,5 +109,5 @@ + if (tester->isUnit() == UNITPTR && tester != this) + if ( ( this->LocalPosition()-tester->LocalPosition() ).Magnitude() < this->rSize()+tester->rSize() ) +- SetCurPosition( this->LocalPosition()+this->cumulative_transformation_matrix.getR() ++ this->SetCurPosition( this->LocalPosition()+this->cumulative_transformation_matrix.getR() + *( 4*( this->rSize()+tester->rSize() ) ) ); + DealPossibleJumpDamage( this ); +--- objconv/basemaker/base_maker_texture.cpp 2010-03-09 21:56:23.000000000 -0500 ++++ objconv/basemaker/base_maker_texture.cpp 2014-06-07 12:48:22.000000000 -0400 +@@ -2,4 +2,5 @@ + #include "base_maker_texture.h" + #include ++#include + #include + #ifdef _WIN32 +--- src/gldrv/hashtable_3d.h 2014-06-07 13:28:18.000000000 -0400 ++++ src/gldrv/hashtable_3d.h 2014-06-07 13:51:23.000000000 -0400 +@@ -38,5 +38,5 @@ + public: + ///Hashes a single value to a value on the collide table truncated to all 3d constraints. Consider using a swizzle +- int hash_int( const double aye ) ++ static int hash_int( const double aye ) + { + return ( (int) ( ( (aye < 0) ? (aye