View | Details | Raw Unified | Return to bug 94507
Collapse All | Expand All

(-)x11-wm/pawm/Makefile (-31 / +48 lines)
Lines 6-57 Link Here
6
#
6
#
7
7
8
PORTNAME=	pawm
8
PORTNAME=	pawm
9
PORTVERSION=	1.9.7
9
PORTVERSION=	2.2.0
10
CATEGORIES=	x11-wm
10
CATEGORIES=	x11-wm
11
MASTER_SITES=	http://www.pleyades.net/pawm/files/
11
MASTER_SITES=	http://www.pleyades.net/pawm/files/
12
12
13
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	ports@FreeBSD.org
14
COMMENT=	The Puto Amo Window Manager
14
COMMENT=	The Puto Amo Window Manager
15
15
16
BUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash2
17
18
DOCS=		AUTHORS Changelog GPL INSTALL README THANKS
19
PLIST=		${WRKDIR}/pkg-plist
20
USE_BZIP2=	yes
16
USE_BZIP2=	yes
21
USE_GMAKE=	yes
22
USE_X_PREFIX=	yes
17
USE_X_PREFIX=	yes
18
USE_XPM=	yes
19
USE_GMAKE=	yes
20
MAKEFILE=	Makefile.in
21
MAKE_ARGS=	GCC="${CC}" MAKE.binary="${CC} ${LDFLAGS} -o"
23
22
24
do-configure:
23
CFLAGS+=	-I. -I${X11BASE}/include -DNDEBUG
25
	cd ${WRKSRC} && \
24
LDFLAGS=	-lm -L${X11BASE}/lib -lXpm -lXrandr
26
		bash ./0 --prefix=${PREFIX} --datadir=${PREFIX}/share/pawm
27
25
28
pre-install:
26
.include <bsd.port.pre.mk>
29
	${ECHO_CMD} bin/pawm > ${PLIST}
27
30
	${ECHO_CMD} etc/pawm.conf >> ${PLIST}
28
.if ${OSVERSION} < 500000
31
	for ii in `${LS} ${WRKSRC}/data/icons`; do \
29
CFLAGS+=	-Dintmax_t=u_int32_t -Duintmax_t=u_int32_t \
32
		${ECHO_CMD} share/pawm/icons/$$ii >> ${PLIST}; \
30
		-Dstrtoimax=strtoll -Dstrtoumax=strtoull \
33
	done
31
		-DSIZE_MAX=UINT_MAX
34
	${ECHO_CMD} @dirrm share/pawm/icons >> ${PLIST}
35
	${ECHO_CMD} @dirrm share/pawm >> ${PLIST}
36
.if !defined(NOPORTDOCS)
37
.for ii in ${DOCS}
38
	${ECHO_CMD} share/doc/pawm/${ii} >> ${PLIST}
39
.endfor
40
	${ECHO_CMD} @dirrm share/doc/pawm >> ${PLIST}
41
.endif
32
.endif
42
33
34
.if ${X_WINDOW_SYSTEM} == xfree86-3 || defined(WITHOUT_XFT)
35
CFLAGS+=	-DDISABLE_XFT
36
.else
37
LIB_DEPENDS+=	Xft.2:${PORTSDIR}/x11-fonts/libXft
38
CFLAGS+=	`pkg-config --cflags xft`
39
LDFLAGS+=	`pkg-config --libs xft`
40
.endif
41
42
.if defined(WITH_SN)
43
LIB_DEPENDS+=	startup-notification-1.0:${PORTSDIR}/x11/startup-notification
44
CFLAGS+=	-DENABLE_STARTUP -DSN_API_NOT_YET_FROZEN \
45
		`pkg-config --cflags libstartup-notification-1.0`
46
LDFLAGS+=	`pkg-config --libs libstartup-notification-1.0`
47
.endif
48
49
post-patch:
50
.if ${OSVERSION} < 500000
51
	@${GREP} -lR "<stdint\.h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
52
		's|<stdint\.h>|<inttypes.h>|g'
53
.endif
54
55
do-configure:
56
	@${ECHO_CMD} -n > ${WRKSRC}/config.h
57
	@${ECHO_CMD} '#define PROJECT "${PORTNAME}"' >> ${WRKSRC}/config.h
58
	@${ECHO_CMD} '#define VERSION "${PORTVERSION}"' >> ${WRKSRC}/config.h
