diff options
author | bapt <bapt@FreeBSD.org> | 2013-06-14 20:49:56 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-06-14 20:49:56 +0800 |
commit | 2be1ef89b89ab039b28cc2ebe33b7f9d6ca3f8ae (patch) | |
tree | 8f331ab36a1fb99c63c2310992a891cdb00d32c4 | |
parent | 7f8901ff0415e77a5f517a22b436a62e19c5537b (diff) | |
download | freebsd-ports-gnome-2be1ef89b89ab039b28cc2ebe33b7f9d6ca3f8ae.tar.gz freebsd-ports-gnome-2be1ef89b89ab039b28cc2ebe33b7f9d6ca3f8ae.tar.zst freebsd-ports-gnome-2be1ef89b89ab039b28cc2ebe33b7f9d6ca3f8ae.zip |
Use the new USES=display:build
While here fix build with recent clang
-rw-r--r-- | x11/xgrab/Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/x11/xgrab/Makefile b/x11/xgrab/Makefile index 862ad2fc99f7..ca0a5773da1a 100644 --- a/x11/xgrab/Makefile +++ b/x11/xgrab/Makefile @@ -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=${PREFIX}/man/man1 \ 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> |