1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00

x11-wm/dwm: update to 6.1

Drop unused dependencies likely from overlinking in the past.

$ readelf -d /usr/local/bin/dwm | fgrep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: [libX11.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libXinerama.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libfontconfig.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libXft.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.7]

Changes:	http://lists.suckless.org/dev/1511/27504.html
PR:		203325, 204658
Approved by:	maintainer timeout (18 days)
This commit is contained in:
Jan Beich 2015-12-07 04:58:49 +00:00
parent 53a3f11c08
commit af34680a6b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=403178
3 changed files with 20 additions and 44 deletions

View File

@ -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}

View File

@ -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

View File

@ -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