On Sat, Mar 17, 2007 at 03:27:07PM +0100, Matthias Kilian wrote: > On Fri, Mar 16, 2007 at 04:52:19PM +0100, Tobias Ulmer wrote: > > small update to the latest version of dmenu. > > tested on i386 > > The built doesn't honor at least DEBUG and CC. Since they have even > a hardcoded strip in their Makefile, you have to patch it (or supply > your own one). BTW this is a horrible example of a Makefile -- that > one in the distfile, not the one in your port, of course ;-) > > Ciao, > Kili > >
It does honor DEBUG, CFLAGS, LDFLAGS and CC for me ;) I'm not sure how "standard" strip is. Anyway here's a patch that fixes the strip issue Tobias
diff -x CVS -ruN ./Makefile ../../mystuff/x11/dmenu/Makefile --- ./Makefile Fri Mar 16 16:48:24 2007 +++ ../../mystuff/x11/dmenu/Makefile Sat Mar 17 15:59:15 2007 @@ -1,10 +1,10 @@ # $OpenBSD: Makefile,v 1.1.1.1 2007/01/19 21:38:40 steven Exp $ COMMENT= "dynamic menu for X11" -DISTNAME= dmenu-2.1 +DISTNAME= dmenu-2.8 CATEGORIES= x11 -HOMEPAGE= http://tools.suckless.org/ +HOMEPAGE= http://www.suckless.org/wiki/tools/xlib MAINTAINER= Tobias Ulmer <[EMAIL PROTECTED]> @@ -16,8 +16,9 @@ WANTLIB= X11 c -MASTER_SITES= ${HOMEPAGE}download/ +MASTER_SITES= http://www.suckless.org/download/ +MAKE_FLAGS= STRIP=${STRIP} FAKE_FLAGS= DESTDIR="" USE_X11= Yes diff -x CVS -ruN ./distinfo ../../mystuff/x11/dmenu/distinfo --- ./distinfo Fri Mar 16 16:48:24 2007 +++ ../../mystuff/x11/dmenu/distinfo Wed Mar 7 19:52:06 2007 @@ -1,4 +1,5 @@ -MD5 (dmenu-2.1.tar.gz) = a343d90d2121b1723cdcbfbbaf296b82 -RMD160 (dmenu-2.1.tar.gz) = ba8ec53d9084e921a525ba3c9595ceadb0f8c297 -SHA1 (dmenu-2.1.tar.gz) = 20bf14e457934f84e71bb984092efdf7718e88ff -SIZE (dmenu-2.1.tar.gz) = 7975 +MD5 (dmenu-2.8.tar.gz) = a1be678645e23929a79a3188013954f2 +RMD160 (dmenu-2.8.tar.gz) = 7cbbe6ffd75d99f8c021cc83c480be431e90353d +SHA1 (dmenu-2.8.tar.gz) = 6f486ce751e314c131b9233161fc621f69a7c42c +SHA256 (dmenu-2.8.tar.gz) = f375068b986cb44258a276545791901ea3be349f59a6f346bafb1fdaa727e206 +SIZE (dmenu-2.8.tar.gz) = 7755 diff -x CVS -ruN ./patches/patch-Makefile ../../mystuff/x11/dmenu/patches/patch-Makefile --- ./patches/patch-Makefile Thu Jan 1 01:00:00 1970 +++ ../../mystuff/x11/dmenu/patches/patch-Makefile Sat Mar 17 15:51:20 2007 @@ -0,0 +1,11 @@ +--- Makefile.orig Sat Mar 17 15:49:16 2007 ++++ Makefile Sat Mar 17 15:50:58 2007 +@@ -23,7 +23,7 @@ + dmenu: ${OBJ} + @echo CC -o $@ + @${CC} -o $@ ${OBJ} ${LDFLAGS} +- @strip $@ ++ @${STRIP} $@ + + clean: + @echo cleaning diff -x CVS -ruN ./patches/patch-config_mk ../../mystuff/x11/dmenu/patches/patch-config_mk --- ./patches/patch-config_mk Fri Mar 16 16:48:24 2007 +++ ../../mystuff/x11/dmenu/patches/patch-config_mk Sat Feb 24 22:00:33 2007 @@ -1,5 +1,5 @@ ---- config.mk.orig Tue Dec 19 11:49:03 2006 -+++ config.mk Wed Dec 27 21:09:16 2006 +--- config.mk.orig Sat Feb 24 15:38:22 2007 ++++ config.mk Sat Feb 24 21:55:34 2007 @@ -4,19 +4,19 @@ # Customize below to fit your system @@ -28,10 +28,9 @@ #CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" #LDFLAGS = -g ${LIBS} -@@ -26,5 +26,5 @@ +@@ -26,4 +26,4 @@ #CFLAGS += -xtarget=ultra # compiler and linker -CC = cc +# CC = cc - LD = ${CC} diff -x CVS -ruN ./pkg/PLIST ../../mystuff/x11/dmenu/pkg/PLIST --- ./pkg/PLIST Fri Mar 16 16:48:24 2007 +++ ../../mystuff/x11/dmenu/pkg/PLIST Sat Feb 24 22:01:22 2007 @@ -1,3 +1,4 @@ @comment $OpenBSD: PLIST,v 1.1.1.1 2007/01/19 21:38:40 steven Exp $ bin/dmenu +bin/dmenu_path @man man/man1/dmenu.1