aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/icewm
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2010-11-09 05:59:08 +0800
committerpav <pav@FreeBSD.org>2010-11-09 05:59:08 +0800
commit112199ee8b321094532835310604ea8cb3dc4d97 (patch)
treef4bdbdf5917abe0542736cc0d887b300a94af4fd /x11-wm/icewm
parent88a4470fd459ea8289875ce19f583d13e8ec08f0 (diff)
downloadfreebsd-ports-gnome-112199ee8b321094532835310604ea8cb3dc4d97.tar.gz
freebsd-ports-gnome-112199ee8b321094532835310604ea8cb3dc4d97.tar.zst
freebsd-ports-gnome-112199ee8b321094532835310604ea8cb3dc4d97.zip
- Update to 1.3.7
PR: ports/151904 Submitted by: Eitan Adler <ports@eitanadler.com> (maintainer)
Diffstat (limited to 'x11-wm/icewm')
-rw-r--r--x11-wm/icewm/Makefile23
-rw-r--r--x11-wm/icewm/distinfo5
-rw-r--r--x11-wm/icewm/files/patch-src_Makefile.in14
-rw-r--r--x11-wm/icewm/files/patch-src__aapm.cc269
-rw-r--r--x11-wm/icewm/files/patch-src__aapm.h9
-rw-r--r--x11-wm/icewm/files/patch-src__wmtaskbar.cc10
-rw-r--r--x11-wm/icewm/pkg-message7
7 files changed, 15 insertions, 322 deletions
diff --git a/x11-wm/icewm/Makefile b/x11-wm/icewm/Makefile
index aee43b9556a2..5290c5c6f5a8 100644
--- a/x11-wm/icewm/Makefile
+++ b/x11-wm/icewm/Makefile
@@ -6,17 +6,16 @@
#
PORTNAME= icewm
-PORTVERSION= 1.2.37
-PORTREVISION= 5
+PORTVERSION= 1.3.7
CATEGORIES= x11-wm
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION}
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}/${PORTVERSION}/
MAINTAINER= ports@eitanadler.com
COMMENT= Window Manager designed for speed, usability and consistency
WANT_GNOME= yes
-USE_XORG= x11 ice xinerama xext xrandr
-USE_GNOME= gnometarget
+USE_XORG= x11 ice xinerama xext xrandr sm
+USE_GNOME= gnometarget gtk20 # gdkpixbuf really :-)
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
@@ -29,7 +28,6 @@ CONFIGURE_ARGS= --enable-shaped-decorations \
--with-mkfontdir=${NONEXISTENT}
OPTIONS= GNOMEDESKTOP "Enable GNOME desktop support" off \
- IMLIB "Build with Imlib support" on \
ESOUND "Enable EsounD daemon support" off \
XFT "Enable Xft support for fonts" on \
XINERAMA "Enable Xinerama support" off \
@@ -38,7 +36,7 @@ OPTIONS= GNOMEDESKTOP "Enable GNOME desktop support" off \
NLS "Enable National Language Support" on
# Restrict to stable (even) versions, indicated by the second component.
-PORTSCOUT= limitw:1,even
+#PORTSCOUT= limitw:1,even
.include <bsd.port.pre.mk>
@@ -51,14 +49,6 @@ PLIST_SUB+= GNOMEDESKTOP=""
PLIST_SUB+= GNOMEDESKTOP="@comment "
.endif
-.if !defined(WITHOUT_IMLIB)
-USE_GNOME+= imlib
-CONFIGURE_ARGS+=--with-imlib
-.else
-USE_XORG= xpm
-CONFIGURE_ARGS+=--without-imlib
-.endif
-
.if defined(WITH_ESOUND)
USE_GNOME+= esound
CONFIGURE_ARGS+=--with-icesound=esound
@@ -109,6 +99,9 @@ post-patch:
s|/usr/share/gnome|${LOCALBASE}/share/gnome|g' \
${WRKSRC}/src/gnome2.cc
+post-configure:
+ ${REINPLACE_CMD} -e 's|icewm-set-gnomewm||g' ${WRKSRC}/Makefile
+
post-install:
.for dir in taskbar themes/Infadel2/taskbar
@${LN} -sf ${STARTUP_PIXMAP} ${DATADIR}/${dir}/start.xpm
diff --git a/x11-wm/icewm/distinfo b/x11-wm/icewm/distinfo
index f5fd2f2bebbb..93cdf226e60e 100644
--- a/x11-wm/icewm/distinfo
+++ b/x11-wm/icewm/distinfo
@@ -1,3 +1,2 @@
-MD5 (icewm-1.2.37.tar.gz) = 970a21588d26eb361020fd60a61a482c
-SHA256 (icewm-1.2.37.tar.gz) = bfb60165cddafb458cbfd4b4b9203aa351e37cb75e0ad0c64e818b6fd2140595
-SIZE (icewm-1.2.37.tar.gz) = 841879
+SHA256 (icewm-1.3.7.tar.gz) = ca1a78046ae340c324c441ce24a9675c24a8bafd3eb6ed8205345785da08887b
+SIZE (icewm-1.3.7.tar.gz) = 898197
diff --git a/x11-wm/icewm/files/patch-src_Makefile.in b/x11-wm/icewm/files/patch-src_Makefile.in
deleted file mode 100644
index 42e5bed90daf..000000000000
--- a/x11-wm/icewm/files/patch-src_Makefile.in
+++ /dev/null
@@ -1,14 +0,0 @@
---- src/Makefile.in.orig Mon May 19 03:28:57 2003
-+++ src/Makefile.in Fri May 23 01:02:05 2003
-@@ -28,9 +28,9 @@
- -DEXEEXT='"$(EXEEXT)"' \
- -DICEWMEXE='"icewm$(EXEEXT)"' \
- -DICEHELPEXE='"icehelp$(EXEEXT)"' \
-- -DICEHELPIDX='"$(DOCDIR)/icewm-$(VERSION)/icewm.html"'
-+ -DICEHELPIDX='"$(DOCDIR)/icewm/icewm.html"'
-
--CXXFLAGS = @CXXFLAGS@ $(DEBUG) $(DEFS) \
-+CXXFLAGS = @CXXFLAGS@ $(DEBUG) $(DEFS) @CPPFLAGS@ \
- @CORE_CFLAGS@ @IMAGE_CFLAGS@ @AUDIO_CFLAGS@ # `fc-config --cflags`
- LFLAGS = @LDFLAGS@
- LIBS = @LIBS@
diff --git a/x11-wm/icewm/files/patch-src__aapm.cc b/x11-wm/icewm/files/patch-src__aapm.cc
index 2f87f7e780c2..9ed5ed66228d 100644
--- a/x11-wm/icewm/files/patch-src__aapm.cc
+++ b/x11-wm/icewm/files/patch-src__aapm.cc
@@ -1,269 +1,10 @@
---- ./src/aapm.cc.orig 2009-01-25 09:39:51.000000000 -0500
-+++ ./src/aapm.cc 2009-09-03 16:12:50.000000000 -0400
-@@ -31,8 +31,12 @@
- #include <sys/file.h>
- #include <sys/ioctl.h>
- #include <sys/types.h>
-+#ifdef i386
- #include <machine/apm_bios.h>
- #endif
-+#include <sys/sysctl.h>
-+#include <dev/acpica/acpiio.h>
-+#endif
-
- #ifdef __NetBSD__
- #include <sys/file.h>
-@@ -63,7 +67,7 @@
-
+--- ./src/aapm.cc.orig 2010-10-31 10:09:36.000000000 -0400
++++ ./src/aapm.cc 2010-11-02 19:56:53.000000000 -0400
+@@ -243,6 +243,7 @@
+ }
- void ApmStr(char *s, bool Tool) {
--#ifdef __FreeBSD__
-+#if defined(__FreeBSD__) && defined(i386)
- struct apm_info ai;
- #elif defined __NetBSD__
- struct apm_power_info ai;
-@@ -88,7 +92,7 @@
- error = 1;
- return ;
- }
--#ifdef __FreeBSD__
-+#if defined(__FreeBSD__) && defined(i386)
- if (ioctl(fd,APMIO_GETINFO, &ai) == -1)
- {
- static int error = 0;
-@@ -231,6 +235,7 @@
void YApm::AcpiStr(char *s, bool Tool) {
++ size_t len;
char buf[80], buf2[80], bat_info[250];
FILE *fd;
-+ int acpifd;
//name of the battery
- char *BATname;
- //battery is present or absent
-@@ -250,12 +255,14 @@
- //status of ac-adapter online/offline
- int ACstatus;
- int i;
-+ size_t len;
-
- *s='\0';
-
- //assign some default values, in case
- //the file in /proc/acpi will contain unexpected values
- ACstatus = -1;
-+#ifndef __FreeBSD__
- if (acpiACName && acpiACName[0] != 0) {
- strcat3(buf, "/proc/acpi/ac_adapter/", acpiACName, "/state", sizeof(buf));
- fd = fopen(buf, "r");
-@@ -285,6 +292,17 @@
- fclose(fd);
- }
- }
-+#else
-+ len = sizeof(i);
-+ if (sysctlbyname("hw.acpi.acline", &i, &len, NULL, 0) >= 0) {
-+ if (i == 1)
-+ ACstatus = AC_ONLINE;
-+ else if (i = 0)
-+ ACstatus = AC_OFFLINE;
-+ else
-+ ACstatus = AC_UNKNOWN;
-+ }
-+#endif
-
- int n = 0;
- for (i = 0; i < batteryNum; i++) {
-@@ -299,6 +317,7 @@
- BATrate = -1;
- BATtime_remain = -1;
-
-+#ifndef __FreeBSD__
- strcat3(buf, "/proc/acpi/battery/", BATname, "/state", sizeof(buf));
- fd = fopen(buf, "r");
- if (fd == NULL) {
-@@ -347,10 +366,43 @@
- }
- fclose(fd);
- }
-+#else
-+ int acpifd;
-+
-+#define ACPIDEV "/dev/acpi"
-+ acpifd = open(ACPIDEV, O_RDONLY);
-+ if (acpifd != -1) {
-+ union acpi_battery_ioctl_arg battio;
-+
-+ battio.unit = i;
-+ if (ioctl(acpifd, ACPIIO_BATT_GET_BATTINFO, &battio) != -1) {
-+ if (battio.battinfo.state != ACPI_BATT_STAT_NOT_PRESENT) {
-+ BATpresent = BAT_PRESENT;
-+ if (battio.battinfo.state == 0)
-+ BATstatus = BAT_FULL;
-+ else if (battio.battinfo.state & ACPI_BATT_STAT_CHARGING)
-+ BATstatus = BAT_CHARGING;
-+ else if (battio.battinfo.state & ACPI_BATT_STAT_DISCHARG)
-+ BATstatus = BAT_DISCHARGING;
-+ else
-+ BATstatus = BAT_UNKNOWN;
-+ if (battio.battinfo.cap != -1 && acpiBatteries[i]->capacity_full != -1)
-+ BATcapacity_remain = acpiBatteries[i]->capacity_full *
-+ battio.battinfo.cap / 100;
-+ if (battio.battinfo.min != -1)
-+ BATtime_remain = battio.battinfo.min;
-+ if (battio.battinfo.rate != -1)
-+ BATrate = battio.battinfo.rate;
-+ } else
-+ BATpresent = BAT_ABSENT;
-+ }
-+ }
-+#endif
-
- if (BATpresent == BAT_PRESENT) { //battery is present now
- if (acpiBatteries[i]->present == BAT_ABSENT) { //and previously was absent
- //read full-capacity value
-+#ifndef __FreeBSD__
- strcat3(buf, "/proc/acpi/battery/", BATname, "/info", sizeof(buf));
- fd = fopen(buf, "r");
- if (fd != NULL) {
-@@ -372,6 +424,21 @@
- if (BATcapacity_remain > BATcapacity_full && BATcapacity_design > 0)
- BATcapacity_full = BATcapacity_design;
- }
-+#else
-+ union acpi_battery_ioctl_arg battio;
-+#define UNKNOWN_CAP 0xffffffff
-+#define UNKNOWN_VOLTAGE 0xffffffff
-+
-+ battio.unit = i;
-+ if (ioctl(acpifd, ACPIIO_BATT_GET_BIF, &battio) != -1) {
-+ if (battio.bif.dcap != UNKNOWN_CAP)
-+ BATcapacity_design = battio.bif.dcap;
-+ if (battio.bif.lfcap != UNKNOWN_CAP)
-+ BATcapacity_full = battio.bif.lfcap;
-+ if (BATcapacity_remain > BATcapacity_full && BATcapacity_design > 0)
-+ BATcapacity_full = BATcapacity_design;
-+ }
-+#endif
- acpiBatteries[i]->capacity_full = BATcapacity_full;
- }
- else {
-@@ -380,6 +447,11 @@
- }
- acpiBatteries[i]->present = BATpresent;
-
-+#ifdef __FreeBSD__
-+ close(acpifd);
-+#endif
-+
-+ bat_info[0] = 0;
- if (!Tool &&
- taskBarShowApmTime &&
- BATpresent == BAT_PRESENT &&
-@@ -387,7 +459,8 @@
- BATstatus == BAT_DISCHARGING &&
- //did we parse the needed values successfully?
- BATcapacity_full >= 0 && BATcapacity_remain >= 0 && BATrate > 0) {
-- BATtime_remain = (int) (60 * (double)(BATcapacity_remain) / BATrate);
-+ if (BATtime_remain == -1)
-+ BATtime_remain = (int) (60 * (double)(BATcapacity_remain) / BATrate);
- sprintf(bat_info, "%d:%02d", BATtime_remain / 60, BATtime_remain % 60);
- }
- else if (BATpresent == BAT_PRESENT &&
-@@ -397,17 +470,19 @@
- sprintf(bat_info, "%3.0f%%",
- 100 * (double)BATcapacity_remain / BATcapacity_full);
- }
-- else {
-- //battery is absent or we didn't parse some needed values
-- bat_info[0] = 0;
-- }
-
- if (BATstatus == BAT_CHARGING) {
- if (Tool)
- strcat(bat_info, _(" - Charging"));
- else
- strcat(bat_info, _("C"));
-- }
-+ } else if (BATstatus == BAT_FULL && Tool)
-+ strcat(bat_info, _(" - Full"));
-+
-+ if (Tool && BATrate > 0) {
-+ sprintf(buf, " %d", BATrate);
-+ strcat(bat_info, buf);
-+ }
-
- if ((n > 0) && (*bat_info)) {
- if (Tool)
-@@ -738,6 +813,7 @@
- YApm::YApm(YWindow *aParent): YWindow(aParent) {
- struct dirent **de;
- int n, i;
-+ size_t s;
- FILE *pmu_info;
- char buf[80];
- FILE *fd;
-@@ -747,6 +823,7 @@
- fCurrentState = 0;
-
- //search for acpi info first
-+#ifndef __FreeBSD__
- n = scandir("/sys/class/power_supply", &de, 0, alphasort);
- if (n < 0) {
- n = scandir("/proc/acpi/battery", &de, 0, alphasort);
-@@ -824,7 +901,34 @@
- acpiACName = (char*)malloc(sizeof(char));
- *acpiACName = '\0';
- }
-+#else
-+ int acpifd;
-+
-+ acpifd = open(ACPIDEV, O_RDONLY);
-+ if (acpifd != -1) {
-+ mode = ACPI;
-+
-+ //scan for batteries
-+ i = 0;
-+ while (i < 64 && batteryNum < MAX_ACPI_BATTERY_NUM) {
-+ union acpi_battery_ioctl_arg battio;
-+
-+ battio.unit = i;
-+ if (ioctl(acpifd, ACPIIO_BATT_GET_BATTINFO, &battio) != -1) {
-+ acpiBatteries[batteryNum] =
-+ (bat_info*)malloc(sizeof(bat_info));
-+ asprintf(&acpiBatteries[batteryNum]->name, "Battery%d", i);
-+ //initially set as absent, to force reading of
-+ //full-capacity value
-+ acpiBatteries[batteryNum]->present = BAT_ABSENT;
-+ acpiBatteries[batteryNum]->capacity_full = -1;
-+ batteryNum++;
-+ }
-+ i++;
-+ }
-
-+ asprintf(&acpiACName, "AC1");
-+#endif
- } else if ( (pmu_info = fopen("/proc/pmu/info", "r")) != NULL) {
- mode = PMU;
- char line[80];
-@@ -870,7 +974,21 @@
- }
-
- void YApm::updateToolTip() {
-- setToolTip(fCurrentState);
-+ char s[64] = {' ', ' ', ' ', 0, 0, 0, 0, 0};
-+
-+ switch (mode) {
-+ case ACPI:
-+ AcpiStr(s, 1);
-+ break;
-+ case APM:
-+ ApmStr(s, 1);
-+ break;
-+ case PMU:
-+ PmuStr(s, 1);
-+ break;
-+ }
-+
-+ setToolTip(s);
- }
-
- int YApm::calcInitialWidth() {
diff --git a/x11-wm/icewm/files/patch-src__aapm.h b/x11-wm/icewm/files/patch-src__aapm.h
deleted file mode 100644
index ae497576b719..000000000000
--- a/x11-wm/icewm/files/patch-src__aapm.h
+++ /dev/null
@@ -1,9 +0,0 @@
---- ./src/aapm.h.orig 2009-01-25 09:39:51.000000000 -0500
-+++ ./src/aapm.h 2009-09-03 16:12:50.000000000 -0400
-@@ -1,5 +1,5 @@
-
--#if defined(linux) || (defined (__FreeBSD__) && defined(i386)) || (defined(__NetBSD__) && defined(i386))
-+#if defined(linux) || (defined (__FreeBSD__)) || (defined(__NetBSD__) && defined(i386))
-
- #include "ywindow.h"
- #include "ytimer.h"
diff --git a/x11-wm/icewm/files/patch-src__wmtaskbar.cc b/x11-wm/icewm/files/patch-src__wmtaskbar.cc
deleted file mode 100644
index 016189df152d..000000000000
--- a/x11-wm/icewm/files/patch-src__wmtaskbar.cc
+++ /dev/null
@@ -1,10 +0,0 @@
---- ./src/wmtaskbar.cc.orig 2009-01-25 09:39:51.000000000 -0500
-+++ ./src/wmtaskbar.cc 2009-09-03 16:12:50.000000000 -0400
-@@ -458,6 +458,7 @@
- #ifdef CONFIG_APPLET_APM
- if (taskBarShowApm && (access(APMDEV, 0) == 0 ||
- access("/proc/acpi", 0) == 0 ||
-+ access("/dev/acpi", 0) == 0 ||
- access("/proc/pmu", R_OK|X_OK) == 0))
- {
- fApm = new YApm(this);
diff --git a/x11-wm/icewm/pkg-message b/x11-wm/icewm/pkg-message
index ab67c041ef34..396783364812 100644
--- a/x11-wm/icewm/pkg-message
+++ b/x11-wm/icewm/pkg-message
@@ -2,10 +2,6 @@
IceWM has been installed.
-If you want a set of icons to use with IceWM see:
-
-* http://themes.freshmeat.net/projects/iceicons/
-
If you want more themes see:
* http://themes.freshmeat.net/browse/925/
@@ -13,7 +9,4 @@ If you want more themes see:
If you do not see icons in the tray when they should be there, please try
rebuilding with the "IMLIB" option enabled.
-Graphical configuration tools for IceWM are outdated and obsolete, but there
-is a useful menu generator in the ports tree: "deskutils/menumaker".
-
==============================================================================