diff options
author | jbeich <jbeich@FreeBSD.org> | 2015-12-07 13:00:57 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2015-12-07 13:00:57 +0800 |
commit | 1673f73a309df5a6a85a6645977af41f5a4e0701 (patch) | |
tree | 1f53457118113475c70cdd22ca5d9d55ece76cc6 /x11-wm/dwm/files | |
parent | 2eb3abcf20cedd1e6374117b86d2ce0f9ea3ba02 (diff) | |
download | freebsd-ports-gnome-1673f73a309df5a6a85a6645977af41f5a4e0701.tar.gz freebsd-ports-gnome-1673f73a309df5a6a85a6645977af41f5a4e0701.tar.zst freebsd-ports-gnome-1673f73a309df5a6a85a6645977af41f5a4e0701.zip |
x11-wm/dwm: simplify patching
Override variables instead of trying to fix them, sometimes incorrectly.
PR: 204658
Approved by: portmgr blanket
Diffstat (limited to 'x11-wm/dwm/files')
-rw-r--r-- | x11-wm/dwm/files/patch-Makefile | 24 | ||||
-rw-r--r-- | x11-wm/dwm/files/patch-config.mk | 23 |
2 files changed, 1 insertions, 46 deletions
diff --git a/x11-wm/dwm/files/patch-Makefile b/x11-wm/dwm/files/patch-Makefile deleted file mode 100644 index 3c860951a0d3..000000000000 --- a/x11-wm/dwm/files/patch-Makefile +++ /dev/null @@ -1,24 +0,0 @@ ---- Makefile.orig 2011-03-25 12:53:10.000000000 +0100 -+++ Makefile 2011-03-25 12:53:19.000000000 +0100 -@@ -46,15 +46,15 @@ - @mkdir -p ${DESTDIR}${PREFIX}/bin - @cp -f dwm ${DESTDIR}${PREFIX}/bin - @chmod 755 ${DESTDIR}${PREFIX}/bin/dwm -- @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 -- @mkdir -p ${DESTDIR}${MANPREFIX}/man1 -- @sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1 -- @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1 -+ @echo installing manual page to ${DESTDIR}${MANPREFIX}/man/man1 -+ @mkdir -p ${DESTDIR}${MANPREFIX}/man/man1 -+ @sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man/man1/dwm.1 -+ @chmod 644 ${DESTDIR}${MANPREFIX}/man/man1/dwm.1 - - uninstall: - @echo removing executable file from ${DESTDIR}${PREFIX}/bin - @rm -f ${DESTDIR}${PREFIX}/bin/dwm -- @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 -- @rm -f ${DESTDIR}${MANPREFIX}/man1/dwm.1 -+ @echo removing manual page from ${DESTDIR}${MANPREFIX}/man/man1 -+ @rm -f ${DESTDIR}${MANPREFIX}/man/man1/dwm.1 - - .PHONY: all options clean dist install uninstall diff --git a/x11-wm/dwm/files/patch-config.mk b/x11-wm/dwm/files/patch-config.mk index 3bb35d47c94a..ef1fe2160438 100644 --- a/x11-wm/dwm/files/patch-config.mk +++ b/x11-wm/dwm/files/patch-config.mk @@ -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 |