Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2007 14:43:19 +0100
From:      "Jeroen Schot" <schot@a-eskwadraat.nl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/108602: Update port: x11-wm/dwm fix DWM_CONF knob
Message-ID:  <20070131134319.8296258000E@pollux.warande.net>
Resent-Message-ID: <200701311350.l0VDoF7K084572@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         108602
>Category:       ports
>Synopsis:       Update port: x11-wm/dwm fix DWM_CONF knob
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 31 13:50:15 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Jeroen Schot
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD vocal 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:32:43 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
The DWM_CONF knob did nothing in a clean environment. This patch fixes this.
>How-To-Repeat:
>Fix:
diff -ruN dwm.orig/Makefile dwm/Makefile
--- dwm.orig/Makefile	Thu Jan 25 18:50:04 2007
+++ dwm/Makefile	Wed Jan 31 14:37:07 2007
@@ -16,17 +16,18 @@
 
 USE_XLIB=	yes
 
+MAN1=		dwm.1
+PLIST_FILES=	bin/dwm
+
 pre-everything::
-		@${ECHO} ==================================================================
-		@${ECHO} You may build dwm with your own config.h, just use DWM_CONF knob:
-		@${ECHO} make DWM_CONF=/path/to/dwm/config.h install clean
-		@${ECHO} ==================================================================
+	@${ECHO_MSG} "You can build dwm with your own config.h using the DWM_CONF knob:"
+	@${ECHO_MSG} "make DWM_CONF=/path/to/dwm/config.h install clean"
+	@${ECHO_MSG} "Note: Pre-3.2 config.h-files no longer work."
 
+post-extract:
 .if defined(DWM_CONF)
-	@${CP} {$DWM_CONF} ${WRKSRC}/config.h
+	@${ECHO_MSG} "creating config.h from ${DWM_CONF}"
+	@${CP} ${DWM_CONF} ${WRKSRC}/config.h
 .endif
-
-MAN1=		dwm.1
-PLIST_FILES=	bin/dwm
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070131134319.8296258000E>