- Bump PORTREVISION
- Add Xinerama support - Add pkg-message PR: ports/155930 Submitted by: Jeroen Schot <schot@A-Eskwadraat.nl> (maintainer)
This commit is contained in:
parent
2ad3d9b5eb
commit
bc913da4f6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=271721
4 changed files with 60 additions and 10 deletions
|
@ -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>
|
||||
|
|
24
x11-wm/dwm/files/patch-Makefile
Normal file
24
x11-wm/dwm/files/patch-Makefile
Normal file
|
@ -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
|
|
@ -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}
|
||||
|
|
6
x11-wm/dwm/pkg-message
Normal file
6
x11-wm/dwm/pkg-message
Normal file
|
@ -0,0 +1,6 @@
|
|||
*************************************************************
|
||||
|
||||
When using the default dwm config.h installation of xterm and
|
||||
dmenu is recommended.
|
||||
|
||||
*************************************************************
|
Loading…
Reference in a new issue