7d1faa7179
Replace GL_COMMIT by GL_TAGNAME in all ports. The new GL_TAGNAME is backwards-compatible (accepting any commit hash as before), but also understands an actual tag name. Moving to tag names where appropriate is left to individual ports' maintainers. Approved by: portmgr (tcberner, mentor) Differential Revision: https://reviews.freebsd.org/D37077
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
PORTNAME= sympow
|
|
PORTVERSION= 2.023.6
|
|
DISTVERSIONPREFIX= v
|
|
PORTREVISION= 3
|
|
CATEGORIES= math
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
COMMENT= Mathematical program for SYMmetric POWer elliptic curve L-functions
|
|
WWW= https://gitlab.com/rezozer/forks/sympow
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= help2man:misc/help2man \
|
|
bash:shells/bash
|
|
LIB_DEPENDS= libpari.so:math/pari
|
|
|
|
USES= compiler:c++11-lang gmake shebangfix
|
|
SHEBANG_FILES= ${CONFIGURE_SCRIPT}
|
|
|
|
USE_GITLAB= yes
|
|
GL_ACCOUNT= rezozer/forks
|
|
GL_TAGNAME= 7fd4d97cabc07951200b98ee841afc4151c2c287
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_SCRIPT=Configure
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS}"
|
|
|
|
pre-configure:
|
|
${REINPLACE_CMD} -e 's|-O3 ||' ${WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
post-build:
|
|
${MKDIR} ${WRKDIR}/home ${WRKDIR}/var/cache/sympow/datafiles
|
|
for file in `${LS} ${WRKSRC}/datafiles/*.txt`; do \
|
|
${SETENV} HOME=${WRKDIR}/home SYMPOW_PKGCACHEDIR="${WRKDIR}/var/cache/sympow" \
|
|
${WRKSRC}/sympow -txt2bin "`${GREP} -c AT $${file}`" <$${file} $${file%txt}bin; \
|
|
done
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
${INSTALL_DATA} ${WRKSRC}/datafiles/*.bin ${STAGEDIR}${DATADIR}/datafiles
|
|
|
|
.include <bsd.port.mk>
|