svn commit: r346467 - head/x11-wm/antiwm

Baptiste Daroussin bapt at FreeBSD.org
Fri Feb 28 08:46:10 UTC 2014


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 at 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>


More information about the svn-ports-all mailing list