Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jan 2014 13:05:48 +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: r338762 - head/x11/gromit
Message-ID:  <201401051305.s05D5mDq073961@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Sun Jan  5 13:05:48 2014
New Revision: 338762
URL: http://svnweb.freebsd.org/changeset/ports/338762

Log:
  - Stage support
  - Add missing OPTIONS_DEFINE

Modified:
  head/x11/gromit/Makefile

Modified: head/x11/gromit/Makefile
==============================================================================
--- head/x11/gromit/Makefile	Sun Jan  5 12:55:36 2014	(r338761)
+++ head/x11/gromit/Makefile	Sun Jan  5 13:05:48 2014	(r338762)
@@ -16,16 +16,17 @@ CFLAGS+=	-lm
 
 DOCS=		AUTHORS ChangeLog README
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
+
 .include <bsd.port.options.mk>
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/gromit ${PREFIX}/bin
-	@${MKDIR} ${EXAMPLESDIR}
-	${INSTALL_DATA}   ${WRKSRC}/gromitrc       ${EXAMPLESDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/gromit ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/gromitrc ${STAGEDIR}${EXAMPLESDIR}
 .if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${DOCS: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?201401051305.s05D5mDq073961>