Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jun 2013 12:49:57 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r320907 - head/x11/xgrab
Message-ID:  <201306141249.r5ECnvDw015371@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Jun 14 12:49:56 2013
New Revision: 320907
URL: http://svnweb.freebsd.org/changeset/ports/320907

Log:
  Use the new USES=display:build
  While here fix build with recent clang

Modified:
  head/x11/xgrab/Makefile

Modified: head/x11/xgrab/Makefile
==============================================================================
--- head/x11/xgrab/Makefile	Fri Jun 14 12:47:19 2013	(r320906)
+++ head/x11/xgrab/Makefile	Fri Jun 14 12:49:56 2013	(r320907)
@@ -15,9 +15,9 @@ COMMENT=	X11 image grabber
 
 BUILD_DEPENDS=	xrdb:${PORTSDIR}/x11/xrdb
 
+USES=		display:build
 USE_XORG=	x11
 USE_IMAKE=	yes
-USE_DISPLAY=	yes
 
 MAKE_FLAGS=	BINDIR=${PREFIX}/bin MANDIR=${PREFIX}/man/man1 \
 		XAPPLOADDIR=${PREFIX}/lib/X11/app-defaults  -f
@@ -25,10 +25,9 @@ MAKE_FLAGS=	BINDIR=${PREFIX}/bin MANDIR=
 XMKMF=		xmkmf
 CFLAGS+=	-Wno-error=return-type
 
-.if (!defined(DISPLAY) || ${DISPLAY} == "") && !defined(PACKAGE_BUILDING)
-IGNORE=		Requires an active X session (and DISPLAY variable) to run xrdb.  Please compile this while running X.
-.endif
-
 MAN1=		xgrab.1 xgrabsc.1
 
+post-patch:
+	@${REINPLACE_CMD} 's,\*envp,\*\*envp,g' ${WRKSRC}/xgrabxaw.c
+
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306141249.r5ECnvDw015371>