Maybe we can make happy the makefile for pkgsrc. This is the patch in the current pkgsrc tree. I understand that all these vars can be changed as make arguments. But why not let them be altered with environ vars or so? adding so many flags (-std -pedantic, ... makes it less portable (for other compilers), so i will encourage to use ?= instead of = for this kind of options.
NetBSD/pkgsrc politics on patches are to try to maintain as less as possible, sending them to the project for discussing :) [EMAIL PROTECTED]:/usr/pkgsrc/wm# cat dwm/patches/patch-aa $NetBSD: patch-aa,v 1.3 2007/11/25 23:23:25 wiz Exp $ --- config.mk.orig 2007-11-21 20:18:41.000000000 +0000 +++ config.mk @@ -4,19 +4,18 @@ VERSION = 4.7 # Customize below to fit your system # paths -PREFIX = /usr/local -MANPREFIX = ${PREFIX}/share/man +MANPREFIX = ${PREFIX}/${PKGMANDIR} -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 +LIBS = -lc -L${X11LIB} ${COMPILER_RPATH_FLAG}${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} @@ -26,4 +25,4 @@ LDFLAGS = -s ${LIBS} #CFLAGS += -xtarget=ultra # compiler and linker -CC = cc +#CC = cc