aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorskreuzer <skreuzer@FreeBSD.org>2014-06-21 02:02:35 +0800
committerskreuzer <skreuzer@FreeBSD.org>2014-06-21 02:02:35 +0800
commit9b96da2d98ad65cea5134cfe870ffd733bb27196 (patch)
treee26dd1a87c32758d726a3b7fa4d0bde4a7545320
parent30525e75aa843588a0da8f8930c3a0add4e53838 (diff)
downloadfreebsd-ports-gnome-9b96da2d98ad65cea5134cfe870ffd733bb27196.tar.gz
freebsd-ports-gnome-9b96da2d98ad65cea5134cfe870ffd733bb27196.tar.zst
freebsd-ports-gnome-9b96da2d98ad65cea5134cfe870ffd733bb27196.zip
Add staging support
Define LICENSE Convert to new options framework
-rw-r--r--net/py-pcs/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/net/py-pcs/Makefile b/net/py-pcs/Makefile
index 3eefe22f543f..ab54bacad4f4 100644
--- a/net/py-pcs/Makefile
+++ b/net/py-pcs/Makefile
@@ -10,6 +10,8 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= gnn@FreeBSD.org
COMMENT= Protocol Construction Set
+LICENSE= BSD3CLAUSE
+
PORTDOCS= pcs.pdf
PORTEXAMPLES= *
@@ -19,18 +21,18 @@ USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_PYTHON_PREFIX= yes
-NO_STAGE= yes
+.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>
post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- cd ${WRKSRC}/docs/Web && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC}/docs/Web && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
-.if !defined(NOPORTEXAMPLES)
- @${MKDIR} ${EXAMPLESDIR}
- cd ${WRKSRC}/scripts && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
+.if ${PORT_OPTIONS:MEXAMPLES}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ cd ${WRKSRC}/scripts && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>