Date: Thu, 6 May 2021 21:00:16 GMT From: Thierry Thomas <thierry@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: ec8086c7b0a2 - main - math/sympow: respect user-provided CFLAGS Message-ID: <202105062100.146L0GZh055082@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=ec8086c7b0a2a4a690da5efde8aa1df4555a8f58 commit ec8086c7b0a2a4a690da5efde8aa1df4555a8f58 Author: Thierry Thomas <thierry@FreeBSD.org> AuthorDate: 2021-05-06 20:37:10 +0000 Commit: Thierry Thomas <thierry@FreeBSD.org> CommitDate: 2021-05-06 21:00:01 +0000 math/sympow: respect user-provided CFLAGS And also resolve a warning when building data files. --- math/sympow/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/math/sympow/Makefile b/math/sympow/Makefile index 8d3f73bdcae6..821c1a95c4d5 100644 --- a/math/sympow/Makefile +++ b/math/sympow/Makefile @@ -2,8 +2,8 @@ PORTNAME= sympow PORTVERSION= 2.023.6 -PORTREVISION= 1 DISTVERSIONPREFIX= v +PORTREVISION= 2 CATEGORIES= math MAINTAINER= thierry@FreeBSD.org @@ -25,11 +25,16 @@ GL_COMMIT= 7fd4d97cabc07951200b98ee841afc4151c2c287 HAS_CONFIGURE= yes CONFIGURE_SCRIPT=Configure +CONFIGURE_ENV= CFLAGS="${CFLAGS}" + +pre-configure: + ${REINPLACE_CMD} -e 's|-O3 ||' ${WRKSRC}/${CONFIGURE_SCRIPT} post-build: - mkdir -p ${WRKDIR}/home + ${MKDIR} ${WRKDIR}/home ${WRKDIR}/var/cache/sympow/datafiles for file in `${LS} ${WRKSRC}/datafiles/*.txt`; do \ - env HOME=${WRKDIR}/home ${WRKSRC}/sympow -txt2bin "`${GREP} -c AT $${file}`" <$${file} $${file%txt}bin; \ + ${SETENV} HOME=${WRKDIR}/home SYMPOW_PKGCACHEDIR="${WRKDIR}/var/cache/sympow" \ + ${WRKSRC}/sympow -txt2bin "`${GREP} -c AT $${file}`" <$${file} $${file%txt}bin; \ done post-install:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105062100.146L0GZh055082>