59
	@${ECHO_CMD} '#define CONFDIR "${PREFIX}/etc"' >> ${WRKSRC}/config.h
60
	@${ECHO_CMD} '#define DATADIR "${DATADIR}"' >> ${WRKSRC}/config.h
61
43
do-install:
62
do-install:
44
	${INSTALL_PROGRAM} ${WRKSRC}/bin/pawm ${PREFIX}/bin
63
	${INSTALL_PROGRAM} ${WRKSRC}/src/pawm ${PREFIX}/bin
45
	${INSTALL_DATA} ${WRKSRC}/conf/pawm.conf ${PREFIX}/etc/
64
	${INSTALL_DATA} ${WRKSRC}/conf/pawm.conf ${PREFIX}/etc
46
	${MKDIR} ${PREFIX}/share/pawm/icons
65
	@${MKDIR} ${DATADIR}/icons
47
	for ii in `${LS} ${WRKSRC}/data/icons/*`; do \
66
	${INSTALL_DATA} ${WRKSRC}/data/icons/*.xpm ${DATADIR}/icons
48
		${INSTALL_DATA} $$ii ${PREFIX}/share/pawm/icons ; \
49
	done
50
.if !defined(NOPORTDOCS)
67
.if !defined(NOPORTDOCS)
51
	${MKDIR} ${DOCSDIR}
68
	@${MKDIR} ${DOCSDIR}
52
.for ii in ${DOCS}
69
.for ii in AUTHORS Changelog GPL INSTALL README THANKS
53
	${INSTALL_DATA} ${WRKSRC}/${ii} ${DOCSDIR}
70
	${INSTALL_DATA} ${WRKSRC}/${ii} ${DOCSDIR}
54
.endfor
71
.endfor
55
.endif
72
.endif
56
73
57
.include <bsd.port.mk>
74
.include <bsd.port.post.mk>
(-)x11-wm/pawm/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (pawm-1.9.7.tar.bz2) = 9ba4bb81166995cbefd5ee2660217d9c
1
MD5 (pawm-2.2.0.tar.bz2) = ed810bff65c8ccc97d8963adf6f4304a
2
SHA256 (pawm-1.9.7.tar.bz2) = b9a5e3b4895328c8f26bfbab894ef93d6c0215925e344f488b9a48019994d880
2
SHA256 (pawm-2.2.0.tar.bz2) = 976db753a275f9d49d2752dba64754f7889d6af190103ea196fd72a7f7c4c5a8
3
SIZE (pawm-1.9.7.tar.bz2) = 100424
3
SIZE (pawm-2.2.0.tar.bz2) = 123542
(-)x11-wm/pawm/files/patch-src__pashut.c (+10 lines)
Line 0 Link Here
1
--- src/pashut.c.orig	Sat Feb 25 00:55:09 2006
2
+++ src/pashut.c	Sun Feb 26 03:15:23 2006
3
@@ -24,6 +24,7 @@
4
 #include "pabar.h"
5
 #include "pafont.h"
6
 #include "pashut.h"
7
+#include "signals.h"
8
 
9
 
10
 static void shut_all(void *);
(-)x11-wm/pawm/files/patch-src__pawindow.cc (+32 lines)
Line 0 Link Here
1
--- src/pawindow.c.orig	Sun Mar  5 10:14:06 2006
2
+++ src/pawindow.c	Wed Mar  8 13:29:48 2006
3
@@ -787,10 +787,12 @@
4
 
5
 static void canvas_KeyPress(XKeyPressedEvent *event, PAWindow pawindow)
6
 {
7
+	XEvent *e;
8
+
9
 	ASSERT(event);
10
 	ASSERT(pawindow);
11
 
12
-	XEvent *e = (XEvent *) event;
13
+	e = (XEvent *) event;
14
 
15
 	/* Replay the event if it isn't a pawm keybinding */
16
 	if (!keyboard_binding_key(event)) {
17
@@ -1633,6 +1635,7 @@
18
 	int num_rows=1;
19
 	int firsticonx, lasticonx, iconx, icony;
20
 	bool forward= (strcmp((char *)data, "forward")==0 ? 1 : 0);
21
+  	KeySym testkeysym; KeyCode testkeycode;
22
 
23
 
24
 	/* TODO: Support both rotate method: w/wout popup window*/
25
@@ -1665,7 +1668,6 @@
26
                  None, CurrentTime);
27
 	current_pw=tab_window_draw_all(num_windows, num_rows);
28
 
