From owner-svn-ports-all@FreeBSD.ORG Tue Sep 9 13:15:37 2014 Return-Path: Delivered-To: svn-ports-all@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 C28FBEED; Tue, 9 Sep 2014 13:15:37 +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 ADB80993; Tue, 9 Sep 2014 13:15:37 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s89DFbj2058517; Tue, 9 Sep 2014 13:15:37 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s89DFbsU058515; Tue, 9 Sep 2014 13:15:37 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201409091315.s89DFbsU058515@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Tue, 9 Sep 2014 13:15:37 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r367730 - in head/games/cleanq3: . 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: Tue, 09 Sep 2014 13:15:38 -0000 Author: danfe Date: Tue Sep 9 13:15:36 2014 New Revision: 367730 URL: http://svnweb.freebsd.org/changeset/ports/367730 QAT: https://qat.redports.org/buildarchive/r367730/ Log: In preparation to next version update, cleanup things a bit first: - Add missing option description to "clients and servers" multichoice - Sort the knobs in a more logical order within the Makefile - Use more specific "gl" in USE_GL instead of umbrella "yes" - Unbreak the build against Clang and clean up Makefile while here - Transfer maintainership to the games@ team Modified: head/games/cleanq3/Makefile head/games/cleanq3/files/patch-code-unix-Makefile Modified: head/games/cleanq3/Makefile ============================================================================== --- head/games/cleanq3/Makefile Tue Sep 9 13:11:29 2014 (r367729) +++ head/games/cleanq3/Makefile Tue Sep 9 13:15:36 2014 (r367730) @@ -8,7 +8,7 @@ CATEGORIES= games MASTER_SITES= http://www.bfeared.com/library/quake/archive/quakedev/temor/downloads/ DISTNAME= CleanQ3_v${PORTVERSION}-srcbin -MAINTAINER= ports@FreeBSD.org +MAINTAINER= games@FreeBSD.org COMMENT= Cleaned up copy of the original Quake III Arena source code USES= dos2unix gmake zip @@ -16,32 +16,33 @@ WRKSRC= ${WRKDIR}/CleanQ3 BUILD_WRKSRC= ${WRKSRC}/code/unix MAKE_JOBS_UNSAFE= yes +MAKE_ENV= LIBDIR="${LIBDIR}" +PLIST_SUB= LIBDIR="${LIBDIR:S/${PREFIX}\///}" + +LIBDIR= ${PREFIX}/lib/${PORTNAME} +VM_ARCHS= i386 + OPTIONS_DEFINE= GAMELIBS OPTIMIZED_CFLAGS -OPTIONS_MULTI= TYPE -OPTIONS_MULTI_TYPE= CLIENT SMP_CLIENT DEDICATED +OPTIONS_MULTI= FLAVOR +OPTIONS_MULTI_FLAVOR= CLIENT SMP_CLIENT DEDICATED OPTIONS_DEFAULT= CLIENT SMP_CLIENT DEDICATED OPTIMIZED_CFLAGS +FLAVOR_DESC= Clients and servers CLIENT_DESC= Build client SMP_CLIENT_DESC= Build SMP (threaded) client DEDICATED_DESC= Build dedicated server GAMELIBS_DESC= Build game libraries (when not mandatory) -MAKE_ENV= LIBDIR="${LIBDIR}" -PLIST_SUB= LIBDIR="${LIBDIR:S/${PREFIX}\///}" - -LIBDIR= ${PREFIX}/lib/${PORTNAME} -VM_ARCHS= i386 - .include -.if ${ARCH} == "i386" +.if ${ARCH} == i386 BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm .endif .for i in ${ARCH} -. if ${VM_ARCHS:M${i}} != "" +. if ${VM_ARCHS:M${i}} HAVE_VM_COMPILED= yes -. endif +. endif .endfor .if !defined(HAVE_VM_COMPILED) @@ -49,7 +50,7 @@ MAKE_ENV+= DLL_ONLY=true .endif .if ${PORT_OPTIONS:MCLIENT} || ${PORT_OPTIONS:MSMP_CLIENT} -USE_GL= yes +USE_GL= gl USE_XORG= xxf86dga .endif @@ -95,15 +96,19 @@ post-patch: 's|//[[:blank:]]*\(Swap_Init[[:blank:]]*();\)|\1|' \ ${WRKSRC}/code/botlib/be_interface.c \ ${WRKSRC}/code/renderer/tr_init.c + @${REINPLACE_CMD} -e '/callMask = 0/s|^static||' \ + ${WRKSRC}/code/qcommon/vm_x86.c do-install: .for bin in ${Q3BIN} - ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/release/${bin} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/release/${bin} \ + ${STAGEDIR}${PREFIX}/bin .endfor .if ${PORT_OPTIONS:MGAMELIBS} || !defined(HAVE_VM_COMPILED) .for dir in baseq3 missionpack @${MKDIR} ${STAGEDIR}${LIBDIR}/${dir} - ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/release/${dir}/*.so ${STAGEDIR}${LIBDIR}/${dir} + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/release/${dir}/*.so \ + ${STAGEDIR}${LIBDIR}/${dir} .endfor .endif Modified: head/games/cleanq3/files/patch-code-unix-Makefile ============================================================================== --- head/games/cleanq3/files/patch-code-unix-Makefile Tue Sep 9 13:11:29 2014 (r367729) +++ head/games/cleanq3/files/patch-code-unix-Makefile Tue Sep 9 13:15:36 2014 (r367730) @@ -61,7 +61,7 @@ -GL_CFLAGS = -I$(MESADIR)/include -I/usr/X11R6/include +ifdef OPTIMIZED_CFLAGS + ifeq ($(ARCH),i386) -+RELEASE_CFLAGS=$(BASE_CFLAGS) -O3 -fomit-frame-pointer -pipe -ffast-math -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing -fstrength-reduce ++RELEASE_CFLAGS=$(BASE_CFLAGS) -O3 -fomit-frame-pointer -pipe -ffast-math -falign-functions=2 -fno-strict-aliasing -fstrength-reduce + else +RELEASE_CFLAGS=$(BASE_CFLAGS) -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations + endif