svn commit: r345068 - head/devel/st

Emanuel Haupt ehaupt at FreeBSD.org
Wed Feb 19 11:24:28 UTC 2014


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>


More information about the svn-ports-all mailing list