diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2015-12-07 04:58:49 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2015-12-07 04:58:49 +0000 |
commit | af34680a6b7a37a7a797cc22741600818625129b (patch) | |
tree | 86f6cdba9325f577dcab0523398ec8f49a86c0b2 /x11-wm | |
parent | 53a3f11c083cad83b9da66f4f0d7b5d834e96529 (diff) | |
download | ports-af34680a6b7a37a7a797cc22741600818625129b.tar.gz ports-af34680a6b7a37a7a797cc22741600818625129b.zip |
Notes
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/dwm/Makefile | 23 | ||||
-rw-r--r-- | x11-wm/dwm/distinfo | 6 | ||||
-rw-r--r-- | x11-wm/dwm/files/patch-config.mk | 35 |
3 files changed, 20 insertions, 44 deletions
diff --git a/x11-wm/dwm/Makefile b/x11-wm/dwm/Makefile index 32a88846c47d..ab8ab82e200d 100644 --- a/x11-wm/dwm/Makefile +++ b/x11-wm/dwm/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= dwm -PORTVERSION= 6.0 -PORTREVISION= 2 +PORTVERSION= 6.1 CATEGORIES= x11-wm MASTER_SITES= http://dl.suckless.org/${PORTNAME}/ \ http://schot.a-eskwadraat.nl/files/ @@ -15,12 +14,12 @@ COMMENT= Dynamic, small, fast and simple window manager LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -LIB_DEPENDS= libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs +LIB_DEPENDS= libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig -OPTIONS_DEFINE= XINERAMA XFT DOCS +OPTIONS_DEFINE= XINERAMA DOCS OPTIONS_DEFAULT=XINERAMA -USE_XORG= x11 xau xcb xdmcp xext +USE_XORG= x11 xft PLIST_FILES= bin/dwm \ man/man1/dwm.1.gz @@ -32,18 +31,10 @@ PORTDOCS= README USE_XORG+= xinerama .endif -.if ${PORT_OPTIONS:MXFT} -LIB_DEPENDS+= libfreetype.so:${PORTSDIR}/print/freetype2 \ - libexpat.so:${PORTSDIR}/textproc/expat2 \ - libfontconfig.so:${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." + @${ECHO_MSG} "Note: Pre-${PORTVERSION} config.h-files may not work." post-extract: .if defined(DWM_CONF) @@ -60,10 +51,6 @@ post-patch: @${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: @${MKDIR} ${STAGEDIR}${DOCSDIR} diff --git a/x11-wm/dwm/distinfo b/x11-wm/dwm/distinfo index d035c0678d82..fd302609de41 100644 --- a/x11-wm/dwm/distinfo +++ b/x11-wm/dwm/distinfo @@ -1,4 +1,2 @@ -SHA256 (dwm-6.0.tar.gz) = b2b9483de69259eeea56844899bb2385158d3e79a42d82b10c142099fc8eeb56 -SIZE (dwm-6.0.tar.gz) = 20810 -SHA256 (dwm-6.0-xft.diff) = badd329b1ec8d2d1b99816d3ca4eafa9fe784a93cfac29b96abca3821b441a4d -SIZE (dwm-6.0-xft.diff) = 6731 +SHA256 (dwm-6.1.tar.gz) = c2f6c56167f0acdbe3dc37cca9c1a19260c040f2d4800e3529a21ad7cce275fe +SIZE (dwm-6.1.tar.gz) = 25887 diff --git a/x11-wm/dwm/files/patch-config.mk b/x11-wm/dwm/files/patch-config.mk index b8a1b590cecf..3bb35d47c94a 100644 --- a/x11-wm/dwm/files/patch-config.mk +++ b/x11-wm/dwm/files/patch-config.mk @@ -1,6 +1,6 @@ ---- config.mk.orig 2011-12-19 15:02:46.000000000 +0000 -+++ config.mk 2012-08-18 00:38:31.000000000 +0000 -@@ -4,30 +4,34 @@ +--- 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 @@ -14,28 +14,19 @@ +X11INC = %%LOCALBASE%%/include +X11LIB = %%LOCALBASE%%/lib - # Xinerama - XINERAMALIBS = -L${X11LIB} -lXinerama - XINERAMAFLAGS = -DXINERAMA - -+# Xft -+XFTINCS = -I${X11INC}/freetype2 -+XFTLIBS = -L${X11LIB} -lXft -+ - # includes and libs --INCS = -I. -I/usr/include -I${X11INC} --LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS} -+INCS = -I. -I/usr/include -I${X11INC} ${XFTINCS} -+LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS} ${XFTLIBS} + # Xinerama, comment if you don't want it + XINERAMALIBS = -lXinerama +@@ -25,14 +25,14 @@ INCS = -I${X11INC} -I${FREETYPEINC} + LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} # flags --CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} +-CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} +-#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} +-CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS} +-LDFLAGS = -s ${LIBS} +CPPFLAGS+= -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} - #CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} --CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} -+CFLAGS+= -std=c99 ${INCS} ${CPPFLAGS} - #LDFLAGS = -g ${LIBS} --LDFLAGS = -s ${LIBS} ++#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} ++CFLAGS+= -std=c99 -Wno-deprecated-declarations ${INCS} ${CPPFLAGS} +LDFLAGS+= ${LIBS} # Solaris |