freebsd-ports/math/casadi/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

80 lines
2.1 KiB
Makefile

PORTNAME= casadi
DISTVERSION= 3.5.5
PORTREVISION= 6
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Symbolic framework for numeric optimization
WWW= https://web.casadi.org/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= cmake compiler:c++11-lang pkgconfig
USE_GITHUB= yes
USE_LDCONFIG= yes
CFLAGS+= -fPIC
CXXFLAGS+= -fPIC
CMAKE_OFF= WITH_DEEPBIND WITH_BUILD_BLASFEO
# cmake-3.16: disable build of examples (they are not installed anyways),
# and fail due to not setting up the linker environment properly:
CMAKE_OFF+= WITH_EXAMPLES
OPTIONS_DEFINE= BLASFEO BONMIN CLANG IPOPT LAPACK QPOASES
OPTIONS_DEFAULT= BLASFEO BONMIN IPOPT LAPACK QPOASES
OPTIONS_SUB= yes
BLASFEO_DESC= Build with BLASFEO
BLASFEO_CMAKE_BOOL= WITH_BLASFEO
BLASFEO_BUILD_DEPENDS= blasfeo>0:math/blasfeo
BONMIN_DESC= Build with Bonmin
BONMIN_CMAKE_BOOL= WITH_BONMIN
BONMIN_USES= blaslapack:netlib fortran
BONMIN_LIB_DEPENDS= libbonmin.so:math/bonmin \
libCbcSolver.so:math/cbc \
libCgl.so:math/cgl \
libClp.so:math/clp \
libcoinasl.so:math/asl \
libCoinUtils.so:math/coinutils \
libipopt.so:math/ipopt \
libnauty.so:math/nauty \
libopenblas.so:math/openblas \
libOsi.so:math/osi
CLANG_DESC= Build with clang for JIT
CLANG_CMAKE_BOOL= WITH_CLANG
CLANG_BROKEN= Fails to find clang
IPOPT_DESC= Build with IPopt
IPOPT_CMAKE_BOOL= WITH_IPOPT
IPOPT_USES= blaslapack:netlib fortran
IPOPT_LIB_DEPENDS= libipopt.so:math/ipopt
LAPACK_DESC= Build with LAPACK
LAPACK_CMAKE_BOOL= WITH_LAPACK
LAPACK_USES= blaslapack:openblas
QPOASES_DESC= Build with qpOASES
QPOASES_CMAKE_BOOL= WITH_QPOASES
QPOASES_LIB_DEPENDS= libopenblas.so:math/openblas
QPOASES_IMPLIES= LAPACK
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCLANG}
# use clang from ports because cmake can't find base llvm for JIT
BUILD_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
RUN_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
CPP= clang-cpp${LLVM_DEFAULT}
CC= clang${LLVM_DEFAULT}
CXX= clang++${LLVM_DEFAULT}
.endif
PORTSCOUT= limit:^.*[1-9]\..* # prevent tags like ge2
.include <bsd.port.mk>