pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/quakeforge quakeforge: The existing workaround i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/53b22b809d7f
branches:  trunk
changeset: 397742:53b22b809d7f
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Jul 02 13:37:34 2019 +0000

description:
quakeforge: The existing workaround is causing duplicate symbol errors at
link-time so just cheat by using "static inline".

Also, don't hardcode the libGL version number, take advantage of symlinks
instead to make libGL load on NetBSD-current with native X.

Bump PKGREVISION.

I still can't really get this to run for more than a few seconds (except
qw-client, which I can't test ingame), it may be borked.

diffstat:

 games/quakeforge/Makefile                           |   4 +-
 games/quakeforge/distinfo                           |   6 +-
 games/quakeforge/patches/patch-ag                   |  11 ++++-
 games/quakeforge/patches/patch-include_QF_mathlib.h |  49 +++++++++-----------
 4 files changed, 38 insertions(+), 32 deletions(-)

diffs (136 lines):

diff -r cad544bd0959 -r 53b22b809d7f games/quakeforge/Makefile
--- a/games/quakeforge/Makefile Tue Jul 02 13:30:56 2019 +0000
+++ b/games/quakeforge/Makefile Tue Jul 02 13:37:34 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.36 2019/04/25 07:32:55 maya Exp $
+# $NetBSD: Makefile,v 1.37 2019/07/02 13:37:34 nia Exp $
 
 DISTNAME=              quakeforge-0.5.5
-PKGREVISION=           17
+PKGREVISION=           18
 CATEGORIES=            games
 MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=quake/}
 
diff -r cad544bd0959 -r 53b22b809d7f games/quakeforge/distinfo
--- a/games/quakeforge/distinfo Tue Jul 02 13:30:56 2019 +0000
+++ b/games/quakeforge/distinfo Tue Jul 02 13:37:34 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2017/02/18 14:01:22 joerg Exp $
+$NetBSD: distinfo,v 1.14 2019/07/02 13:37:34 nia Exp $
 
 SHA1 (quakeforge-0.5.5.tar.gz) = 3ceb229b3d777b6c5e0cb1530b4547b20737f402
 RMD160 (quakeforge-0.5.5.tar.gz) = d22b29498e950bfdf96169bafee6409fca1a8e11
@@ -10,7 +10,7 @@
 SHA1 (patch-ad) = a6d824831a5444f92c7b3ab396ea31ef52503dea
 SHA1 (patch-ae) = aa0431df430f4fc08da32550f7fc5a156096bb43
 SHA1 (patch-af) = 15c725bc5c99f558518a1b7ebb219b8b20b19926
-SHA1 (patch-ag) = a039a25dce8e9a625f461730c70b46c510d4aac3
+SHA1 (patch-ag) = 41b8acf4e012646d5a15e35540275b5584b2603d
 SHA1 (patch-ah) = b8da2ec1d52c89535d949445871e85872d9a135f
 SHA1 (patch-ai) = 67ef987cfa9dc50485a5a44341a7576e0e99d5c0
 SHA1 (patch-aj) = 5b28f79846fd2dff62004ff52bfc0dad33a91a67
@@ -28,7 +28,7 @@
 SHA1 (patch-av) = 8ba99fa13916ab9efd881a89760307fc5863e9d5
 SHA1 (patch-aw) = d02d3a0cfbb47ad2f73e3ee523aed2964a8fcbae
 SHA1 (patch-include_QF_llist.h) = 34b69e99ca69d4564d7100b0e3bcd8d8a024ec94
-SHA1 (patch-include_QF_mathlib.h) = d867387c23ebfc2542711af655cb27cb3dab261d
+SHA1 (patch-include_QF_mathlib.h) = 9f8ff732bbabdc64bba7354c581dc42b4f242330
 SHA1 (patch-include_r__dynamic.h) = e37cd1d4e242db48793c29c2b78aa78eb14d138d
 SHA1 (patch-include_r__local.h) = 7bb3b46ea3835489a20609739bd7a8dc79b36c96
 SHA1 (patch-libs_util_llist.c) = d41fdac88ac1c9dbccd1bffd512f7e34ae381860
