2025-01-11 12:29:11 +00:00
|
|
|
USE_NOBTCFI-aarch64 = Yes# fortran
|
|
|
|
|
|
2021-12-08 10:44:05 +00:00
|
|
|
COMMENT = C graph library
|
2026-01-02 14:15:03 +00:00
|
|
|
V = 1.0.1
|
2021-12-08 10:44:05 +00:00
|
|
|
DISTNAME = igraph-$V
|
|
|
|
|
|
2026-01-02 14:15:03 +00:00
|
|
|
SHARED_LIBS = igraph 7.0 # 1.0
|
2021-12-08 10:44:05 +00:00
|
|
|
|
|
|
|
|
CATEGORIES = math
|
|
|
|
|
|
|
|
|
|
HOMEPAGE = https://igraph.org/
|
|
|
|
|
|
|
|
|
|
# GPLv2
|
|
|
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
|
|
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} m
|
|
|
|
|
WANTLIB += arpack blas cxsparse glpk gmp lapack xml2
|
|
|
|
|
|
2023-09-27 09:27:52 +00:00
|
|
|
SITES = https://github.com/igraph/igraph/releases/download/$V/
|
2021-12-08 10:44:05 +00:00
|
|
|
|
|
|
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
|
MODULES = devel/cmake
|
|
|
|
|
|
|
|
|
|
LIB_DEPENDS = devel/glpk \
|
|
|
|
|
devel/gmp \
|
|
|
|
|
math/arpack \
|
2024-11-07 20:56:52 +00:00
|
|
|
math/lapack \
|
2021-12-08 10:44:05 +00:00
|
|
|
math/suitesparse \
|
|
|
|
|
textproc/libxml
|
|
|
|
|
|
|
|
|
|
# cmake will auto-detect flex and bison, but as noted in the documentation
|
|
|
|
|
# those are only needed to regenerate parsers in the development version
|
|
|
|
|
# The release tarball doesn't even ship those .y/.l files
|
|
|
|
|
CONFIGURE_ARGS += -DBUILD_SHARED_LIBS=ON \
|
2025-01-28 16:32:40 +00:00
|
|
|
-DIGRAPH_ENABLE_TLS=ON \
|
2023-02-06 09:37:57 +00:00
|
|
|
-DIGRAPH_WARNINGS_AS_ERRORS=OFF
|
2022-09-19 20:11:41 +00:00
|
|
|
|
2025-01-28 16:32:40 +00:00
|
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
|
|
|
|
|
2022-09-19 20:11:41 +00:00
|
|
|
.include <bsd.port.arch.mk>
|
2023-03-04 10:09:50 +00:00
|
|
|
.if ${PROPERTIES:Mlld}
|
2022-09-19 20:11:41 +00:00
|
|
|
CONFIGURE_ARGS += -DIGRAPH_ENABLE_LTO=ON
|
2023-04-07 23:28:59 +00:00
|
|
|
.endif
|
2023-12-14 12:40:18 +00:00
|
|
|
|
|
|
|
|
do-test:
|
|
|
|
|
cd ${WRKBUILD} && exec ${SETENV} ${ALL_TEST_ENV} \
|
|
|
|
|
cmake --build ${WRKBUILD} ${_MAKE_VERBOSE} \
|
|
|
|
|
-j ${MAKE_JOBS} \
|
|
|
|
|
--target check
|
|
|
|
|
|
2021-12-08 10:44:05 +00:00
|
|
|
.include <bsd.port.mk>
|