diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2017-04-22 10:58:21 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2017-04-22 10:58:21 +0000 |
commit | 64357974b56b8b663c3693551e95bcbf0a495cc8 (patch) | |
tree | 051ab1481d5399ee78e4d5275d9699d0e352a6cc | |
parent | Update to 3.4.0 (diff) |
Convert to test framework and options target helper
Approved by: portmgr (blanket)
Notes
Notes:
svn path=/head/; revision=439158
-rw-r--r-- | devel/swig20/Makefile | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/devel/swig20/Makefile b/devel/swig20/Makefile index 90ba48d85e50..143bfd23422c 100644 --- a/devel/swig20/Makefile +++ b/devel/swig20/Makefile @@ -21,6 +21,7 @@ PLIST_SUB+= PORTVERSION=${PORTVERSION} VER="${VER}" GNU_CONFIGURE= yes ALL_TARGET= # none +TEST_TARGET= check CONFIGURE_ARGS+=--program-suffix=${VER} @@ -32,8 +33,6 @@ OCTAVE_VER_CMD= ${LOCALBASE}/bin/octave-config -v 2>/dev/null || ${TRUE} OPTIONS_DEFINE= DOCS EXAMPLES -.include <bsd.port.options.mk> - post-patch: ${SETENV} OCTAVE_VER=$$(${OCTAVE_VER_CMD}) \ ${REINPLACE_CMD} -e 's|$$RUBY |${RUBY} |; \ @@ -48,23 +47,18 @@ post-patch: post-configure: ${REINPLACE_CMD} -e 's#null#&|| true#' ${WRKSRC}/Makefile -post-install: -.if ${PORT_OPTIONS:MEXAMPLES} - ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION} - cd ${WRKSRC}/Examples && ${FIND} . -type d \ - -exec ${INSTALL} -d ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}/{} \; - cd ${WRKSRC}/Examples && ${FIND} . -type f \ - -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}/{} \; -.endif -.if ${PORT_OPTIONS:MDOCS} +post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR}/${PORTVERSION} cd ${WRKSRC}/Doc && ${FIND} . -type d \ -exec ${INSTALL} -d ${STAGEDIR}${DOCSDIR}/${PORTVERSION}/{} \; cd ${WRKSRC}/Doc && ${FIND} . -type f \ -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/${PORTVERSION}/{} \; -.endif -regression-test: build - cd ${WRKSRC} && ${MAKE_CMD} check +post-install-EXAMPLES-on: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION} + cd ${WRKSRC}/Examples && ${FIND} . -type d \ + -exec ${INSTALL} -d ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}/{} \; + cd ${WRKSRC}/Examples && ${FIND} . -type f \ + -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}/{} \; .include <bsd.port.mk> |