Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Feb 2014 08:46:10 +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: r346467 - head/x11-wm/antiwm
Message-ID:  <201402280846.s1S8kA0Z082875@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Feb 28 08:46:09 2014
New Revision: 346467
URL: http://svnweb.freebsd.org/changeset/ports/346467
QAT: https://qat.redports.org/buildarchive/r346467/

Log:
  Support stage
  Use options
  Use do-install to avoid running buggy upstreamed install target

Modified:
  head/x11-wm/antiwm/Makefile

Modified: head/x11-wm/antiwm/Makefile
==============================================================================
--- head/x11-wm/antiwm/Makefile	Fri Feb 28 08:45:12 2014	(r346466)
+++ head/x11-wm/antiwm/Makefile	Fri Feb 28 08:46:09 2014	(r346467)
@@ -7,14 +7,15 @@ CATEGORIES=	x11-wm
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
 
 MAINTAINER=	dhn@FreeBSD.org
-COMMENT=	A minimalist window manager inspired by Ratpoison
+COMMENT=	Minimalist window manager inspired by Ratpoison
+
+OPTIONS_DEFINE=	DOCS
 
 USE_XORG=	x11
 
 PLIST_FILES=	bin/antiwm
 PORTDOCS=	README LICENSE
 
-NO_STAGE=	yes
 pre-everything::
 	@${ECHO_MSG} "You can build antiwm with your own conf.h using the ANTIWM_CONF knob:"
 	@${ECHO_MSG} "make ANTIWM_CONF=/path/to/antiwm/conf.h install clean"
@@ -25,11 +26,9 @@ post-extract:
 	@${CP} ${ANTIWM_CONF} ${WRKSRC}/conf.h
 .endif
 
-post-install:
-.if !defined(NOPORTDOCS)
-	@${ECHO_MSG} "installing additional documentation to ${DOCSDIR}"
-	@${MKDIR} ${DOCSDIR}
-	@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
-.endif
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
 
 .include <bsd.port.mk>



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