mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-20 08:27:15 +00:00
53404616ab
lingen_pz is installed only on amd64. While here, rework endianness detection, since the current method uses plain list of architectures. Since powerpc64le is little endian and POWER as whole is set up in cado-endian.h as big-endian, it will result in runtime issues.
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
PORTNAME= cado-nfs
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 2.3.0.20210915
|
|
CATEGORIES= math
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Implementation of the Number Field Sieve Algorithm
|
|
|
|
LICENSE= LGPL21
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
CONFLICTS_BUILD= libfmt # bundled libfmt conflicts with package-installed headers
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
|
|
bash:shells/bash \
|
|
gmake:devel/gmake
|
|
LIB_DEPENDS= libecm.so:math/gmp-ecm \
|
|
libgf2x.so:math/gf2x \
|
|
libgmp.so:math/gmp \
|
|
libhwloc.so:devel/hwloc2
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR}
|
|
|
|
USES= cmake:noninja compiler:c++11-lang perl5 python shebangfix # noninja because: bad $-escape (literal $ must be written as $$)
|
|
|
|
USE_GITLAB= yes
|
|
GL_SITE= https://gitlab.inria.fr
|
|
GL_COMMIT= f4284e2391121b2bfb97bc4880b6273c7250dc2f
|
|
|
|
SHEBANG_GLOB= *.py
|
|
|
|
TEST_TARGET= check # 'test' does the same but is less verbose
|
|
|
|
BINARY_ALIAS= python3=${PYTHON_CMD} make=${GMAKE}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == amd64
|
|
PLIST_SUB= LINGEN_PZ=""
|
|
.else
|
|
PLIST_SUB= LINGEN_PZ="@comment "
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|