pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/wm/coma wm/coma: fix building on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b0c75dc31fd4
branches:  trunk
changeset: 390447:b0c75dc31fd4
user:      vins <vins%pkgsrc.org@localhost>
date:      Mon Dec 19 13:57:34 2022 +0000

description:
wm/coma: fix building on SunOS.

diffstat:

 wm/coma/Makefile             |  12 +++++++++++-
 wm/coma/distinfo             |   3 ++-
 wm/coma/patches/patch-coma.c |  17 +++++++++++++++++
 3 files changed, 30 insertions(+), 2 deletions(-)

diffs (58 lines):

diff -r 42e29f72a8b3 -r b0c75dc31fd4 wm/coma/Makefile
--- a/wm/coma/Makefile  Mon Dec 19 13:42:44 2022 +0000
+++ b/wm/coma/Makefile  Mon Dec 19 13:57:34 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2022/12/19 13:01:45 vins Exp $
+# $NetBSD: Makefile,v 1.11 2022/12/19 13:57:34 vins Exp $
 
 DISTNAME=      coma-1.1
 PKGREVISION=   2
@@ -18,6 +18,16 @@
 REPLACE_FILES.sh+=     scripts/coma-cmd
 REPLACE_FILES.sh+=     scripts/coma-remote
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+SUBST_CLASSES+=                ints
+SUBST_MESSAGE.ints=    SunOS stdint(3) doesn't provide `u_int*' typedefs
+SUBST_STAGE.ints=      pre-configure
+SUBST_FILES.ints+=     client.c coma.h frame.c wm.c
+SUBST_SED.ints=                -e 's|u_int|uint|g'
+.endif
+
 LDFLAGS+=      ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libX11}/lib
 LDFLAGS+=      -L${BUILDLINK_PREFIX.libX11}/lib -lX11 -lXft
 
diff -r 42e29f72a8b3 -r b0c75dc31fd4 wm/coma/distinfo
--- a/wm/coma/distinfo  Mon Dec 19 13:42:44 2022 +0000
+++ b/wm/coma/distinfo  Mon Dec 19 13:57:34 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.7 2022/12/19 13:01:45 vins Exp $
+$NetBSD: distinfo,v 1.8 2022/12/19 13:57:34 vins Exp $
 
 BLAKE2s (coma-1.1.tar.gz) = b5ff281480166bf01385e042e0a70f47556bcad93cb9775713a58e609b2f4023
 SHA512 (coma-1.1.tar.gz) = eb0e75a95d3ba0987851860eba19f432236de1949ae0eecd5d8141153b29179c128faa212a0a79e09123ad8b5f8b1c53de01ad08746f2605e182784605c73bd5
 Size (coma-1.1.tar.gz) = 16467 bytes
+SHA1 (patch-coma.c) = 0d5c6fc2a983d8385c144b2464489b00e38b849c
diff -r 42e29f72a8b3 -r b0c75dc31fd4 wm/coma/patches/patch-coma.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/coma/patches/patch-coma.c      Mon Dec 19 13:57:34 2022 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-coma.c,v 1.1 2022/12/19 13:57:34 vins Exp $
+
+Portability fix for SunOS.
+
+--- coma.c.orig        2019-08-21 12:39:43.000000000 +0000
++++ coma.c
+@@ -29,6 +29,10 @@
+ 
+ #include "coma.h"
+ 
++#ifdef __sun
++#define WAIT_ANY        (-1)
++#endif
++
+ static void   coma_signal(int);
+ 
+ char                  myhost[256];



Home | Main Index | Thread Index | Old Index