Tom Murphy <open...@pertho.net> wrote:
>    Just tested this and it works well. Thanks for this addition!
> I can ping servers and gather their info and join them with ezquake.
> 
> Only thing wrong is a missing $OpenBSD$ RCS tag at the top of 
> patches/patch-EX_browser_sources.c but otherwise works fine.
> 
>   Thanks,
>   Tom

new diff, with the patch made from "make update-patches", I don't remember why
but last time that command wasn't producing the patch so I made it manually.

Index: Makefile
===================================================================
RCS file: /cvs/ports/games/ezquake/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- Makefile    15 Sep 2018 18:54:54 -0000      1.4
+++ Makefile    17 Oct 2018 08:38:23 -0000
@@ -5,7 +5,7 @@ COMMENT =       modern QuakeWorld client
 DISTNAME =     ezquake-source-${V}
 PKGNAME =      ezquake-${V}
 CATEGORIES =   games
-REVISION =     1
+REVISION =     2
 
 HOMEPAGE =     https://ezquake.github.io/
 MAINTAINER =   Tom Murphy <open...@pertho.net>
@@ -32,7 +32,16 @@ WRKDIST =    ${WRKDIR}
 
 NO_TEST =      Yes
 
+GAMEDIR =      ${PREFIX}/share/ezquake
+SUBST_VARS +=  GAMEDIR
+
+do-configure:
+       ${SUBST_CMD} ${WRKSRC}/EX_browser_sources.c
+
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/ezquake ${PREFIX}/bin
+       ${INSTALL_PROGRAM}  ${WRKSRC}/ezquake ${PREFIX}/bin
+       ${INSTALL_DATA_DIR} ${GAMEDIR}
+       @cp ${WRKSRC}/misc/sb/*.txt ${GAMEDIR}/
+       #${INSTALL_DATA}     ${WRKSRC}/misc/sb/sources.txt ${GAMEDIR}
 
 .include <bsd.port.mk>
Index: patches/patch-EX_browser_sources_c
===================================================================
RCS file: patches/patch-EX_browser_sources_c
diff -N patches/patch-EX_browser_sources_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-EX_browser_sources_c  17 Oct 2018 08:38:23 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+Index: EX_browser_sources.c
+--- EX_browser_sources.c.orig
++++ EX_browser_sources.c
+@@ -36,7 +36,7 @@ along with this program.  If not, see <http://www.gnu.
+ 
+ #include "EX_browser.h"
+ 
+-#define SOURCES_LIST_FILENAME "sb/sources.txt"
++#define SOURCES_LIST_FILENAME "${GAMEDIR}/sources.txt"
+ 
+ // Used by curl to read server lists from the web
+ struct curl_buf
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/games/ezquake/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST   4 Sep 2018 12:53:16 -0000       1.2
+++ pkg/PLIST   17 Oct 2018 08:38:23 -0000
@@ -1,3 +1,14 @@
 @comment $OpenBSD: PLIST,v 1.2 2018/09/04 12:53:16 espie Exp $
 @bin bin/ezquake
 share/doc/pkg-readmes/${PKGSTEM}
+share/ezquake/
+share/ezquake/au-sv.txt
+share/ezquake/ctf.txt
+share/ezquake/eu-4on4.txt
+share/ezquake/eu-sv.txt
+share/ezquake/global.txt
+share/ezquake/na-sv.txt
+share/ezquake/qizmo.txt
+share/ezquake/sa-sv.txt
+share/ezquake/sources.txt
+share/ezquake/tf.txt

Reply via email to