aboutsummaryrefslogtreecommitdiffstats
path: root/games/doom
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-11-04 16:37:24 +0800
committermiwi <miwi@FreeBSD.org>2009-11-04 16:37:24 +0800
commit2f681d63aadf7289b1f32399a5c74cfefd9a748f (patch)
tree9543cf3a1057443bd1e1cda4f128db670cc86d0d /games/doom
parentdd7629aec8e044fa7ef50fc7473969340d3f3655 (diff)
downloadfreebsd-ports-gnome-2f681d63aadf7289b1f32399a5c74cfefd9a748f.tar.gz
freebsd-ports-gnome-2f681d63aadf7289b1f32399a5c74cfefd9a748f.tar.zst
freebsd-ports-gnome-2f681d63aadf7289b1f32399a5c74cfefd9a748f.zip
- Remove some patches as I added them as REINPLACE_
- Rename the patches to make them less confusing - Add a hack to replace all %%LOCALBASE%% to ${LOCALBASE} PR: 140233 Submitted by: Chris Petrik <chris@officialunix.com> (maintainer)
Diffstat (limited to 'games/doom')
-rw-r--r--games/doom/Makefile20
-rw-r--r--games/doom/files/patch-Makefile (renamed from games/doom/files/patch-ab)4
-rw-r--r--games/doom/files/patch-aa11
-rw-r--r--games/doom/files/patch-ad11
-rw-r--r--games/doom/files/patch-af11
-rw-r--r--games/doom/files/patch-ag14
-rw-r--r--games/doom/files/patch-ah22
-rw-r--r--games/doom/files/patch-i_net.c (renamed from games/doom/files/patch-ae)0
-rw-r--r--games/doom/files/patch-i_sound.c (renamed from games/doom/files/patch-ac)0
-rw-r--r--games/doom/files/patch-m_bbox.c (renamed from games/doom/files/patch-ai)0
-rw-r--r--games/doom/files/patch-sndserv-Makefile (renamed from games/doom/files/patch-aj)0
11 files changed, 21 insertions, 72 deletions
diff --git a/games/doom/Makefile b/games/doom/Makefile
index 0ca109225432..73572914689e 100644
--- a/games/doom/Makefile
+++ b/games/doom/Makefile
@@ -7,7 +7,7 @@
PORTNAME= doom
PORTVERSION= 1.10
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_IDSOFTWARE:S|$|source/|}
DISTNAME= doomsrc
@@ -30,6 +30,24 @@ post-extract:
@cd ${WRKDIR} && ${TAR} xzf linuxdoom-1.10.src.tgz && ${TAR} xzf sndserv.tgz
post-patch:
+ ${REINPLACE_CMD} 's|<linux/soundcard.h>|<sys/soundcard.h>|g'\
+ ${WRKSRC}/sndserv/linux.c \
+ ${WRKSRC}/linuxdoom-1.10/i_sound.c
+ ${REINPLACE_CMD} 's|<errnos.h>|<errno.h>|g' \
+ ${WRKSRC}/linuxdoom-1.10/i_video.c
+ ${REINPLACE_CMD} 's|#include <alloca.h>|//#include <alloca.h>|g'\
+ ${WRKSRC}/linuxdoom-1.10/r_data.c
+ ${REINPLACE_CMD} 's|#include <alloca.h>|//#include <alloca.h>|g'\
+ ${WRKSRC}/linuxdoom-1.10/w_wad.c
+ ${REINPLACE_CMD} 's|<malloc.c>|<stdlib.h>|g'\
+ ${WRKSRC}/linuxdoom-1.10/w_wad.c \
+ ${WRKSRC}/sndserv/soundsrv.c \
+ ${WRKSRC}/sndserv/wadread.c
+ ${REINPLACE_CMD} 's|<values.h>|<limits.h>|g'\
+ ${WRKSRC}/linuxdoom-1.10/m_bbox.h \
+ ${WRKSRC}/linuxdoom-1.10/doomtype.h
+ ${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g'\
+ ${WRKSRC}/linuxdoom-1.10/Makefile
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} \
-E -e 's|#include +<malloc.h>|#include <stdlib.h>|g'
diff --git a/games/doom/files/patch-ab b/games/doom/files/patch-Makefile
index 65a772bbd986..33856f611724 100644
--- a/games/doom/files/patch-ab
+++ b/games/doom/files/patch-Makefile
@@ -11,8 +11,8 @@
-LDFLAGS=-L/usr/X11R6/lib
-LIBS=-lXext -lX11 -lnsl -lm
+CFLAGS?= -O
-+CFLAGS+=-g -I${LOCALBASE}/include -Wall -DNORMALUNIX -DSNDSERV -DSNDSRV # -DUSEASM
-+LDFLAGS=-L${LOCALBASE}/lib
++CFLAGS+=-g -I%%LOCALBASE%%/include -Wall -DNORMALUNIX -DSNDSERV -DSNDSRV # -DUSEASM
++LDFLAGS=-L%%LOCALBASE%%/lib
+LIBS=-lXext -lX11 -lm
# subdirectory for objects
diff --git a/games/doom/files/patch-aa b/games/doom/files/patch-aa
deleted file mode 100644
index 3ebdd1f1de1e..000000000000
--- a/games/doom/files/patch-aa
+++ /dev/null
@@ -1,11 +0,0 @@
---- sndserv/linux.c~ Sun Jan 26 08:45:01 1997
-+++ sndserv/linux.c Mon Dec 14 21:15:21 1998
-@@ -40,7 +40,7 @@
- #include <fcntl.h>
- #include <unistd.h>
-
--#include <linux/soundcard.h>
-+#include <sys/soundcard.h>
-
- #include "soundsrv.h"
-
diff --git a/games/doom/files/patch-ad b/games/doom/files/patch-ad
deleted file mode 100644
index 7fa020ce9223..000000000000
--- a/games/doom/files/patch-ad
+++ /dev/null
@@ -1,11 +0,0 @@
---- linuxdoom-1.10/i_video.c~ Mon Dec 22 21:39:01 1997
-+++ linuxdoom-1.10/i_video.c Mon Dec 14 03:24:45 1998
-@@ -46,7 +46,7 @@
- #include <sys/socket.h>
-
- #include <netinet/in.h>
--#include <errnos.h>
-+#include <errno.h>
- #include <signal.h>
-
- #include "doomstat.h"
diff --git a/games/doom/files/patch-af b/games/doom/files/patch-af
deleted file mode 100644
index c1e24c29b060..000000000000
--- a/games/doom/files/patch-af
+++ /dev/null
@@ -1,11 +0,0 @@
---- linuxdoom-1.10/r_data.c~ Mon Dec 22 21:57:47 1997
-+++ linuxdoom-1.10/r_data.c Mon Dec 14 03:27:49 1998
-@@ -42,7 +42,7 @@
- #include "r_sky.h"
-
- #ifdef LINUX
--#include <alloca.h>
-+//#include <alloca.h>
- #endif
-
-
diff --git a/games/doom/files/patch-ag b/games/doom/files/patch-ag
deleted file mode 100644
index a4e598ff2df6..000000000000
--- a/games/doom/files/patch-ag
+++ /dev/null
@@ -1,14 +0,0 @@
---- linuxdoom-1.10/w_wad.c~ Mon Dec 22 22:05:36 1997
-+++ linuxdoom-1.10/w_wad.c Mon Dec 14 03:29:18 1998
-@@ -32,9 +32,9 @@
- #include <string.h>
- #include <unistd.h>
--#include <malloc.h>
-+#include <stdlib.h>
- #include <fcntl.h>
- #include <sys/stat.h>
--#include <alloca.h>
-+//#include <alloca.h>
- #define O_BINARY 0
- #endif
-
diff --git a/games/doom/files/patch-ah b/games/doom/files/patch-ah
deleted file mode 100644
index 79e10190498d..000000000000
--- a/games/doom/files/patch-ah
+++ /dev/null
@@ -1,22 +0,0 @@
---- linuxdoom-1.10/m_bbox.h~ Mon Dec 22 21:12:16 1997
-+++ linuxdoom-1.10/m_bbox.h Mon Dec 14 03:31:32 1998
-@@ -23,7 +23,7 @@
- #ifndef __M_BBOX__
- #define __M_BBOX__
-
--#include <values.h>
-+#include <limits.h>
-
- #include "m_fixed.h"
-
---- linuxdoom-1.10/doomtype.h~ Mon Dec 22 21:05:27 1997
-+++ linuxdoom-1.10/doomtype.h Mon Dec 14 03:31:14 1998
-@@ -39,7 +39,7 @@
-
- // Predefined with some OS.
- #ifdef LINUX
--#include <values.h>
-+#include <limits.h>
- #else
- #define MAXCHAR ((char)0x7f)
- #define MAXSHORT ((short)0x7fff)
diff --git a/games/doom/files/patch-ae b/games/doom/files/patch-i_net.c
index 12f8b0b8b6f0..12f8b0b8b6f0 100644
--- a/games/doom/files/patch-ae
+++ b/games/doom/files/patch-i_net.c
diff --git a/games/doom/files/patch-ac b/games/doom/files/patch-i_sound.c
index e89f5d175ae1..e89f5d175ae1 100644
--- a/games/doom/files/patch-ac
+++ b/games/doom/files/patch-i_sound.c
diff --git a/games/doom/files/patch-ai b/games/doom/files/patch-m_bbox.c
index f42019167834..f42019167834 100644
--- a/games/doom/files/patch-ai
+++ b/games/doom/files/patch-m_bbox.c
diff --git a/games/doom/files/patch-aj b/games/doom/files/patch-sndserv-Makefile
index 180c311c18e9..180c311c18e9 100644
--- a/games/doom/files/patch-aj
+++ b/games/doom/files/patch-sndserv-Makefile