Date: Fri, 25 Sep 2015 11:50:47 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r397816 - head/science/liblinear Message-ID: <201509251150.t8PBomX4007576@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Fri Sep 25 11:50:47 2015 New Revision: 397816 URL: https://svnweb.freebsd.org/changeset/ports/397816 Log: - Switch to options helpers - Simplify DOCS handling Approved by: portmgr blanket Modified: head/science/liblinear/Makefile Modified: head/science/liblinear/Makefile ============================================================================== --- head/science/liblinear/Makefile Fri Sep 25 11:50:39 2015 (r397815) +++ head/science/liblinear/Makefile Fri Sep 25 11:50:47 2015 (r397816) @@ -13,36 +13,26 @@ COMMENT= Library for Large Linear Classi LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYRIGHT -OPTIONS_DEFINE= OPTIMIZED_CFLAGS DOCS -OPTIONS_DEFAULT=OPTIMIZED_CFLAGS - USES= zip -TXT_DOCS= COPYRIGHT README +PORTDOCS= COPYRIGHT README PLIST_FILES= bin/train bin/predict -.include <bsd.port.pre.mk> - -.if ${PORT_OPTIONS:MDOCS} -PORTDOCS= ${TXT_DOCS} -.endif +OPTIONS_DEFINE= OPTIMIZED_CFLAGS DOCS +OPTIONS_DEFAULT=OPTIMIZED_CFLAGS -.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} # same as LIBLINEAR itself -CFLAGS= -Wall -O3 -.endif +OPTIMIZED_CFLAGS_CFLAGS= -Wall -O3 do-install: ${INSTALL_PROGRAM} ${WRKSRC}/train ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/predict ${STAGEDIR}${PREFIX}/bin -post-install: -.if ${PORT_OPTIONS:MDOCS} +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - for f in ${TXT_DOCS}; do \ - ${INSTALL_DATA} ${WRKSRC}/$$f ${STAGEDIR}${DOCSDIR}; \ + for f in ${PORTDOCS}; do \ + ${INSTALL_DATA} ${WRKSRC}/$$f ${STAGEDIR}${DOCSDIR}; \ done -.endif -.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?201509251150.t8PBomX4007576>