diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2017-04-12 09:56:35 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2017-04-12 09:56:35 +0000 |
commit | 7eabf414a159a6498d4389958faa5ae5cb942780 (patch) | |
tree | d9f99515d41e0ce1239a91c672f643a555490716 /science | |
parent | 37f1eb43a36bb90a3f73f0981896267bd540c6e6 (diff) | |
download | ports-7eabf414a159a6498d4389958faa5ae5cb942780.tar.gz ports-7eabf414a159a6498d4389958faa5ae5cb942780.zip |
Notes
Diffstat (limited to 'science')
-rw-r--r-- | science/libsvm/Makefile | 45 |
1 files changed, 17 insertions, 28 deletions
diff --git a/science/libsvm/Makefile b/science/libsvm/Makefile index 4843ee50a47e..a9df5acfa4a5 100644 --- a/science/libsvm/Makefile +++ b/science/libsvm/Makefile @@ -13,14 +13,13 @@ COMMENT= Library for Support Vector Machines LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYRIGHT -OPTIONS_DEFINE= OPTIMIZED_CFLAGS DOCS -OPTIONS_DEFAULT= OPTIMIZED_CFLAGS - USES= zip USE_LDCONFIG= yes ALL_TARGET= all lib +OPTIONS_DEFINE= DOCS + .if defined(PKGNAMESUFFIX) && ${PKGNAMESUFFIX} == "-python" CATEGORIES+= python @@ -28,29 +27,22 @@ USES+= python MAKE_ARGS= PYTHON_INCLUDEDIR=${PYTHON_INCLUDEDIR} -TXT_DOCS= README.python +PORTDOCS= README.python NO_BUILD= yes - +NO_ARCH= yes .else -TXT_DOCS= COPYRIGHT README FAQ.html README.tools +PORTDOCS= README FAQ.html README.tools TOOLS= tools/checkdata.py tools/easy.py tools/grid.py tools/subset.py SUB_FILES= pkg-message SUB_LIST= DATADIR=${DATADIR} -.endif - -.include <bsd.port.pre.mk> - -.if ${PORT_OPTIONS:MDOCS} -PORTDOCS= ${TXT_DOCS} -.endif +OPTIONS_DEFINE+= OPTIMIZED_CFLAGS +OPTIONS_DEFAULT+= OPTIMIZED_CFLAGS -.if ${PORT_OPTIONS:MOCFLAGS} -# same as LIBSVM itself -CFLAGS= -Wall -Wconversion -O3 +OPTIMIZED_CFLAGS_CFLAGS= -Wall -Wconversion -O3 .endif post-patch: @@ -60,31 +52,28 @@ post-patch: @${CP} ${WRKSRC}/tools/README ${WRKSRC}/README.tools .endif -.if defined(PKGNAMESUFFIX) && ${PKGNAMESUFFIX} == "-python" do-install: - ${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} +.if defined(PKGNAMESUFFIX) && ${PKGNAMESUFFIX} == "-python" + @${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} ${INSTALL_DATA} ${WRKSRC}/python/svm.py ${STAGEDIR}${PYTHON_SITELIBDIR} ${INSTALL_DATA} ${WRKSRC}/python/svmutil.py ${STAGEDIR}${PYTHON_SITELIBDIR} .else - -do-install: ${INSTALL_PROGRAM} ${WRKSRC}/svm-train ${STAGEDIR}${PREFIX}/bin/ ${INSTALL_PROGRAM} ${WRKSRC}/svm-predict ${STAGEDIR}${PREFIX}/bin/ ${INSTALL_PROGRAM} ${WRKSRC}/svm-scale ${STAGEDIR}${PREFIX}/bin/ ${INSTALL_DATA} ${WRKSRC}/svm.h ${STAGEDIR}${PREFIX}/include/ ${INSTALL_LIB} ${WRKSRC}/libsvm.so.2 ${STAGEDIR}${PREFIX}/lib/ ${LN} -sf libsvm.so.2 ${STAGEDIR}${PREFIX}/lib/libsvm.so - ${MKDIR} ${STAGEDIR}${DATADIR} + @${MKDIR} ${STAGEDIR}${DATADIR} for f in ${TOOLS}; do \ - ${INSTALL_DATA} ${WRKSRC}/$$f ${STAGEDIR}${DATADIR}; \ + ${INSTALL_DATA} ${WRKSRC}/$$f ${STAGEDIR}${DATADIR}; \ done - .endif -post-install-DOCS-on: +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - for f in ${TXT_DOCS}; do \ - ${INSTALL_DATA} ${WRKSRC}/$$f ${STAGEDIR}${DOCSDIR}; \ - done +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} +.endfor -.include <bsd.port.post.mk> +.include <bsd.port.mk> |