29
-  	KeySym testkeysym; KeyCode testkeycode;
30
     testkeysym=XStringToKeysym("Tab");
31
     testkeycode=XKeysymToKeycode(display, testkeysym);
32
     XGrabKey(display, testkeycode, Mod1Mask, ROOT, False, GrabModeAsync, GrabModeAsync);
(-)x11-wm/pawm/files/patch-src__wm.c (+20 lines)
Line 0 Link Here
1
--- src/wm.c.orig	Fri Feb 24 05:12:18 2006
2
+++ src/wm.c	Sun Feb 26 03:10:37 2006
3
@@ -355,6 +355,9 @@
4
 	CARD32 tmpdata[20];
5
 	unsigned long length;
6
 	int (*olderrorhandler) (Display *, XErrorEvent *);
7
+#ifndef DISABLE_XRANDR
8
+	int major, minor,errbase;
9
+#endif
10
 
11
 	SAY ("Initializing window manager...");
12
 
13
@@ -373,7 +376,6 @@
14
 
15
 #ifndef DISABLE_XRANDR
16
 	/* Check for XRandr extension */
17
-	int major, minor,errbase;
18
 	XRRQueryVersion(display, &major, &minor);
19
 	XRRQueryExtension(display, &(class.randr_base), &errbase);
20
 	SAY("Using XRandr %d.%d extension. Event base: %d Error base %d", major, minor, class.randr_base, errbase);
(-)x11-wm/pawm/files/patch-src_cfgpool.c (-56 lines)
Lines 1-56 Link Here
1
$FreeBSD: ports/x11-wm/pawm/files/patch-src_cfgpool.c,v 1.1 2003/10/18 23:48:03 trevor Exp $
2
3
FreeBSD 4 is not C99-compliant.
4
5
--- src/cfgpool.c.orig	Wed Aug  6 14:27:17 2003
6
+++ src/cfgpool.c	Sat Oct 18 17:18:40 2003
7
@@ -309,13 +309,13 @@ legal value*. So, for proper error check
8
     EINVAL: Couldn't parse a well-formed natural number.
9
     ERANGE: Overflow while parsing the number.
10
 */
