diff --git a/games/prboom/Makefile b/games/prboom/Makefile index 9ffe885098a1..54d70ba993d3 100644 --- a/games/prboom/Makefile +++ b/games/prboom/Makefile @@ -1,38 +1,37 @@ PORTNAME= prboom -PORTVERSION= 2.5.0 -PORTREVISION= 14 +DISTVERSION= 2.5.0 +PORTREVISION= 15 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20stable/${PORTVERSION} MAINTAINER= thiagohero501@gmail.com COMMENT= Multiplayer-capable and modified version of ID's classic DOOM game 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 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,25 +1,25 @@ ---- 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) - @$(NORMAL_INSTALL) - test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)" - @list='$(doc_DATA)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \ - $(docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \ - done uninstall-docDATA: - @$(NORMAL_UNINSTALL) - @list='$(doc_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \ - rm -f "$(DESTDIR)$(docdir)/$$f"; \ - done # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. 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,14 +1,14 @@ ---- 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" + DOOMWADDIR="$prefix/share/doom" else - DOOMWADDIR="$ac_default_prefix/share/games/doom" + 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,20 +1,20 @@ ---- 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) -transform = $(program_transform_name) +transform = 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 prboom_game_server_SOURCES = d_server.c protocol.h prboom_game_server_LDADD = POSIX/libposixdoom.a SDL/i_network.o @NET_LIBS@ @SDL_LIBS@ COMMON_SRC = \ 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,20 +1,20 @@ ---- 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; } } - png_destroy_write_struct(&png_ptr, png_infopp_NULL); + png_destroy_write_struct(&png_ptr, NULL); } fclose(fp); }