diff -r cad544bd0959 -r 53b22b809d7f games/quakeforge/patches/patch-ag
--- a/games/quakeforge/patches/patch-ag Tue Jul 02 13:30:56 2019 +0000
+++ b/games/quakeforge/patches/patch-ag Tue Jul 02 13:37:34 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ag,v 1.2 2008/01/23 04:59:35 tnn Exp $
+$NetBSD: patch-ag,v 1.3 2019/07/02 13:37:34 nia Exp $
 
 --- configure.orig     2004-05-02 20:53:17.000000000 +0000
 +++ configure
@@ -108,6 +108,15 @@
    ;
    return 0;
  }
+@@ -31107,7 +31107,7 @@ if test "x$gl_driver" = xauto -o "x$gl_d
+       if test "$SYSTYPE" = WIN32; then
+               gl_driver="OPENGL32.DLL"
+       else
+-              gl_driver="libGL.so.1"
++              gl_driver="libGL.so"
+       fi
+ fi
+ 
 @@ -32305,6 +32305,7 @@ fi
  
  if test "x$BUILD_SW" = xyes; then
diff -r cad544bd0959 -r 53b22b809d7f games/quakeforge/patches/patch-include_QF_mathlib.h
--- a/games/quakeforge/patches/patch-include_QF_mathlib.h       Tue Jul 02 13:30:56 2019 +0000
+++ b/games/quakeforge/patches/patch-include_QF_mathlib.h       Tue Jul 02 13:37:34 2019 +0000
@@ -1,44 +1,41 @@
-$NetBSD: patch-include_QF_mathlib.h,v 1.3 2013/06/23 19:54:42 dholland Exp $
+$NetBSD: patch-include_QF_mathlib.h,v 1.4 2019/07/02 13:37:34 nia Exp $
 
---- include/QF/mathlib.h.orig  2013-03-28 15:01:01.000000000 +0000
+--- include/QF/mathlib.h.orig  2004-04-07 18:01:45.000000000 +0000
 +++ include/QF/mathlib.h
-@@ -255,11 +255,12 @@ void QuatMult (const quat_t v1, const qu
+@@ -255,12 +255,8 @@ void QuatMult (const quat_t v1, const qu
        (PlaneDist (point, plane) - (plane)->dist)
  
  extern mplane_t * const frustum;
 -extern inline qboolean R_CullBox (const vec3_t mins, const vec3_t maxs);
 -extern inline qboolean R_CullSphere (const vec3_t origin, const float radius);
 -extern inline float VectorNormalize (vec3_t v);       // returns vector length
- #ifndef IMPLEMENT_R_Cull
-+#if defined(__clang__) || !defined(__GNUC__) || defined(__GNC_STDC_INLINE__)
-+inline
-+#else
- extern inline
-+#endif
- #endif
+-#ifndef IMPLEMENT_R_Cull
+-extern inline
+-#endif
++
++static inline
  qboolean
  R_CullBox (const vec3_t mins, const vec3_t maxs)
-@@ -273,7 +274,11 @@ R_CullBox (const vec3_t mins, const vec3
+ {
+@@ -272,9 +268,7 @@ R_CullBox (const vec3_t mins, const vec3
+       return false;
  }
  
- #ifndef IMPLEMENT_R_Cull
-+#if defined(__clang__) || !defined(__GNUC__) || defined(__GNC_STDC_INLINE__)
-+inline
-+#else
- extern inline
-+#endif
- #endif
+-#ifndef IMPLEMENT_R_Cull
+-extern inline
+-#endif
++static inline
  qboolean
  R_CullSphere (const vec3_t origin, const float radius)
-@@ -291,7 +296,11 @@ R_CullSphere (const vec3_t origin, const
+ {
+@@ -290,9 +284,7 @@ R_CullSphere (const vec3_t origin, const
+       return false;
  }
  
- #ifndef IMPLEMENT_VectorNormalize
-+#if defined(__clang__) || !defined(__GNUC__) || defined(__GNC_STDC_INLINE__)
-+inline
-+#else
- extern inline
-+#endif
- #endif
+-#ifndef IMPLEMENT_VectorNormalize
+-extern inline
+-#endif
++static inline
  float
  VectorNormalize (vec3_t v)
+ {



Home | Main Index | Thread Index | Old Index