Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Dec 2024 19:57:45 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: d412e6378db5 - main - games/prboom: Refactor
Message-ID:  <202412301957.4BUJvjnm026886@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d412e6378db598159b35cdf3c9112234bf608f0b

commit d412e6378db598159b35cdf3c9112234bf608f0b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-12-30 07:14:38 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-12-30 19:57:26 +0000

    games/prboom: Refactor
    
    - Mark DEPRECATED as the last release was in 2008. There is a newer fork
      in the tree games/prboom-plus.
    - Remove LIB_DEPENDS to smpeg as it was removed and there is no src
      pertaining to smpeg in the src tree
    - Set EXPIRATION_DATE 2025-01-29
    - Pet port{clippy|fmt}
    - Refresh patches
    
    Approved by:    portmgr (blanket)
---
 games/prboom/Makefile                              | 25 +++++++++++-----------
 games/prboom/files/patch-Makefile.in               |  6 +++---
 games/prboom/files/patch-configure                 | 10 ++++-----
 ...patch-src-Makefile.in => patch-src_Makefile.in} | 12 +++++------
 .../{patch-i_sshot.c => patch-src_SDL_i__sshot.c}  | 10 ++++-----
 5 files changed, 31 insertions(+), 32 deletions(-)

diff --git a/games/prboom/Makefile b/games/prboom/Makefile
index 9ffe885098a1..54d70ba993d3 100644
--- a/games/prboom/Makefile
+++ b/games/prboom/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	prboom
-PORTVERSION=	2.5.0
-PORTREVISION=	14
+DISTVERSION=	2.5.0
+PORTREVISION=	15
 CATEGORIES=	games
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}%20stable/${PORTVERSION}
 
@@ -10,29 +10,28 @@ WWW=		https://prboom.sourceforge.net/
 
 LICENSE=	GPLv2
 
-LIB_DEPENDS=	libsmpeg.so:multimedia/smpeg \
-		libpng.so:graphics/png
+DEPRECATED=	Unmaintained, use games/prboom-plus instead
+EXPIRATION_DATE=	2025-01-30
 
-USES=		gmake sdl
+LIB_DEPENDS=	libpng.so:graphics/png
+
+USES=		gmake localbase:ldflags sdl
 USE_GL=		gl
 USE_SDL=	mixer net sdl
 
 GNU_CONFIGURE=	yes
-GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 CONFIGURE_ARGS=	--disable-i386-asm
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
-
-OPTIONS_DEFINE=	OPENGL
-OPTIONS_DEFAULT=	OPENGL
 
 DATADIR=	${LOCALBASE}/share/doom
+SUB_FILES=	pkg-message
+
 PLIST_SUB=	PORTVERSION=${PORTVERSION}
 
-SUB_FILES=	pkg-message
+OPTIONS_DEFINE=	OPENGL
+OPTIONS_DEFAULT=	OPENGL
 
-OPENGL_CONFIGURE_ENABLE=	gl
 OPENGL_USES=	gl
 OPENGL_USE=	GL=glu
+OPENGL_CONFIGURE_ENABLE=	gl
 
 .include <bsd.port.mk>
diff --git a/games/prboom/files/patch-Makefile.in b/games/prboom/files/patch-Makefile.in
index 3bb84a8dde19..c5739fb02d04 100644
--- a/games/prboom/files/patch-Makefile.in
+++ b/games/prboom/files/patch-Makefile.in
@@ -1,6 +1,6 @@
---- Makefile.in.orig	2008-11-09 14:22:16.000000000 -0500
-+++ Makefile.in	2008-11-18 18:16:54.000000000 -0500
-@@ -258,22 +258,8 @@
+--- Makefile.in.orig	2008-11-09 19:22:16 UTC
++++ Makefile.in
+@@ -258,22 +258,8 @@ install-docDATA: $(doc_DATA)
  prboom.spec: $(top_builddir)/config.status $(srcdir)/prboom.spec.in
  	cd $(top_builddir) && $(SHELL) ./config.status $@
  install-docDATA: $(doc_DATA)
