vtwm: Update to 5.5.0

Closes: https://trac.macports.org/ticket/38509
This commit is contained in:
Ryan Carsten Schmidt
2024-08-08 01:38:59 -05:00
parent d5a45d2fb6
commit c43541b4b2
4 changed files with 55 additions and 30 deletions
+20 -21
View File
@@ -1,22 +1,29 @@
PortSystem 1.0
name vtwm
version 5.4.6b
revision 1
version 5.5.0
revision 0
checksums rmd160 5bb43578091c1283212774fb4893d77b13b87fff \
sha256 448d7afd8d5a5fcfabf1b9c64b811cfa6bdbf8892c067fe01a141806ef61eaf4 \
size 1141664
categories x11
maintainers nomaintainer
description Twm with a virtual desktop and optional Motif-like features
long_description ${description}
platforms darwin
homepage ftp://ftp.visi.com/users/hawkeyd/X/
master_sites ${homepage}
checksums md5 e6116c0d7ca973488b39e8964e4153f0 \
sha1 5d983007a5b4b0be6796232efe97527b3af16429 \
rmd160 a72c51ad3a4e80b1d9ba9bdaa7ea3ea8a89aa3d0
use_xmkmf yes
patchfiles patch-gram.y
homepage http://www.vtwm.org
master_sites sourceforge:vtwm
depends_lib port:xorg-libX11 \
depends_build port:bison \
path:bin/pkg-config:pkgconfig
depends_lib port:flex \
port:esound \
port:libpng \
port:Xft2 \
port:xorg-libXinerama \
port:xorg-libXrandr \
port:xorg-libX11 \
port:xorg-libXt \
port:xorg-libsm \
port:xorg-libice \
@@ -24,13 +31,5 @@ depends_lib port:xorg-libX11 \
port:xpm \
port:xorg-libXmu
use_parallel_build no
build.target-append DESTDIR=${destroot} \
BINDIR=${prefix}/bin \
LIBDIR=${prefix}/lib \
MANDIR=${prefix}/share/man
destroot.destdir DESTDIR=${destroot} \
BINDIR=${prefix}/bin \
LIBDIR=${prefix}/lib \
MANDIR=${prefix}/share/man
patchfiles int.patch \
time.patch
+20
View File
@@ -0,0 +1,20 @@
Fix:
error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
https://sourceforge.net/p/vtwm/discussion/936866/thread/4a1d110e12/
--- add_window.c.orig 2018-04-21 00:39:31.000000000 -0500
+++ add_window.c 2024-08-08 01:33:01.000000000 -0500
@@ -457,9 +457,9 @@
if (Scr->StormPositioning && HandlingEvents == TRUE &&
!(tmp_win->hints.flags & USPosition) && (tmp_win->group != tmp_win->w))
{
- static lastwingroup = 0;
- static lastwin = 0;
- static lasttime = 0;
+ static int lastwingroup = 0;
+ static int lastwin = 0;
+ static int lasttime = 0;
int curtime = time(NULL);
Window junk;
-9
View File
@@ -1,9 +0,0 @@
--- gram.y.orig Sun Oct 27 01:13:38 2002
+++ gram.y Sun Oct 27 01:14:51 2002
@@ -106,5 +106,5 @@
* djhjr - 1/16/98
*/
-extern int yylineno;
+int yylineno;
%}
+15
View File
@@ -0,0 +1,15 @@
Fix:
error: call to undeclared function 'time'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
https://sourceforge.net/p/vtwm/discussion/936866/thread/78f62f5b07/
--- add_window.c.orig 2018-04-21 00:39:31.000000000 -0500
+++ add_window.c 2024-08-08 01:30:41.000000000 -0500
@@ -38,6 +38,7 @@
#include <stdio.h>
#include <string.h>
+#include <time.h>
#include "twm.h"
#include <X11/Xatom.h>
#ifndef NO_XPM_SUPPORT