diff options
author | wiz <wiz> | 2000-12-12 02:03:46 +0000 |
---|---|---|
committer | wiz <wiz> | 2000-12-12 02:03:46 +0000 |
commit | d1cfd61b2dbd018498de837178e68416bbc3a46a (patch) | |
tree | 0386b8c653f44899ccf3b63ba89ad7c5638f4887 /wm/icewm/patches | |
parent | bba4c506a905e25c06a3e9c3f4d6e98019fe5905 (diff) | |
download | pkgsrc-d1cfd61b2dbd018498de837178e68416bbc3a46a.tar.gz |
Add new category wm for window managers, and move lots of package from
x11 here. Only changes are: `wm' in category added and some paths fixed.
Diffstat (limited to 'wm/icewm/patches')
-rw-r--r-- | wm/icewm/patches/patch-aa | 13 | ||||
-rw-r--r-- | wm/icewm/patches/patch-ab | 68 | ||||
-rw-r--r-- | wm/icewm/patches/patch-ac | 15 | ||||
-rw-r--r-- | wm/icewm/patches/patch-ad | 12 | ||||
-rw-r--r-- | wm/icewm/patches/patch-ae | 16 |
5 files changed, 124 insertions, 0 deletions
diff --git a/wm/icewm/patches/patch-aa b/wm/icewm/patches/patch-aa new file mode 100644 index 00000000000..ab7317d7259 --- /dev/null +++ b/wm/icewm/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/12/12 02:03:48 wiz Exp $ + +--- sysdep.in.orig Mon Nov 8 06:45:52 1999 ++++ sysdep.in Mon Mar 6 22:20:48 2000 +@@ -1,6 +1,6 @@ + CXX = @CXX@ + LD = @CXX_LINK@ +-SYS_CFLAGS = @CXXFLAGS@ @DEFS@ ++SYS_CFLAGS = @CXXFLAGS@ @CPPFLAGS@ @DEFS@ + SYS_INCDIRS = +-SYS_LIBDIRS = ++SYS_LIBDIRS = @LDFLAGS@ + SYS_LIBS = @LIBS@ diff --git a/wm/icewm/patches/patch-ab b/wm/icewm/patches/patch-ab new file mode 100644 index 00000000000..de1b544a2a6 --- /dev/null +++ b/wm/icewm/patches/patch-ab @@ -0,0 +1,68 @@ +$NetBSD: patch-ab,v 1.1.1.1 2000/12/12 02:03:48 wiz Exp $ + +--- src/aapm.cc.orig Sun Feb 13 10:28:36 2000 ++++ src/aapm.cc Mon Mar 6 22:22:36 2000 +@@ -22,11 +22,18 @@ + + #ifdef CONFIG_APM + ++#if defined(__NetBSD__) ++#include <sys/ioctl.h> ++#include <machine/apmvar.h> ++#include <fcntl.h> ++#endif ++ + YColor *YApm::apmBg = 0; + YColor *YApm::apmFg = 0; + YFont *YApm::apmFont = 0; + + void ApmStr(char *s, bool Tool) { ++#ifdef __linux__ + char buf[45]; + int len, i, fd = open("/proc/apm", O_RDONLY); + char driver[16]; +@@ -97,6 +104,44 @@ + strcat(s," - Charging"); + else + strcat(s,"M"); ++#elif defined(__NetBSD__) ++ struct apm_power_info aip; ++ int fd = open(APMDEV, O_RDONLY); ++ ++ if (fd == -1) { ++ return; ++ } ++ ++ if (ioctl(fd, APM_IOC_GETPOWER, &aip) == -1) { ++ fprintf(stderr, "ioctl failed on APMDEV"); ++ return; ++ } ++ ++ if (!Tool) { ++ if (taskBarShowApmTime) { ++ if (aip.minutes_left == 0) { ++ sprintf(s, "%02d", aip.battery_life); ++ } else ++ sprintf(s, "%d:%02d", aip.minutes_left/60, aip.minutes_left%60); ++ } else ++ sprintf(s, "%02d", aip.battery_life); ++ } else { ++ sprintf(s, "%d%%", aip.battery_life); ++ } ++ ++ if (aip.ac_state == APM_AC_ON) ++ if (Tool) ++ strcat(s," - Power"); ++ else ++ strcat(s,"P"); ++ if (aip.battery_state == APM_BATT_CHARGING) ++ if (Tool) ++ strcat(s," - Charging"); ++ else ++ strcat(s,"M"); ++ ++ close(fd); ++#endif + } + + YApm::YApm(YWindow *aParent): YWindow(aParent) { diff --git a/wm/icewm/patches/patch-ac b/wm/icewm/patches/patch-ac new file mode 100644 index 00000000000..19ed9c00786 --- /dev/null +++ b/wm/icewm/patches/patch-ac @@ -0,0 +1,15 @@ +$NetBSD: patch-ac,v 1.1.1.1 2000/12/12 02:03:48 wiz Exp $ + +--- src/aapm.h.orig Sun Dec 5 11:47:02 1999 ++++ src/aapm.h Mon Mar 6 22:20:48 2000 +@@ -3,6 +3,10 @@ + #include "ytimer.h" + + #ifdef CONFIG_APM ++#if defined(__NetBSD__) ++#define APMDEV "/dev/apm" ++#endif ++ + class YApm: public YWindow, public YTimerListener { + public: + YApm(YWindow *aParent = 0); diff --git a/wm/icewm/patches/patch-ad b/wm/icewm/patches/patch-ad new file mode 100644 index 00000000000..19b6632c33e --- /dev/null +++ b/wm/icewm/patches/patch-ad @@ -0,0 +1,12 @@ +$NetBSD: patch-ad,v 1.1.1.1 2000/12/12 02:03:48 wiz Exp $ + +--- src/config.h.orig Mon Nov 8 06:45:52 1999 ++++ src/config.h Mon Mar 6 22:20:48 2000 +@@ -31,6 +31,6 @@ + #define CONFIG_NET_STATUS + + /* apm status */ +-#define CONFIG_APM ++/* #define CONFIG_APM */ + + #endif diff --git a/wm/icewm/patches/patch-ae b/wm/icewm/patches/patch-ae new file mode 100644 index 00000000000..9dbeefc1887 --- /dev/null +++ b/wm/icewm/patches/patch-ae @@ -0,0 +1,16 @@ +$NetBSD: patch-ae,v 1.1.1.1 2000/12/12 02:03:48 wiz Exp $ + +--- src/wmtaskbar.cc.orig Sun Mar 19 08:34:58 2000 ++++ src/wmtaskbar.cc Mon Jul 31 01:47:42 2000 +@@ -254,7 +254,11 @@ + } else + fClock = 0; + #ifdef CONFIG_APM ++#ifdef __linux__ + if (taskBarShowApm && access("/proc/apm", 0) == 0) { ++#elif defined(__NetBSD__) ++ if (taskBarShowApm && access(APMDEV, 0) == 0) { ++#endif + fApm = new YApm(this); + if (fApm->height() + ADD1 > ht) ht = fApm->height() + ADD1; + } else |