svn commit: r403180 - in head/x11-wm/dwm: . files
Jan Beich
jbeich at FreeBSD.org
Mon Dec 7 05:00:59 UTC 2015
Author: jbeich
Date: Mon Dec 7 05:00:57 2015
New Revision: 403180
URL: https://svnweb.freebsd.org/changeset/ports/403180
Log:
x11-wm/dwm: simplify patching
Override variables instead of trying to fix them, sometimes incorrectly.
PR: 204658
Approved by: portmgr blanket
Deleted:
head/x11-wm/dwm/files/patch-Makefile
Modified:
head/x11-wm/dwm/Makefile (contents, props changed)
head/x11-wm/dwm/files/patch-config.mk (contents, props changed)
Modified: head/x11-wm/dwm/Makefile
==============================================================================
--- head/x11-wm/dwm/Makefile Mon Dec 7 04:59:36 2015 (r403179)
+++ head/x11-wm/dwm/Makefile Mon Dec 7 05:00:57 2015 (r403180)
@@ -20,8 +20,11 @@ OPTIONS_DEFINE= XINERAMA DOCS
OPTIONS_DEFAULT=XINERAMA
XINERAMA_USE= XORG=xinerama
+XINERAMA_MAKE_ARGS_OFF= XINERAMAFLAGS= XINERAMALIBS=
USE_XORG= x11 xft
+MAKE_ARGS= CC="${CC}" PREFIX="${PREFIX}" MANPREFIX="${MANPREFIX}/man" \
+ X11INC="${LOCALBASE}/include" X11LIB="${LOCALBASE}/lib"
PLIST_FILES= bin/dwm \
man/man1/dwm.1.gz
@@ -38,16 +41,6 @@ post-extract:
${CP} "${DWM_CONF}" ${WRKSRC}/config.h; \
fi
-post-patch:
- @${GREP} -Rl '%%[[:alpha:]]\+%%' ${WRKSRC}|${XARGS} ${REINPLACE_CMD} \
- -e "s,%%PREFIX%%,${PREFIX},g" \
- -e "s,%%LOCALBASE%%,${LOCALBASE},g" \
- -e "s,%%MANPREFIX%%,${MANPREFIX},g"
-
-post-patch-XINERAMA-off:
- @${REINPLACE_CMD} -e 's,$${XINERAMALIBS},,g' \
- -e 's,$${XINERAMAFLAGS},,g' ${WRKSRC}/config.mk
-
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
Modified: head/x11-wm/dwm/files/patch-config.mk
==============================================================================
--- head/x11-wm/dwm/files/patch-config.mk Mon Dec 7 04:59:36 2015 (r403179)
+++ head/x11-wm/dwm/files/patch-config.mk Mon Dec 7 05:00:57 2015 (r403180)
@@ -1,22 +1,6 @@
--- config.mk.orig 2015-11-08 22:39:37 UTC
+++ config.mk
-@@ -4,11 +4,11 @@ VERSION = 6.1
- # Customize below to fit your system
-
- # paths
--PREFIX = /usr/local
--MANPREFIX = ${PREFIX}/share/man
-+PREFIX = %%PREFIX%%
-+MANPREFIX = %%MANPREFIX%%
-
--X11INC = /usr/X11R6/include
--X11LIB = /usr/X11R6/lib
-+X11INC = %%LOCALBASE%%/include
-+X11LIB = %%LOCALBASE%%/lib
-
- # Xinerama, comment if you don't want it
- XINERAMALIBS = -lXinerama
-@@ -25,14 +25,14 @@ INCS = -I${X11INC} -I${FREETYPEINC}
+@@ -25,10 +25,10 @@ INCS = -I${X11INC} -I${FREETYPEINC}
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
# flags
@@ -31,8 +15,3 @@
# Solaris
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
- #LDFLAGS = ${LIBS}
-
- # compiler and linker
--CC = cc
-+CC?= cc
More information about the svn-ports-all
mailing list