Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jan 2014 12:55:36 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r338761 - head/x11/swarp
Message-ID:  <201401051255.s05Cta13070038@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Sun Jan  5 12:55:36 2014
New Revision: 338761
URL: http://svnweb.freebsd.org/changeset/ports/338761

Log:
  - Stage support
  - Add missing OPTIONS_DEFINE

Modified:
  head/x11/swarp/Makefile

Modified: head/x11/swarp/Makefile
==============================================================================
--- head/x11/swarp/Makefile	Sun Jan  5 12:50:47 2014	(r338760)
+++ head/x11/swarp/Makefile	Sun Jan  5 12:55:36 2014	(r338761)
@@ -22,7 +22,8 @@ MAKE_ARGS=	LDFLAGS="${LDFLAGS} -L${LOCAL
 PORTDOCS=	README
 PLIST_FILES=	bin/swarp
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
+
 .include <bsd.port.options.mk>
 
 post-patch:
@@ -30,8 +31,8 @@ post-patch:
 
 post-install:
 .if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>



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