Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 2014 11:24:28 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r345068 - head/devel/st
Message-ID:  <201402191124.s1JBOSfw097780@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Wed Feb 19 11:24:27 2014
New Revision: 345068
URL: http://svnweb.freebsd.org/changeset/ports/345068
QAT: https://qat.redports.org/buildarchive/r345068/

Log:
  Support staging

Modified:
  head/devel/st/Makefile

Modified: head/devel/st/Makefile
==============================================================================
--- head/devel/st/Makefile	Wed Feb 19 11:22:01 2014	(r345067)
+++ head/devel/st/Makefile	Wed Feb 19 11:24:27 2014	(r345068)
@@ -18,8 +18,7 @@ DOCS=		fig.gif notes.html reference.html
 EXAMPLES=	Makefile README error.c lookupdns.c proxy.c \
 		res.c server.c
 
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
 post-patch:
 	@${RM} -f ${WRKSRC}/Makefile ${WRKSRC}/examples/Makefile
@@ -27,14 +26,11 @@ post-patch:
 	@${CP} ${FILESDIR}/Makefile.examples ${WRKSRC}/examples/Makefile
 
 post-install:
-	@${CP} ${WRKSRC}/public.h ${PREFIX}/include/st.h
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	@${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/docs/,} ${DOCSDIR}/
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
-	@${MKDIR} ${EXAMPLESDIR}
-	@${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/examples/,} ${EXAMPLESDIR}/
-.endif
+	${INSTALL_DATA} ${WRKSRC}/public.h ${STAGEDIR}${PREFIX}/include/st.h
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/docs/,} ${STAGEDIR}${DOCSDIR}/
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/examples/,} \
+		${STAGEDIR}${EXAMPLESDIR}/
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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