On Wed, Apr 09, 2008 at 02:37:05AM +0200, Matthias Kilian wrote:
> On Tue, Apr 08, 2008 at 07:37:50PM +0200, Tobias Ulmer wrote:
> > - remove patch-Makefile, doesn't do anything except eye candy
> 
> Well, this (and probably other dwm stuff) is initially from me, and
> I don't think it's eye candy. I prefer to see every single command
> run from make, with all arguments, and not just some
> 
>       CC foo.c

Taking this into account.. new diff attached.

-ME

Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/dwm/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- Makefile    25 Nov 2007 12:07:06 -0000      1.6
+++ Makefile    9 Apr 2008 01:18:15 -0000
@@ -2,8 +2,7 @@
 
 COMMENT=               dynamic window manager
 
-V=                     4.7
-DISTNAME=              dwm-$V
+DISTNAME=              dwm-4.9
 
 CATEGORIES=            x11
 
@@ -21,20 +20,13 @@ WANTLIB=            X11 c
 
 MASTER_SITES=          http://www.suckless.org/download/
 
-RUN_DEPENDS=           ::x11/dmenu \
+RUN_DEPENDS=           :dmenu->=3.6:x11/dmenu \
                        ::x11/terminus-font
 
-CFLAGS+=               -I. -I${X11BASE}/include -DVERSION=\\\"$V\\\"
-LDFLAGS+=              -L${X11BASE}/lib -lX11
-MAKE_FLAGS=            CC=${CC} CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
-FAKE_FLAGS=            MANPREFIX=${PREFIX}/man \
-                       PREFIX=${PREFIX}
+FAKE_FLAGS=            DESTDIR=""
 
 USE_X11=               Yes
 
 NO_REGRESS=            Yes
-
-pre-patch:
-       @cp ${WRKSRC}/config.def.h ${WRKSRC}/config.h
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/x11/dwm/distinfo,v
retrieving revision 1.6
diff -u -p -r1.6 distinfo
--- distinfo    25 Nov 2007 12:07:06 -0000      1.6
+++ distinfo    9 Apr 2008 01:18:15 -0000
@@ -1,5 +1,5 @@
-MD5 (dwm-4.7.tar.gz) = gnsShRSj7bh+II6E/uDrPw==
-RMD160 (dwm-4.7.tar.gz) = KkZM67ykMcC7GZ/Arp/axIEFwiY=
-SHA1 (dwm-4.7.tar.gz) = 23CkLts4PmU5zOT5qO4fy+Watz0=
-SHA256 (dwm-4.7.tar.gz) = N0gZV/wkf2hgullCdI+PibUmv1uLIQQgAdOE6INgxao=
-SIZE (dwm-4.7.tar.gz) = 17693
+MD5 (dwm-4.9.tar.gz) = z3LGpy5sNcEytdtPrz+zWA==
+RMD160 (dwm-4.9.tar.gz) = jNgvEPCsWFLiw6tRd033EKKb2LI=
+SHA1 (dwm-4.9.tar.gz) = yOz5MghPYmoi78AgdkpiquvUjbU=
+SHA256 (dwm-4.9.tar.gz) = P09ZXnhFztzhaWZorfCoreL8inLUwy1T3jWnxdkAeQ0=
+SIZE (dwm-4.9.tar.gz) = 18132
Index: patches/patch-Makefile
===================================================================
RCS file: /cvs/ports/x11/dwm/patches/patch-Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 patch-Makefile
--- patches/patch-Makefile      27 Oct 2007 12:41:48 -0000      1.2
+++ patches/patch-Makefile      9 Apr 2008 01:19:33 -0000
@@ -1,6 +1,6 @@
-$OpenBSD: patch-Makefile,v 1.2 2007/10/27 12:41:48 merdely Exp $
---- Makefile.orig      Thu Oct 25 14:24:37 2007
-+++ Makefile   Thu Oct 25 16:24:41 2007
+$OpenBSD$
+--- Makefile.orig      Tue Apr  8 21:19:10 2008
++++ Makefile   Tue Apr  8 21:19:28 2008
 @@ -15,8 +15,7 @@ options:
        @echo "CC       = ${CC}"
  