11
-uintmax_t
12
+u_int32_t
13
 cfgpool_getnatural (CfgPool pool, const char *key, unsigned int base) {
14
 
15
     char *value=NULL;
16
     char *tailptr=NULL;
17
     int tmperrno=errno;
18
-    uintmax_t natural=0;
19
+    u_int32_t natural=0;
20
 
21
     ASSERT(pool);
22
     ASSERT(key);
23
@@ -329,7 +329,7 @@ cfgpool_getnatural (CfgPool pool, const 
24
 
25
     /* Well, it seems we have a value... Translate to correct type */
26
     errno=0;
27
-    natural=strtoumax(value, &tailptr, base);
28
+    natural=strtoull(value, &tailptr, base);
29
     
30
     if (errno) natural=0,tmperrno=ERANGE;
31
     if ((!natural) && (tailptr==value)) tmperrno=EINVAL;
32
@@ -359,13 +359,13 @@ legal value*. So, for proper error check
33
     ERANGE: Overflow while parsing the number.
34
 */
35
 
36
-intmax_t
37
+u_int32_t
38
 cfgpool_getinteger (CfgPool pool, const char *key, unsigned int base) {
39
 
40
     char *value=NULL;
41
     char *tailptr=NULL;
42
     int tmperrno=errno;
43
-    intmax_t integer=0;
44
+    u_int32_t integer=0;
45
 
46
     ASSERT(pool);
47
     ASSERT(key);
48
@@ -379,7 +379,7 @@ cfgpool_getinteger (CfgPool pool, const 
49
 
50
     /* Well, it seems we have a value... Translate to correct type */
51
     errno=0;
52
-    integer=strtoimax(value, &tailptr, base);
53
+    integer=strtoll(value, &tailptr, base);
54
     
55
     if (errno) integer=0,tmperrno=ERANGE;
56
     if ((!integer) && (tailptr==value)) tmperrno=EINVAL;
(-)x11-wm/pawm/files/patch-src_cfgpool.h (-30 lines)
Lines 1-30 Link Here
1
$FreeBSD: ports/x11-wm/pawm/files/patch-src_cfgpool.h,v 1.1 2003/10/18 23:48:03 trevor Exp $
2
3
FreeBSD 4 is not C99-compliant.
4
5
--- src/cfgpool.h.orig	Wed Jul 10 07:33:57 2002
6
+++ src/cfgpool.h	Sat Oct 18 16:14:11 2003
7
@@ -25,21 +25,16 @@
8
 #ifndef __X_CFGPOOL_X__
9
 #define __X_CFGPOOL_X__
10
 
11
-#include <stdint.h>
12
 #include <limits.h>
13
 #include <inttypes.h>
14
 
15
-#if SSIZE_MAX > SIZE_MAX
16
-#error Cannot build, since SSIZE_MAX appears to be greater than SIZE_MAX!!!
17
-#endif
18
-
19
 typedef struct CfgPool *CfgPool;
20
 
21
 CfgPool cfgpool_create (const char *);
22
 CfgPool cfgpool_delete (CfgPool);
23
 
24
 char *    cfgpool_getstring  (CfgPool, const char *);
25
-uintmax_t cfgpool_getnatural (CfgPool, const char *, unsigned int);
26
-intmax_t  cfgpool_getinteger (CfgPool, const char *, unsigned int);
27
+u_int32_t cfgpool_getnatural (CfgPool, const char *, unsigned int);
28
+u_int32_t cfgpool_getinteger (CfgPool, const char *, unsigned int);
29
 
30
 #endif
(-)x11-wm/pawm/files/patch-src_chain.c (-24 lines)
Lines 1-24 Link Here
1
$FreeBSD: ports/x11-wm/pawm/files/patch-src_chain.c,v 1.1 2003/10/18 23:48:03 trevor Exp $
2
3
FreeBSD 4 is not C99-compliant.
4
5
--- src/chain.c.orig	Wed Aug  6 14:27:17 2003
6
+++ src/chain.c	Sat Oct 18 16:30:50 2003
7
@@ -22,7 +22,7 @@ Copyright (C) 2002,03 Ra_l N__ez de Aren
8
 #include <stddef.h>
9
 #include <errno.h>
10
 #include <limits.h>
11
-#include <stdint.h>
12
+#include <sys/types.h>
13
 #include "chain.h"
14
 #include "mobs.h"
15
 
16
@@ -199,7 +199,7 @@ void *chain_put (Chain chain, void *item
17
     ASSERT(chain);
18
     ASSERT(item);
19
 
20
-    if (chain->size==SIZE_MAX) {
21
+    if (chain->size==UINT_MAX) {
22
         errno=EFBIG;
23
         return NULL;
24
     }
(-)x11-wm/pawm/files/patch-src_paclock.c (-12 lines)
Lines 1-12 Link Here
1
$FreeBSD: ports/x11-wm/pawm/files/patch-src_paclock.c,v 1.1 2004/03/11 19:07:33 trevor Exp $
2
3
--- src/paclock.c.orig	Fri Jan 16 13:22:09 2004
4
+++ src/paclock.c	Thu Mar 11 18:00:10 2004
5
@@ -20,6 +20,7 @@
6
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
7
 */
8
 
9
+#include <signal.h>
10
 #include "pabar.h"
11
 #include "paclock.h"
12
 #include "timux.h"
(-)x11-wm/pawm/files/patch-src_pashut.c (-12 lines)
Lines 1-12 Link Here
1
$FreeBSD: ports/x11-wm/pawm/files/patch-src_pashut.c,v 1.1 2004/03/11 19:07:33 trevor Exp $
2
3
--- src/pashut.c.orig	Thu Sep  4 22:29:02 2003
4
+++ src/pashut.c	Thu Mar 11 18:08:38 2004
5
@@ -20,6 +20,7 @@
6
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
7
 */
8
 
9
+#include <signal.h>
10
 #include "pashut.h"
11
 #include "pawindow.h"
12
 #include "pabar.h"
(-)x11-wm/pawm/files/patch-src_timux.c (-15 lines)
Lines 1-15 Link Here
1
$FreeBSD: ports/x11-wm/pawm/files/patch-src_timux.c,v 1.1 2003/10/18 23:48:03 trevor Exp $
2
3
FreeBSD 4 is not C99-compliant.
4
5
--- src/timux.c.orig	Wed Aug  6 14:27:19 2003
6
+++ src/timux.c	Sat Oct 18 17:14:40 2003
7
@@ -45,7 +45,7 @@ struct TiMux {
8
     TiMuxEvent target;
9
 };
10
 
11
-static volatile uintmax_t timux_count=0;
12
+static volatile uint32_t timux_count=0;
13
 static TiMux theTiMux=NULL;
14
 
15
 static void TheHandlerTM   (int);
(-)x11-wm/pawm/files/patch-src_timux.h (-22 lines)
Lines 1-22 Link Here
1
$FreeBSD: ports/x11-wm/pawm/files/patch-src_timux.h,v 1.1 2003/10/18 23:48:03 trevor Exp $
2
3
FreeBSD 4 is not C99-compliant.
4
5
--- src/timux.h.orig	Wed Apr 24 11:07:32 2002
6
+++ src/timux.h	Sat Oct 18 17:15:40 2003
7
@@ -25,13 +25,11 @@
8
 #ifndef __X_TIMUX_X__
9
 #define __X_TIMUX_X__
10
 
11
-#include <stdint.h>
12
-
13
 /* NOTE: timestamps, and so resolutions, are expressed in milliseconds */
14
 
15
 typedef struct TiMux *TiMux;
16
-typedef uint_fast32_t tempus;
17
-typedef uint_fast64_t jobid;
18
+typedef uint32_t tempus;
19
+typedef uint64_t jobid;
20
 typedef void (*duty) (void *);
21
 
22
 TiMux timux_create (void);
(-)x11-wm/pawm/files/patch-src_wm.c (-17 lines)
Lines 1-17 Link Here
1
$FreeBSD: ports/x11-wm/pawm/files/patch-src_wm.c,v 1.1 2004/04/14 16:06:04 trevor Exp $
2
3
Make ANSI C89/C90-compliant to compile with GCC 2.X.
4
author:  Volker Stolz
5
6
--- src/wm.c.orig	Wed Apr 14 16:32:24 2004
7
+++ src/wm.c	Wed Apr 14 16:32:44 2004
8
@@ -311,8 +311,8 @@
9
 
10
     char *tmpvalue;
11
 
12
-    SAY ("Initializing window manager...");
13
     int (*olderrorhandler) (Display *, XErrorEvent *);
14
+    SAY ("Initializing window manager...");
15
 
16
     if (reference_count++) return !0;
17
  
(-)x11-wm/pawm/pkg-plist (+39 lines)
Line 0 Link Here
1
bin/pawm
2
etc/pawm.conf
3
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
4
%%PORTDOCS%%%%DOCSDIR%%/Changelog
5
%%PORTDOCS%%%%DOCSDIR%%/GPL
6
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
7
%%PORTDOCS%%%%DOCSDIR%%/README
8
%%PORTDOCS%%%%DOCSDIR%%/THANKS
9
%%DATADIR%%/icons/close_d.xpm
10
%%DATADIR%%/icons/close_d_256.xpm
11
%%DATADIR%%/icons/close_h.xpm
12
%%DATADIR%%/icons/close_h_256.xpm
13
%%DATADIR%%/icons/close_o.xpm
14
%%DATADIR%%/icons/close_o_256.xpm
15
%%DATADIR%%/icons/max_d.xpm
16
%%DATADIR%%/icons/max_d_256.xpm
17
%%DATADIR%%/icons/max_h.xpm
18
%%DATADIR%%/icons/max_h_256.xpm
19
%%DATADIR%%/icons/max_o.xpm
20
%%DATADIR%%/icons/max_o_256.xpm
21
%%DATADIR%%/icons/min_d.xpm
22
%%DATADIR%%/icons/min_d_256.xpm
23
%%DATADIR%%/icons/min_h.xpm
24
%%DATADIR%%/icons/min_h_256.xpm
25
%%DATADIR%%/icons/min_o.xpm
26
%%DATADIR%%/icons/min_o_256.xpm
27
%%DATADIR%%/icons/penguin-gentoo.xpm
28
%%DATADIR%%/icons/penguin-gentoo_256.xpm
29
%%DATADIR%%/icons/penguin.xpm
30
%%DATADIR%%/icons/penguin_256.xpm
31
%%DATADIR%%/icons/powerbutton_active.xpm
32
%%DATADIR%%/icons/powerbutton_active_256.xpm
33
%%DATADIR%%/icons/powerbutton_normal.xpm
34
%%DATADIR%%/icons/powerbutton_normal_256.xpm
35
%%DATADIR%%/icons/powerbutton_pressed.xpm
36
%%DATADIR%%/icons/powerbutton_pressed_256.xpm
37
@dirrm %%DATADIR%%/icons
38
@dirrm %%DATADIR%%
39
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 94507