diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2015-12-07 05:00:57 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2015-12-07 05:00:57 +0000 |
commit | ebcc3aa614c6bc8a750842e7f74f0c169e274756 (patch) | |
tree | 1f53457118113475c70cdd22ca5d9d55ece76cc6 /x11-wm | |
parent | 9153a28ad7df895a3179f86357726f0c2b8734de (diff) | |
download | ports-ebcc3aa614c6bc8a750842e7f74f0c169e274756.tar.gz ports-ebcc3aa614c6bc8a750842e7f74f0c169e274756.zip |
Notes
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/dwm/Makefile | 13 | ||||
-rw-r--r-- | x11-wm/dwm/files/patch-Makefile | 24 | ||||
-rw-r--r-- | x11-wm/dwm/files/patch-config.mk | 23 |
3 files changed, 4 insertions, 56 deletions
diff --git a/x11-wm/dwm/Makefile b/x11-wm/dwm/Makefile index 996e7539e4f3..3c9a6c996114 100644 --- a/x11-wm/dwm/Makefile +++ b/x11-wm/dwm/Makefile @@ -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} 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 |