From owner-svn-ports-all@FreeBSD.ORG Thu Sep 25 20:18:07 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 0FF9B11D; Thu, 25 Sep 2014 20:18:07 +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 E3327A33; Thu, 25 Sep 2014 20:18:06 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s8PKI6PP073559; Thu, 25 Sep 2014 20:18:06 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s8PKI5nu073555; Thu, 25 Sep 2014 20:18:05 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201409252018.s8PKI5nu073555@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Thu, 25 Sep 2014 20:18:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r369291 - in head/games/warsow: . 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-all@freebsd.org X-Mailman-Version: 2.1.18-1 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: Thu, 25 Sep 2014 20:18:07 -0000 Author: amdmi3 Date: Thu Sep 25 20:18:05 2014 New Revision: 369291 URL: http://svnweb.freebsd.org/changeset/ports/369291 QAT: https://qat.redports.org/buildarchive/r369291/ Log: - Update to v1.51 PR: 190969 Submitted by: lightside@gmx.com Added: head/games/warsow/files/extra-patch-no-xrandr (contents, props changed) Modified: head/games/warsow/Makefile head/games/warsow/distinfo head/games/warsow/files/patch-Makefile Modified: head/games/warsow/Makefile ============================================================================== --- head/games/warsow/Makefile Thu Sep 25 19:56:48 2014 (r369290) +++ head/games/warsow/Makefile Thu Sep 25 20:18:05 2014 (r369291) @@ -2,13 +2,11 @@ # $FreeBSD$ PORTNAME= warsow -PORTVERSION= 1.5 -PORTREVISION= 2 +PORTVERSION= 1.51 CATEGORIES= games -MASTER_SITES= SF/warsow.mirror/Warsow%20${PORTVERSION} \ - http://www.warsow.net:1337/~warsow/${PORTVERSION}/ -DISTNAME= ${PORTNAME}_${PORTVERSION:S/.//}_sdk -DIST_SUBDIR= ${PORTNAME} +MASTER_SITES= SF/warsow.mirror/Warsow%20${PORTVERSION} +DISTNAME= ${PORTNAME}_${PORTVERSION}_sdk +EXTRACT_SUFX= .tar.gz.1 MAINTAINER= games@FreeBSD.org COMMENT= Futuristic, fast-paced first person shooter @@ -16,21 +14,21 @@ COMMENT= Futuristic, fast-paced first pe LICENSE= GPLv2 LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl +RUN_DEPENDS= ${DATADIR}/basewsw/data1_15.pk3:${PORTSDIR}/games/warsow-data ONLY_FOR_ARCHS= i386 amd64 -USES= gmake +USES= gmake compiler:c++11-lang WRKSRC= ${WRKDIR}/source/source ALL_TARGET= game angelwrap RELEASEDIR= ${WRKSRC}/release AS_SDK_DIR= ${WRKSRC}/../libsrcs/angelscript/sdk -PLIST_FILES= %%DATADIR%%/basewsw/game_${ARCH}.so \ - %%DATADIR%%/libs/angelwrap_${ARCH}.so -PLIST_DIRS= %%DATADIR%%/basewsw %%DATADIR%%/libs %%DATADIR%% +PORTDATA= * +PORTDOCS= *.rtf *.doc sourcecode_quickstart.txt -OPTIONS_DEFINE= CLIENT SERVER FTLIB REF_GL QF OPENAL IRC CIN TV_SRV DOCS +OPTIONS_DEFINE= CLIENT SERVER FTLIB REF_GL QF OPENAL IRC CIN TV_SRV DOCS XRANDR OPTIONS_DEFAULT= CLIENT SERVER FTLIB REF_GL QF OPENAL IRC CIN TV_SRV CLIENT_DESC= Build game client @@ -42,22 +40,20 @@ OPENAL_DESC= Build OpenAL sound module IRC_DESC= Build IRC client module CIN_DESC= Build Cinematics playback module TV_SRV_DESC= Build Warsow TV server - -PORTDOCS= *.rtf *.doc sourcecode_quickstart.txt +XRANDR_DESC= Xrandr support (may be broken with nvidia-driver) .include .if ${PORT_OPTIONS:MCLIENT} -USE_XORG= xi xrandr +USE_XORG= xi ALL_TARGET+= cgame ui client -PLIST_FILES+= bin/warsow %%DATADIR%%/basewsw/cgame_${ARCH}.so \ - %%DATADIR%%/basewsw/ui_${ARCH}.so \ +PLIST_FILES+= bin/warsow \ share/pixmaps/warsow128x128.xpm DESKTOP_ENTRIES="Warsow" "${COMMENT}" \ "${PREFIX}/share/pixmaps/warsow128x128.xpm" "${PORTNAME}" \ - "Game;Shooter;" "" + "Game;Shooter;" false . if ${PORT_OPTIONS:MFTLIB} || ${PORT_OPTIONS:MREF_GL} LIB_DEPENDS+= libpng15.so:${PORTSDIR}/graphics/png @@ -66,7 +62,6 @@ LIB_DEPENDS+= libpng15.so:${PORTSDIR}/gr . if ${PORT_OPTIONS:MFTLIB} LIB_DEPENDS+= libfreetype.so:${PORTSDIR}/print/freetype2 ALL_TARGET+= ftlib -PLIST_FILES+= %%DATADIR%%/libs/ftlib_${ARCH}.so . endif . if ${PORT_OPTIONS:MREF_GL} @@ -74,7 +69,6 @@ USE_GL= gl USE_XORG+= xinerama LIB_DEPENDS+= libjpeg.so:${PORTSDIR}/graphics/jpeg ALL_TARGET+= ref_gl -PLIST_FILES+= %%DATADIR%%/libs/ref_gl_${ARCH}.so . endif . if ${PORT_OPTIONS:MQF} || ${PORT_OPTIONS:MOPENAL} @@ -84,25 +78,27 @@ LIB_DEPENDS+= libvorbisfile.so:${PORTSDI . if ${PORT_OPTIONS:MQF} USE_SDL= sdl ALL_TARGET+= qf -PLIST_FILES+= %%DATADIR%%/libs/snd_qf_${ARCH}.so . endif . if ${PORT_OPTIONS:MOPENAL} USES+= openal:al ALL_TARGET+= openal -PLIST_FILES+= %%DATADIR%%/libs/snd_openal_${ARCH}.so . endif . if ${PORT_OPTIONS:MIRC} ALL_TARGET+= irc -PLIST_FILES+= %%DATADIR%%/libs/irc_${ARCH}.so . endif . if ${PORT_OPTIONS:MCIN} ALL_TARGET+= cin -PLIST_FILES+= %%DATADIR%%/libs/cin_${ARCH}.so BUILD_DEPENDS+= ${LOCALBASE}/include/theora/theoradec.h:${PORTSDIR}/multimedia/libtheora . endif + +. if ${PORT_OPTIONS:MXRANDR} +USE_XORG+= xrandr +. else +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-no-xrandr +. endif .endif .if ${PORT_OPTIONS:MSERVER} @@ -142,8 +138,6 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/unix/warsow128x128.xpm \ ${STAGEDIR}${PREFIX}/share/pixmaps .endif - - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/../../docs/|} ${STAGEDIR}${DOCSDIR} + cd ${WRKDIR}/docs && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR} .include Modified: head/games/warsow/distinfo ============================================================================== --- head/games/warsow/distinfo Thu Sep 25 19:56:48 2014 (r369290) +++ head/games/warsow/distinfo Thu Sep 25 20:18:05 2014 (r369291) @@ -1,2 +1,2 @@ -SHA256 (warsow/warsow_15_sdk.tar.gz) = 277bbe87744352ee02476dc1bf9258ed5b204345b1b8eb394442dcec6a956949 -SIZE (warsow/warsow_15_sdk.tar.gz) = 89175325 +SHA256 (warsow_1.51_sdk.tar.gz.1) = ac635c654e088566d30d53e8fab21abd2d40762d7f4ab0e09faa827aac5c4f97 +SIZE (warsow_1.51_sdk.tar.gz.1) = 89191554 Added: head/games/warsow/files/extra-patch-no-xrandr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/warsow/files/extra-patch-no-xrandr Thu Sep 25 20:18:05 2014 (r369291) @@ -0,0 +1,72 @@ +--- unix/unix_vid.c.orig 2014-06-08 16:08:05.000000000 +0400 ++++ unix/unix_vid.c 2014-09-25 15:20:25.000000000 +0400 +@@ -126,28 +126,5 @@ + */ + qboolean VID_GetDisplaySize( int *width, int *height ) + { +- XRRScreenConfiguration *xrrConfig; +- XRRScreenSize *xrrSizes; +- Display *dpy; +- Window root; +- Rotation rotation; +- SizeID size_id; +- int num_sizes; +- +- dpy = XOpenDisplay( NULL ); +- if( dpy ) +- { +- root = DefaultRootWindow( dpy ); +- xrrConfig = XRRGetScreenInfo( dpy, root ); +- xrrSizes = XRRConfigSizes( xrrConfig, &num_sizes ); +- size_id = XRRConfigCurrentConfiguration( xrrConfig, &rotation ); +- +- *width = xrrSizes[size_id].width; +- *height = xrrSizes[size_id].height; +- +- XCloseDisplay( dpy ); +- return qtrue; +- } +- + return qfalse; + } +--- unix/unix_glw.c.orig 2014-06-08 16:08:05.000000000 +0400 ++++ unix/unix_glw.c 2014-09-25 15:20:05.000000000 +0400 +@@ -41,7 +41,7 @@ + #define INIT_MASK ( KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask | FocusChangeMask | DISPLAY_MASK ) + + // use experimental Xrandr resolution? +-#define _XRANDR_OVER_VIDMODE_ ++#undef _XRANDR_OVER_VIDMODE_ + + x11display_t x11display; + x11wndproc_t x11wndproc; +--- Makefile.orig 2014-06-08 16:08:05.000000000 +0400 ++++ Makefile 2014-09-25 15:39:56.000000000 +0400 +@@ -265,7 +265,7 @@ + LIB=lib + endif + +-LDFLAGS_CLIENT=-lz -lpthread -lX11 -lXext -lXi -lXrandr -lrt $(shell curl-config --libs) ++LDFLAGS_CLIENT=-lz -lpthread -lX11 -lXext -lXi -lrt $(shell curl-config --libs) + LDFLAGS_DED=-lz -lpthread $(shell curl-config --libs) + LDFLAGS_MODULE=-shared + LDFLAGS_TV_SERVER=-lz -lpthread $(shell curl-config --libs) +@@ -306,7 +306,7 @@ + + ifeq ($(BUILD_REF_GL),YES) + CFLAGS_REF_GL= +-LDFLAGS_REF_GL=-lX11 -lXext -lXinerama -lXrandr -lXxf86vm -ljpeg -lpng -lz ++LDFLAGS_REF_GL=-lX11 -lXext -lXinerama -lXxf86vm -ljpeg -lpng -lz + endif + + LDFLAGS_IRC= +--- unix/x11.h.orig 2014-06-08 16:08:05.000000000 +0400 ++++ unix/x11.h 2014-09-25 16:38:59.000000000 +0400 +@@ -6,7 +6,6 @@ + + #include + #include +-#include + #include + + #include Modified: head/games/warsow/files/patch-Makefile ============================================================================== --- head/games/warsow/files/patch-Makefile Thu Sep 25 19:56:48 2014 (r369290) +++ head/games/warsow/files/patch-Makefile Thu Sep 25 20:18:05 2014 (r369291) @@ -1,5 +1,5 @@ ---- Makefile.orig 2014-05-02 01:12:05.000000000 +0400 -+++ Makefile 2014-05-07 12:00:03.000000000 +0400 +--- Makefile.orig 2014-06-08 16:08:05.000000000 +0400 ++++ Makefile 2014-06-12 17:44:20.000000000 +0400 @@ -54,21 +54,13 @@ else CC?=gcc @@ -37,7 +37,7 @@ else LDFLAGS_COMMON+= -L$(LOCALBASE)/lib -lm -ldl -O1 -Wl,--as-needed endif -@@ -358,12 +351,9 @@ +@@ -357,12 +350,9 @@ ###################################################################################################### # Helper functions ######################################################################################################