aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-06-19 18:23:25 +0800
committermiwi <miwi@FreeBSD.org>2007-06-19 18:23:25 +0800
commitff1f9a31dcae49563cb9689aa49f8bf50cb43af0 (patch)
tree900df4c510c9c269681a45ee2552b93479c6c265 /games
parentf8736e83199c0f3d42563d6c2eff731567bfe8a1 (diff)
downloadfreebsd-ports-gnome-ff1f9a31dcae49563cb9689aa49f8bf50cb43af0.tar.gz
freebsd-ports-gnome-ff1f9a31dcae49563cb9689aa49f8bf50cb43af0.tar.zst
freebsd-ports-gnome-ff1f9a31dcae49563cb9689aa49f8bf50cb43af0.zip
- Fix build with gcc4
- Support SUB_FILES PR: 113768 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'games')
-rw-r--r--games/exult/Makefile14
-rw-r--r--games/exult/files/patch-audio__midi_drivers__fmopldrv.h11
-rw-r--r--games/exult/files/patch-hash_utils.h20
-rw-r--r--games/exult/files/patch-mouse.h11
-rw-r--r--games/exult/files/patch-usecode__ucxt__include__ucfunc.h11
-rw-r--r--games/exult/files/pkg-message.in (renamed from games/exult/pkg-message)0
6 files changed, 59 insertions, 8 deletions
diff --git a/games/exult/Makefile b/games/exult/Makefile
index 3c41a2bc0edf..78d1c10fcd76 100644
--- a/games/exult/Makefile
+++ b/games/exult/Makefile
@@ -23,27 +23,25 @@ USE_SDL= sdl mixer
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
MAN1= expack.1 ipack.1 shp2pcx.1 splitshp.1 textpack.1
MAN6= exult.6
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 700042
-BROKEN= Broken with gcc 4.2
-.endif
+SUB_FILES= pkg-message
post-patch:
@${REINPLACE_CMD} -e 's|desktop||' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/configure
post-install:
-.ifndef (NOPORTDOCS)
+.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in FAQ NEWS README
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
- @${SED} -e 's|%%DOCSDIR%%|${DOCSDIR}|' <${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/games/exult/files/patch-audio__midi_drivers__fmopldrv.h b/games/exult/files/patch-audio__midi_drivers__fmopldrv.h
new file mode 100644
index 000000000000..8eaa3f98e4b4
--- /dev/null
+++ b/games/exult/files/patch-audio__midi_drivers__fmopldrv.h
@@ -0,0 +1,11 @@
+--- audio/midi_drivers/fmopldrv.h.orig Wed Aug 7 03:10:31 2002
++++ audio/midi_drivers/fmopldrv.h Thu Jun 14 01:30:28 2007
+@@ -76,7 +76,7 @@
+ /* output a packed midi command to the midi stream
+ * valid only if mode is MO_SIMPLE
+ */
+- void OplDriver::send(uint32 b);
++ void send(uint32 b);
+
+ /* retrieve a string representation of an error code */
+ static const char *get_error_name(int error_code);
diff --git a/games/exult/files/patch-hash_utils.h b/games/exult/files/patch-hash_utils.h
new file mode 100644
index 000000000000..d71fc657ecad
--- /dev/null
+++ b/games/exult/files/patch-hash_utils.h
@@ -0,0 +1,20 @@
+--- hash_utils.h.orig Mon Sep 1 02:32:24 2003
++++ hash_utils.h Thu Jun 14 01:07:42 2007
+@@ -26,7 +26,7 @@
+ #else
+ #if HAVE_EXT_HASH_MAP
+ # include <ext/hash_map>
+-# if (defined(__GNUC__) && (__GNUC__ == 3) && ( __GNUC_MINOR__ > 0))
++# if (defined(__GNUC__) && ((__GNUC__ == 3) && ( __GNUC_MINOR__ > 0) || (__GNUC__ >= 4)))
+ using __gnu_cxx::hash_map;
+ # else
+ using std::hash_map;
+@@ -44,7 +44,7 @@
+ #else
+ #if HAVE_EXT_HASH_SET
+ # include <ext/hash_set>
+-# if (defined(__GNUC__) && (__GNUC__ == 3) && ( __GNUC_MINOR__ > 0))
++# if (defined(__GNUC__) && ((__GNUC__ == 3) && ( __GNUC_MINOR__ > 0) || (__GNUC__ >= 4)))
+ using __gnu_cxx::hash_set;
+ # else
+ using std::hash_set;
diff --git a/games/exult/files/patch-mouse.h b/games/exult/files/patch-mouse.h
new file mode 100644
index 000000000000..5e9a0924bbd9
--- /dev/null
+++ b/games/exult/files/patch-mouse.h
@@ -0,0 +1,11 @@
+--- mouse.h.orig Mon Sep 1 02:32:24 2003
++++ mouse.h Thu Jun 14 01:28:55 2007
+@@ -27,6 +27,8 @@
+ #include "vgafile.h"
+ #include "glshape.h"
+
++class Game_window;
++
+ /*
+ * Handle custom mouse pointers.
+ */
diff --git a/games/exult/files/patch-usecode__ucxt__include__ucfunc.h b/games/exult/files/patch-usecode__ucxt__include__ucfunc.h
new file mode 100644
index 000000000000..60a81db4d513
--- /dev/null
+++ b/games/exult/files/patch-usecode__ucxt__include__ucfunc.h
@@ -0,0 +1,11 @@
+--- usecode/ucxt/include/ucfunc.h.orig Mon Sep 1 02:32:28 2003
++++ usecode/ucxt/include/ucfunc.h Thu Jun 14 01:41:17 2007
+@@ -206,7 +206,7 @@
+ bool output_list(std::ostream &o, unsigned int funcno, const UCOptions &options);
+
+ bool output_ucs(std::ostream &o, const FuncMap &funcmap, const std::map<unsigned int, std::string> &intrinsics, const UCOptions &options);
+- std::ostream &UCFunc::output_ucs_funcname(std::ostream &o, const FuncMap &funcmap);
++ std::ostream &output_ucs_funcname(std::ostream &o, const FuncMap &funcmap);
+ std::ostream &output_ucs_funcname(std::ostream &o, const FuncMap &funcmap,
+ unsigned int funcid,
+ unsigned int numargs, bool return_var);
diff --git a/games/exult/pkg-message b/games/exult/files/pkg-message.in
index d5bbe7da09a2..d5bbe7da09a2 100644
--- a/games/exult/pkg-message
+++ b/games/exult/files/pkg-message.in