git: bee4c95d61d1 - main - x11-wm/windowmaker: Enable XRandR support

From: Hiroki Sato <hrs_at_FreeBSD.org>
Date: Thu, 08 Feb 2024 06:05:21 UTC
The branch main has been updated by hrs:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bee4c95d61d1194bfd89cefbfdd114280eb19013

commit bee4c95d61d1194bfd89cefbfdd114280eb19013
Author:     Hiroki Sato <hrs@FreeBSD.org>
AuthorDate: 2024-02-08 06:03:42 +0000
Commit:     Hiroki Sato <hrs@FreeBSD.org>
CommitDate: 2024-02-08 06:05:12 +0000

    x11-wm/windowmaker: Enable XRandR support
    
    Pull Request: https://github.com/freebsd/freebsd-ports/pull/165
---
 x11-wm/windowmaker/Makefile | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/x11-wm/windowmaker/Makefile b/x11-wm/windowmaker/Makefile
index 35af53caa43e..cc6a5bd98555 100644
--- a/x11-wm/windowmaker/Makefile
+++ b/x11-wm/windowmaker/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	windowmaker
 PORTVERSION=	0.96.0
+PORTREVISION=	1
 CATEGORIES=	x11-wm windowmaker
 MASTER_SITES=	https://www.windowmaker.org/pub/source/release/ \
 		https://github.com/window-maker/wmaker/releases/download/wmaker-${PORTVERSION}/ LOCAL/danfe
@@ -22,12 +23,12 @@ LIB_DEPENDS=	libgif.so:graphics/giflib \
 		libexif.so:graphics/libexif
 RUN_DEPENDS=	${LOCALBASE}/share/WindowMaker/Themes/LeetWM.themed/style:graphics/wmicons
 
-USES=		cpe gmake gnome jpeg libtool pathfix perl5 pkgconfig \
-		shebangfix xorg
+USES=		cpe desktop-file-utils gmake gnome jpeg libtool localbase \
+		pathfix perl5 pkgconfig shebangfix xorg
 USE_CSTD=	c99
 USE_GNOME=	pango
 USE_LDCONFIG=	yes
-USE_XORG=	x11 xext xft xinerama xmu xpm
+USE_XORG=	x11 xext xft xinerama xmu xpm xrandr xres
 SHEBANG_FILES=	util/wkdemenu.pl
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	ac_cv_header_sys_inotify_h=no \
@@ -42,9 +43,8 @@ CONFIGURE_ARGS=	--with-pixmapdir=${PREFIX}/include/X11/pixmaps \
 		--enable-xinerama \
 		--enable-usermenu \
 		--enable-wmreplace \
+		--enable-xrandr \
 		--with-x
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
 INSTALL_TARGET=	install-strip
 
 PORTDOCS=	AUTHORS BUGFORM BUGS ChangeLog FAQ INSTALL \
@@ -67,7 +67,7 @@ NLS_CONFIGURE_ENABLE=	locale
 post-patch-IMAGEMAGICK-on:
 .if ${IMAGEMAGICK_DEFAULT} == 6
 	@${REINPLACE_CMD} -e '/MagickWand\.h/s,MagickWand/,wand/,' \
-		${WRKSRC}/configure ${WRKSRC}/wrlib/load_magick.c
+	    ${WRKSRC}/configure ${WRKSRC}/wrlib/load_magick.c
 .endif
 
 post-install:
@@ -75,8 +75,10 @@ post-install:
 	    ${STAGEDIR}${PREFIX}/GNUstep/Applications/WPrefs.app/xpm \
 	    ${STAGEDIR}${PREFIX}/share/WindowMaker/Sounds
 
-post-install-DOCS-on:
+pre-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+
+post-install-DOCS-on:
 	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>