diff --git a/games/prboom/files/patch-configure b/games/prboom/files/patch-configure
index d439ccb3f1d7..044b62584b1b 100644
--- a/games/prboom/files/patch-configure
+++ b/games/prboom/files/patch-configure
@@ -1,7 +1,7 @@
---- configure.orig	Sun Nov 19 12:45:22 2006
-+++ configure	Fri Oct 12 14:02:43 2007
-@@ -1913,9 +1913,9 @@
-   DOOMWADDIR="$withval"
+--- configure.orig	2008-11-09 19:22:17 UTC
++++ configure
+@@ -2422,9 +2422,9 @@ else
+   withval=$with_waddir; DOOMWADDIR="$withval"
  else
    if test "x$prefix" != xNONE; then
 -  DOOMWADDIR="$prefix/share/games/doom"
@@ -11,4 +11,4 @@
 +  DOOMWADDIR="$ac_default_prefix/share/doom"
  fi
  
- fi;
+ fi
diff --git a/games/prboom/files/patch-src-Makefile.in b/games/prboom/files/patch-src_Makefile.in
similarity index 67%
rename from games/prboom/files/patch-src-Makefile.in
rename to games/prboom/files/patch-src_Makefile.in
index 83da50fae5d4..508d791bc6f8 100644
--- a/games/prboom/files/patch-src-Makefile.in
+++ b/games/prboom/files/patch-src_Makefile.in
@@ -1,6 +1,6 @@
---- src/Makefile.in.orig	Sun Nov 19 12:45:21 2006
-+++ src/Makefile.in	Fri Oct 12 14:12:30 2007
-@@ -37,7 +37,7 @@
+--- src/Makefile.in.orig	2008-11-09 19:22:16 UTC
++++ src/Makefile.in
+@@ -31,7 +31,7 @@ INSTALL_HEADER = $(INSTALL_DATA)
  install_sh_PROGRAM = $(install_sh) -c
  install_sh_SCRIPT = $(install_sh) -c
  INSTALL_HEADER = $(INSTALL_DATA)
@@ -9,9 +9,9 @@
  NORMAL_INSTALL = :
  PRE_INSTALL = :
  POST_INSTALL = :
-@@ -248,7 +248,7 @@
- target_os = @target_os@
- target_vendor = @target_vendor@
+@@ -246,7 +246,7 @@ SUBDIRS = SDL POSIX MAC
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
  SUBDIRS = SDL POSIX MAC
 -gamesdir = $(prefix)/games
 +gamesdir = $(prefix)/bin
diff --git a/games/prboom/files/patch-i_sshot.c b/games/prboom/files/patch-src_SDL_i__sshot.c
similarity index 68%
rename from games/prboom/files/patch-i_sshot.c
rename to games/prboom/files/patch-src_SDL_i__sshot.c
index b4e7485740a8..34deeeb0d3f1 100644
--- a/games/prboom/files/patch-i_sshot.c
+++ b/games/prboom/files/patch-src_SDL_i__sshot.c
@@ -1,15 +1,15 @@
---- src/SDL/i_sshot.c.orig	2010-05-19 13:40:36.506099313 +0300
-+++ src/SDL/i_sshot.c	2010-05-19 13:41:50.837973800 +0300
-@@ -231,7 +231,7 @@
+--- src/SDL/i_sshot.c.orig	2008-10-18 13:32:29 UTC
++++ src/SDL/i_sshot.c
+@@ -231,7 +231,7 @@ int I_ScreenShot (const char *fname)
    if (fp)
    {
      png_struct *png_ptr = png_create_write_struct(
 -        PNG_LIBPNG_VER_STRING, png_error_ptr_NULL, error_fn, warning_fn);
 +        PNG_LIBPNG_VER_STRING, NULL, error_fn, warning_fn);
-
+ 
      if (png_ptr)
      {
-@@ -279,7 +279,7 @@
+@@ -279,7 +279,7 @@ int I_ScreenShot (const char *fname)
              break;
          }
        }



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