Hi,

  Here is an update for games/mvdsv to upgrade it to 1.11.
According to the changelog the version for 1.10 was tagged wrong.

  I had to make a few changes for 1.11 to compile:

  1. The DISTFILE changed name slightly (as did the location)
  2. The source code contains cmakelists.txt instead of the
     case-sensitive CMakeLists.txt which is needed so there's
     a command that renames it before configure.
  3. The files use MSDOS line endings so I had to add FIX_CRLF_FILES
     for the source code patches to apply cleanly

  Compiles and runs fine here. Tested with a quakeworld client.

Thanks,
Tom


Index: Makefile
===================================================================
RCS file: /cvs/ports/games/mvdsv/Makefile,v
diff -u -p -u -p -r1.12 Makefile
--- Makefile    26 Feb 2025 14:05:45 -0000      1.12
+++ Makefile    14 Sep 2025 14:02:23 -0000
@@ -2,9 +2,9 @@ COMMENT =       QuakeWorld server
 
 CATEGORIES =   games
 
-V =            1.10
+V =            1.11
 DISTNAME =     mvdsv-$V
-DISTFILES =    mvdsv-$V{mvdsv-source-with-submodules}.zip
+DISTFILES =    mvdsv{mvdsv-source-with-submodules}-$V.zip
 EXTRACT_CASES =        *.zip) ${UNZIP} -Laq ${FULLDISTDIR}/$$archive -d 
${WRKSRC};;
 DIST_TUPLE +=  github id-software Quake \
                        bf4ac424ce754894ac8f1dae6a3981954bc9852d Quake
@@ -15,7 +15,7 @@ PERMIT_PACKAGE =      Yes
 MAINTAINER =   Tom Murphy <[email protected]>
 
 HOMEPAGE =     https://mvdsv.quake.se/
-SITES =                https://github.com/QW-Group/mvdsv/releases/download/v$V/
+SITES =                https://github.com/QW-Group/mvdsv/releases/download/$V/
 
 WANTLIB += c curl m pcre pthread
 
@@ -26,7 +26,12 @@ LIB_DEPENDS =        devel/pcre \
 
 NO_TEST =      Yes
 
+FIX_CRLF_FILES =       src/server.h src/sv_ccmds.c
+
 SAMPLES_DIR =  ${PREFIX}/share/examples/mvdsv
+
+pre-configure:
+       mv ${WRKSRC}/cmakelists.txt ${WRKSRC}/CMakeLists.txt
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKBUILD}/mvdsv ${PREFIX}/bin
Index: distinfo
===================================================================
RCS file: /cvs/ports/games/mvdsv/distinfo,v
diff -u -p -u -p -r1.7 distinfo
--- distinfo    26 Feb 2025 14:05:45 -0000      1.7
+++ distinfo    14 Sep 2025 14:02:23 -0000
@@ -1,4 +1,4 @@
 SHA256 (id-software-Quake-bf4ac424ce754894ac8f1dae6a3981954bc9852d.tar.gz) = 
+5joyZdAEj8/rIMME4dYTsH2hNuJCMv0K3GH0G05kBM=
-SHA256 (mvdsv-1.10.zip) = pjp4Flp1+9ODCHMEq1RQxW0PlL8xxnvNKBDYfpuzXLs=
+SHA256 (mvdsv-1.11.zip) = oTEtEJWH/cYtY3OzujIZJnMNCN6CrWqfQ2DKgbk5jjE=
 SIZE (id-software-Quake-bf4ac424ce754894ac8f1dae6a3981954bc9852d.tar.gz) = 
2958901
-SIZE (mvdsv-1.10.zip) = 617252
+SIZE (mvdsv-1.11.zip) = 637189

Reply via email to