mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
92ea0d614b
an zeising, kwm, miwi, bapt, eadler production: Xorg 7.7 Starring: xserver 1.12.4 (new xorg only) Mesa 8.0.4, including libGL, libGLU and dri (new xorg only) libX11 1.5.0 libxcb 1.9 libdrm 2.4.42 (new xorg only) freeglut 2.8.1 Also starring: Updates to drivers and other libraries and utilities Additional notes: Change pkgconf to be a build dependency. Add a new USE_XORG, xcb, to depend on libxcb and update all ports to use this. Trim makefile headers. Take maintanership of x11/xcb-proto, ok'd by ashish. If you are running WITH_NEW_XORG=, you need to rebuild all installed drivers, see UPDATING for more information. Various fixes to make ports compile. PR: ports/177942 Exp-run by: miwi Approved by: portmgr (miwi) Thanks to all who helped testing!
77 lines
2.0 KiB
Makefile
77 lines
2.0 KiB
Makefile
# Created by: Jeroen Schot <schot@a-eskwadraat.nl>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dwm
|
|
PORTVERSION= 6.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= x11-wm
|
|
MASTER_SITES= http://dl.suckless.org/${PORTNAME}/ \
|
|
http://schot.a-eskwadraat.nl/files/
|
|
PATCH_SITES= http://dwm.suckless.org/patches/
|
|
|
|
MAINTAINER= schot@a-eskwadraat.nl
|
|
COMMENT= Dynamic, small, fast and simple window manager
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= pthread-stubs:${PORTSDIR}/devel/libpthread-stubs
|
|
|
|
OPTIONS_DEFINE= XINERAMA XFT DOCS
|
|
OPTIONS_DEFAULT=XINERAMA
|
|
|
|
USE_XORG= x11 xau xcb xdmcp xext
|
|
|
|
MAN1= dwm.1
|
|
PLIST_FILES= bin/dwm
|
|
PORTDOCS= README
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MXINERAMA}
|
|
USE_XORG+= xinerama
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MXFT}
|
|
LIB_DEPENDS+= freetype:${PORTSDIR}/print/freetype2 \
|
|
expat:${PORTSDIR}/textproc/expat2 \
|
|
fontconfig:${PORTSDIR}/x11-fonts/fontconfig
|
|
USE_XORG+= xft xrender
|
|
PATCHFILES+= ${PORTNAME}-${PORTVERSION}-xft.diff
|
|
.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"
|
|
@${ECHO_MSG} "Note: Pre-6.0 config.h-files no longer work."
|
|
|
|
post-extract:
|
|
.if defined(DWM_CONF)
|
|
@${ECHO_MSG} "creating config.h from ${DWM_CONF}"
|
|
@${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 empty(PORT_OPTIONS:MXINERAMA)
|
|
@${REINPLACE_CMD} -e 's,$${XINERAMALIBS},,g' \
|
|
-e 's,$${XINERAMAFLAGS},,g' ${WRKSRC}/config.mk
|
|
.endif
|
|
.if empty(PORT_OPTIONS:MXFT)
|
|
@${REINPLACE_CMD} -e 's,$${XFTLIBS},,g' \
|
|
-e 's,$${XFTINCS},,g' ${WRKSRC}/config.mk
|
|
.endif
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${ECHO_MSG} "installing additional documentation to ${DOCSDIR}"
|
|
@${MKDIR} ${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|