Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2014 00:46:37 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r343565 - head/x11-wm/windowlab
Message-ID:  <201402100046.s1A0kbUh021970@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Mon Feb 10 00:46:36 2014
New Revision: 343565
URL: http://svnweb.freebsd.org/changeset/ports/343565
QAT: https://qat.redports.org/buildarchive/r343565/

Log:
  - Add stage support
  - Convert USE_GMAKE to USES
  - Use options helpers

Modified:
  head/x11-wm/windowlab/Makefile

Modified: head/x11-wm/windowlab/Makefile
==============================================================================
--- head/x11-wm/windowlab/Makefile	Mon Feb 10 00:27:03 2014	(r343564)
+++ head/x11-wm/windowlab/Makefile	Mon Feb 10 00:46:36 2014	(r343565)
@@ -16,25 +16,20 @@ LICENSE=	GPLv2
 
 OPTIONS_DEFINE=	XFT DOCS
 
+USES=		gmake
 USE_XORG=	x11 xext
-USE_GMAKE=	yes
 MAKE_ENV=	XROOT="${LOCALBASE}" SYSCONFDIR="${ETCDIR}"
 
-MAN1=		windowlab.1x
 PORTDOCS=	CHANGELOG README
-PLIST_FILES=	bin/windowlab %%ETCDIR%%/menurc
+PLIST_FILES=	bin/windowlab %%ETCDIR%%/menurc \
+		man/man1/windowlab.1x.gz
 PLIST_DIRS=	%%ETCDIR%%
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MXFT}
-USE_XORG+=	xft
-USES+=		pkgconfig
-MAKE_ENV+=	EXTRA_INC="$$(pkg-config --cflags xft)" \
+XFT_USE=	XORG=xft
+XFT_USES=	pkgconfig
+XFT_MAKE_ENV=	EXTRA_INC="$$(pkg-config --cflags xft)" \
 		EXTRA_LIBS="$$(pkg-config --libs xft)"
-CFLAGS+=	-DXFT
-.endif
+XFT_CFLAGS=	-DXFT
 
 post-patch:
 	@${REINPLACE_CMD} -e \
@@ -44,15 +39,13 @@ post-patch:
 		 s|^\(CC\) =|\1 ?=|' ${WRKSRC}/Makefile
 
 do-install:
-	(cd ${WRKSRC} && ${INSTALL_PROGRAM} windowlab ${PREFIX}/bin)
-	(cd ${WRKSRC} && ${INSTALL_MAN} windowlab.1x ${MANPREFIX}/man/man1)
-	@${MKDIR} ${ETCDIR}
-	(cd ${WRKSRC} && ${INSTALL_DATA} windowlab.menurc ${ETCDIR}/menurc)
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} windowlab ${STAGEDIR}${PREFIX}/bin)
+	(cd ${WRKSRC} && ${INSTALL_MAN} windowlab.1x ${STAGEDIR}${MANPREFIX}/man/man1)
+	@${MKDIR} ${STAGEDIR}${ETCDIR}
+	(cd ${WRKSRC} && ${INSTALL_DATA} windowlab.menurc ${STAGEDIR}${ETCDIR}/menurc)
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for i in ${PORTDOCS}
-	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
 .endfor
-.endif
 
 .include <bsd.port.mk>



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