2021-08-13 05:59:17 -04:00
PORTNAME = cado-nfs
DISTVERSIONPREFIX = v
2022-12-01 10:33:37 -05:00
DISTVERSION = 2.3.0-20220722
2021-08-13 05:59:17 -04:00
CATEGORIES = math
MAINTAINER = yuri@FreeBSD.org
COMMENT = Implementation of the Number Field Sieve Algorithm
2022-09-07 17:06:12 -04:00
WWW = https://cado-nfs.gitlabpages.inria.fr/
2021-08-13 05:59:17 -04:00
LICENSE = LGPL21
LICENSE_FILE = ${ WRKSRC } /COPYING
2021-09-15 19:51:23 -04:00
CONFLICTS_BUILD = libfmt # bundled libfmt conflicts with package-installed headers
2021-08-15 19:58:15 -04:00
2021-08-13 05:59:17 -04:00
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
2022-07-22 04:33:43 -04:00
GL_COMMIT = 3ab6a4781fa5d218ed332834809ba6c6fd1a591f
2021-08-13 05:59:17 -04:00
SHEBANG_GLOB = *.py
2021-12-07 12:15:56 -05:00
CXXFLAGS_i386 = -msse2 # workaround for error: always_inline function '_mm_setzero_si128' requires target feature 'sse2', but would be inlined into function 'gf2x_mul4' that is compiled without support for 'sse2'
2021-08-13 05:59:17 -04:00
TEST_TARGET = check # 'test' does the same but is less verbose
BINARY_ALIAS = python3 = ${ PYTHON_CMD } make = ${ GMAKE }
2021-10-12 14:37:12 -04:00
. i n c l u d e < b s d . p o r t . o p t i o n s . m k >
. i f ${ARCH} = = amd64
PLIST_SUB = LINGEN_PZ = ""
. e l s e
PLIST_SUB = LINGEN_PZ = "@comment "
. e n d i f
2021-08-13 05:59:17 -04:00
. i n c l u d e < b s d . p o r t . m k >