Index: patches/patch-config_def_h
===================================================================
RCS file: patches/patch-config_def_h
diff -N patches/patch-config_def_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-config_def_h  9 Apr 2008 01:18:15 -0000
@@ -0,0 +1,40 @@
+$OpenBSD$
+--- config.def.h.orig  Thu Apr  3 22:57:01 2008
++++ config.def.h       Tue Apr  8 19:02:10 2008
+@@ -2,19 +2,20 @@
+ 
+ /* appearance */
+ #define BORDERPX              1
+-#define FONT                  "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*"
+-#define NORMBORDERCOLOR               "#cccccc"
+-#define NORMBGCOLOR           "#cccccc"
+-#define NORMFGCOLOR           "#000000"
+-#define SELBORDERCOLOR                "#0066ff"
+-#define SELBGCOLOR            "#0066ff"
+-#define SELFGCOLOR            "#ffffff"
++#define FONT                  "-*-terminus-medium-*-*-*-*-*-*-*-*-*-*-*"
++#define NORMBORDERCOLOR               "#404040"
++#define NORMBGCOLOR           "#202020"
++#define NORMFGCOLOR           "#c0c0c0"
++#define SELBORDERCOLOR                "#8888ff"
++#define SELBGCOLOR            "#404040"
++#define SELFGCOLOR            "#f0f0f0"
+ 
+ /* tagging */
+ const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" 
};
+ 
+ Rule rules[] = {
+       /* class        instance        title           tags ref        
isfloating */
++      { "Firefox",    NULL,           NULL,           tags[8],        False },
+       { "Gimp",       NULL,           NULL,           NULL,           True },
+ };
+ 
+@@ -46,7 +47,7 @@ Key keys[] = {
+       /* modifier                     key             function        
argument */
+       { MODKEY,                       XK_p,           spawn,
+               "exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf 
'"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" },
+-      { MODKEY|ShiftMask,             XK_Return,      spawn,          "exec 
uxterm" },
++      { MODKEY|ShiftMask,             XK_Return,      spawn,          "exec 
xterm" },
+       { MODKEY,                       XK_j,           focusnext,      NULL },
+       { MODKEY,                       XK_k,           focusprev,      NULL },
+       { MODKEY,                       XK_r,           reapply,        NULL },
Index: patches/patch-config_h
===================================================================
RCS file: patches/patch-config_h
diff -N patches/patch-config_h
--- patches/patch-config_h      25 Nov 2007 12:07:06 -0000      1.3
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,30 +0,0 @@
---- config.h.orig      Sat Nov 24 23:23:08 2007
-+++ config.h   Sat Nov 24 23:23:09 2007
-@@ -4,12 +4,12 @@
- #define BARPOS                        BarTop /* BarBot, BarOff */
- #define BORDERPX              1
- #define FONT                  "-*-terminus-medium-*-*-*-*-*-*-*-*-*-*-*"
--#define NORMBORDERCOLOR               "#cccccc"
--#define NORMBGCOLOR           "#cccccc"
--#define NORMFGCOLOR           "#000000"
--#define SELBORDERCOLOR                "#0066ff"
--#define SELBGCOLOR            "#0066ff"
--#define SELFGCOLOR            "#ffffff"
-+#define NORMBORDERCOLOR               "#404040"
-+#define NORMBGCOLOR           "#202020"
-+#define NORMFGCOLOR           "#c0c0c0"
-+#define SELBORDERCOLOR                "#8888ff"
-+#define SELBGCOLOR            "#404040"
-+#define SELFGCOLOR            "#f0f0f0"
- 
- /* tagging */
- const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", 
"www" };
-@@ -39,7 +39,7 @@ Key keys[] = {
-       { MODKEY,                       XK_p,           spawn,
-               "exe=`dmenu_path | dmenu -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf 
'"NORMFGCOLOR"'"
-               " -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'` && exec $exe" },
--      { MODKEY|ShiftMask,             XK_Return,      spawn, "exec uxterm" },
-+      { MODKEY|ShiftMask,             XK_Return,      spawn, "exec xterm" },
-       { MODKEY,                       XK_space,       setlayout,      NULL },
-       { MODKEY,                       XK_b,           togglebar,      NULL },
-       { MODKEY,                       XK_j,           focusnext,      NULL },
Index: patches/patch-config_mk
===================================================================
RCS file: patches/patch-config_mk
diff -N patches/patch-config_mk
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-config_mk     9 Apr 2008 01:18:15 -0000
@@ -0,0 +1,37 @@
+$OpenBSD$
+--- config.mk.orig     Thu Apr  3 22:57:01 2008
++++ config.mk  Tue Apr  8 18:59:01 2008
+@@ -4,19 +4,19 @@ VERSION = 4.9
+ # Customize below to fit your system
+ 
+ # paths
+-PREFIX = /usr/local
+-MANPREFIX = ${PREFIX}/share/man
++#PREFIX = /usr/local
++MANPREFIX = ${PREFIX}/man
+ 
+-X11INC = /usr/X11R6/include
+-X11LIB = /usr/X11R6/lib
++X11INC = ${X11BASE}/include
++X11LIB = ${X11BASE}/lib
+ 
+ # includes and libs
+-INCS = -I. -I/usr/include -I${X11INC}
+-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11
++INCS = -I${X11INC}
++LIBS = -L${X11LIB} -lX11
+ 
+ # flags
+-CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
+-LDFLAGS = -s ${LIBS}
++CFLAGS+= ${INCS} -DVERSION=\"${VERSION}\"
++LDFLAGS = ${LIBS}
+ #CFLAGS = -g -std=c99 -pedantic -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
+ #LDFLAGS = -g ${LIBS}
+ 
+@@ -25,4 +25,4 @@ LDFLAGS = -s ${LIBS}
+ #LDFLAGS = ${LIBS}
+ 
+ # compiler and linker
+-CC = cc
++#CC = cc

Reply via email to