From owner-svn-ports-all@FreeBSD.ORG Sun Apr 13 13:03:50 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 DAE8B2EF; Sun, 13 Apr 2014 13:03:50 +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 C69391C3B; Sun, 13 Apr 2014 13:03:50 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3DD3orO043308; Sun, 13 Apr 2014 13:03:50 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3DD3o7b043302; Sun, 13 Apr 2014 13:03:50 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201404131303.s3DD3o7b043302@svn.freebsd.org> From: Pawel Pekala Date: Sun, 13 Apr 2014 13:03:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r351216 - in branches/2014Q2/games/ezquake: . files X-SVN-Group: ports-branches 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: Sun, 13 Apr 2014 13:03:50 -0000 Author: pawel Date: Sun Apr 13 13:03:49 2014 New Revision: 351216 URL: http://svnweb.freebsd.org/changeset/ports/351216 QAT: https://qat.redports.org/buildarchive/r351216/ Log: MFH: r351214 - Add staging support - Convert to new LIB_DEPENDS format - Use options helpers, subs - Fix linking with clang (fixes build on 10+) Approved by: portmgr (antoine) Modified: branches/2014Q2/games/ezquake/Makefile branches/2014Q2/games/ezquake/files/patch-Makefile branches/2014Q2/games/ezquake/pkg-plist Directory Properties: branches/2014Q2/ (props changed) Modified: branches/2014Q2/games/ezquake/Makefile ============================================================================== --- branches/2014Q2/games/ezquake/Makefile Sun Apr 13 12:57:31 2014 (r351215) +++ branches/2014Q2/games/ezquake/Makefile Sun Apr 13 13:03:49 2014 (r351216) @@ -18,9 +18,9 @@ COMMENT= Modern QuakeWorld client EXTRACT_DEPENDS=${UNZIP_CMD}:${PORTSDIR}/archivers/unzip \ 7z:${PORTSDIR}/archivers/p7zip -LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2 \ - pcre.3:${PORTSDIR}/devel/pcre \ - png15:${PORTSDIR}/graphics/png +LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 \ + libpcre.so:${PORTSDIR}/devel/pcre \ + libpng15.so:${PORTSDIR}/graphics/png USES= gmake tcl dos2unix DOS2UNIX_GLOB= *.[ch] Makefile* @@ -35,31 +35,25 @@ OPTIONS_MULTI= OUTPUT OPTIONS_MULTI_OUTPUT= X11 OPENGL OPTIONS_DEFINE= OPTIMIZED_CFLAGS OPTIONS_DEFAULT= OPENGL X11 OPTIMIZED_CFLAGS +OPTIONS_SUB= yes + +OPENGL_LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg +OPENGL_USE= GL=yes + +X11_USE= XORG=xxf86dga + +BROKEN_powerpc= Does not install on powerpc: signal 2 -NO_STAGE= yes .include "${.CURDIR}/../quake-data/Makefile.include" .include -.if ${ARCH} == "powerpc" -BROKEN= Does not install on powerpc: signal 2 -.endif - .if ${PORT_OPTIONS:MOPENGL} -LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg -USE_GL= yes ALL_TARGET+= glx -PLIST_SUB+= GLX="" -.else -PLIST_SUB+= GLX="@comment " .endif .if ${PORT_OPTIONS:MX11} -USE_XORG= xxf86dga ALL_TARGET+= x11 -PLIST_SUB+= X11="" -.else -PLIST_SUB+= X11="@comment " .endif .if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} @@ -81,17 +75,15 @@ post-patch: ${WRKSRC}/embed_tcl.h do-install: -.for dir in ezquake qw - ${MKDIR} ${DATADIR}/${dir} - ${CP} -r ${WRKDIR}/${dir}/* ${DATADIR}/${dir} -.endfor + @${MKDIR} ${STAGEDIR}${DATADIR} + (cd ${WRKDIR} && ${COPYTREE_SHARE} "ezquake qw" ${STAGEDIR}${DATADIR}) .if ${PORT_OPTIONS:MOPENGL} ${INSTALL_PROGRAM} ${WRKSRC}/release/ezquake-gl.glx \ - ${PREFIX}/bin/ezquake-glx + ${STAGEDIR}${PREFIX}/bin/ezquake-glx .endif .if ${PORT_OPTIONS:MX11} ${INSTALL_PROGRAM} ${WRKSRC}/release/ezquake.x11 \ - ${PREFIX}/bin/ezquake-x11 + ${STAGEDIR}${PREFIX}/bin/ezquake-x11 .endif .include Modified: branches/2014Q2/games/ezquake/files/patch-Makefile ============================================================================== --- branches/2014Q2/games/ezquake/files/patch-Makefile Sun Apr 13 12:57:31 2014 (r351215) +++ branches/2014Q2/games/ezquake/files/patch-Makefile Sun Apr 13 13:03:49 2014 (r351216) @@ -1,5 +1,5 @@ ---- Makefile.orig 2008-04-27 17:51:52.000000000 -0300 -+++ Makefile 2008-04-29 22:27:42.000000000 -0300 +--- Makefile.orig 2014-04-13 13:48:18.000000000 +0200 ++++ Makefile 2014-04-13 13:49:38.000000000 +0200 @@ -6,7 +6,7 @@ # compilation tool and detection of targets/achitecture @@ -93,3 +93,12 @@ ifeq ($(OS),freebsd) X11BASE ?= /usr/X11R6 +@@ -149,7 +141,7 @@ + GLX_C_OBJS = $(addprefix $(GLX_DIR)/, $(addsuffix .o, $(GLX_C_FILES))) + GLX_S_OBJS = $(addprefix $(GLX_DIR)/, $(addsuffix .o, $(GLX_S_FILES))) + GLX_CFLAGS = $(CFLAGS) $(GLCFLAGS) +-GLX_LDFLAGS = $(LDFLAGS) -lGL -lXxf86dga -lXxf86vm ++GLX_LDFLAGS = $(LDFLAGS) -lGL -lXxf86dga -lXxf86vm -lX11 + + glx: _DIR = $(GLX_DIR) + glx: _OBJS = $(GLX_C_OBJS) $(GLX_S_OBJS) $(COMMON_LIBS) $(GL_LIBS) Modified: branches/2014Q2/games/ezquake/pkg-plist ============================================================================== --- branches/2014Q2/games/ezquake/pkg-plist Sun Apr 13 12:57:31 2014 (r351215) +++ branches/2014Q2/games/ezquake/pkg-plist Sun Apr 13 13:03:49 2014 (r351216) @@ -1,4 +1,4 @@ -%%GLX%%bin/ezquake-glx +%%OPENGL%%bin/ezquake-glx %%X11%%bin/ezquake-x11 %%DATADIR%%/ezquake/cfg/cams.cfg %%DATADIR%%/ezquake/cfg/cams.tcl