diff options
author | dhn <dhn@FreeBSD.org> | 2011-03-25 21:43:01 +0800 |
---|---|---|
committer | dhn <dhn@FreeBSD.org> | 2011-03-25 21:43:01 +0800 |
commit | f3b1a865e604b41367d1209acdb01f233bcbabd2 (patch) | |
tree | 54b326c9671a110ef82ca9bf316c8e7fa107d662 /x11-wm | |
parent | 02e6b903a68177d6a7b7f58a2d0eb9aeba7cb579 (diff) | |
download | freebsd-ports-gnome-f3b1a865e604b41367d1209acdb01f233bcbabd2.tar.gz freebsd-ports-gnome-f3b1a865e604b41367d1209acdb01f233bcbabd2.tar.zst freebsd-ports-gnome-f3b1a865e604b41367d1209acdb01f233bcbabd2.zip |
- Bump PORTREVISION
- Add Xinerama support
- Add pkg-message
PR: ports/155930
Submitted by: Jeroen Schot <schot@A-Eskwadraat.nl> (maintainer)
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/dwm/Makefile | 22 | ||||
-rw-r--r-- | x11-wm/dwm/files/patch-Makefile | 24 | ||||
-rw-r--r-- | x11-wm/dwm/files/patch-config.mk | 18 | ||||
-rw-r--r-- | x11-wm/dwm/pkg-message | 6 |
4 files changed, 60 insertions, 10 deletions
diff --git a/x11-wm/dwm/Makefile b/x11-wm/dwm/Makefile index 192cfb20b89e..0b3328ffc69e 100644 --- a/x11-wm/dwm/Makefile +++ b/x11-wm/dwm/Makefile @@ -7,6 +7,7 @@ PORTNAME= dwm PORTVERSION= 5.8.2 +PORTREVISION= 1 CATEGORIES= x11-wm MASTER_SITES= http://dl.suckless.org/${PORTNAME}/ \ http://schot.a-eskwadraat.nl/files/ @@ -14,14 +15,20 @@ MASTER_SITES= http://dl.suckless.org/${PORTNAME}/ \ MAINTAINER= schot@a-eskwadraat.nl COMMENT= A dynamic, small, fast and simple window manager -RUN_DEPENDS= dmenu:${PORTSDIR}/x11/dmenu +OPTIONS= XINERAMA "Enable Xinerama support" On -USE_XORG= x11 xinerama +USE_XORG= x11 MAN1= dwm.1 PLIST_FILES= bin/dwm PORTDOCS= LICENSE README +.include <bsd.port.options.mk> + +.if defined(WITH_XINERAMA) +USE_XORG+= xinerama +.endif + pre-everything:: @${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" @@ -33,6 +40,16 @@ post-extract: @${CP} ${DWM_CONF} ${WRKSRC}/config.h .endif +post-patch: + @${GREP} -Rl '%%[[:alpha:]]\+%%' ${WRKSRC}|${XARGS} ${REINPLACE_CMD} \ + -e "s,%%PREFIX%%,${PREFIX},g" \ + -e "s,%%LOCALBASE%%,${LOCALBASE},g" \ + -e "s,%%MANPREFIX%%,${MANPREFIX},g" +.if defined(WITHOUT_XINERAMA) + @${REINPLACE_CMD} -e 's,$${XINERAMALIBS},,g' \ + -e 's,$${XINERAMAFLAGS},,g' ${WRKSRC}/config.mk +.endif + post-install: .if !defined(NOPORTDOCS) @${ECHO_MSG} "installing additional documentation to ${DOCSDIR}" @@ -40,5 +57,6 @@ post-install: @${INSTALL_MAN} ${WRKSRC}/LICENSE ${DOCSDIR} @${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR} .endif + @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/x11-wm/dwm/files/patch-Makefile b/x11-wm/dwm/files/patch-Makefile new file mode 100644 index 000000000000..3c860951a0d3 --- /dev/null +++ b/x11-wm/dwm/files/patch-Makefile @@ -0,0 +1,24 @@ +--- 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 30f6c7aaa975..ae953211ef5a 100644 --- a/x11-wm/dwm/files/patch-config.mk +++ b/x11-wm/dwm/files/patch-config.mk @@ -1,26 +1,28 @@ ---- config.mk.orig 2010-05-28 12:43:17.000000000 +0200 -+++ config.mk 2010-05-28 14:05:14.000000000 +0200 +--- config.mk.orig 2011-03-25 12:53:06.000000000 +0100 ++++ config.mk 2011-03-25 12:54:25.000000000 +0100 @@ -4,11 +4,11 @@ # Customize below to fit your system # paths -PREFIX = /usr/local -MANPREFIX = ${PREFIX}/share/man -+PREFIX?= /usr/local -+MANPREFIX = ${PREFIX}/man ++PREFIX = %%PREFIX%% ++MANPREFIX = %%MANPREFIX%% -X11INC = /usr/X11R6/include -X11LIB = /usr/X11R6/lib -+X11INC = $(LOCALBASE)/include -+X11LIB = $(LOCALBASE)/lib ++X11INC = %%LOCALBASE%%/include ++X11LIB = %%LOCALBASE%%/lib # Xinerama XINERAMALIBS = -L${X11LIB} -lXinerama -@@ -20,9 +20,9 @@ +@@ -19,10 +19,10 @@ + LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS} # flags - CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} +-CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} -CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} ++CPPFLAGS+= -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} +CFLAGS+= -std=c99 ${INCS} ${CPPFLAGS} #CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} -LDFLAGS = -g ${LIBS} diff --git a/x11-wm/dwm/pkg-message b/x11-wm/dwm/pkg-message new file mode 100644 index 000000000000..b9fcc9409a48 --- /dev/null +++ b/x11-wm/dwm/pkg-message @@ -0,0 +1,6 @@ +************************************************************* + +When using the default dwm config.h installation of xterm and +dmenu is recommended. + +************************************************************* |