Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Apr 2014 13:03:50 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
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
Message-ID:  <201404131303.s3DD3o7b043302@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.pre.mk>
 
-.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 <bsd.port.post.mk>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404131303.s3DD3o7b043302>