freebsd-ports/math/form/Makefile
Muhammad Moinur Rahman 95274bf4f9 */*: Fix build with llvm16 on 13.2-STABLE
As like as HEAD(14.0-RELEASE) llvm16 was merged in base for 13.2-STABLE
with the OSVERSION 1302507.

- Utilize USE_CXXSTD=c++14 or similar solution where applicable
- Update conditionals to addtionally check for OSVERSION greater than
  1302507 and less than 1400000

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
2023-07-26 02:48:20 +02:00

51 lines
1.3 KiB
Makefile

PORTNAME= form
PORTVERSION= 4.3.1
DISTVERSIONPREFIX= v
CATEGORIES= math
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Symbolic Manipulation System
WWW= https://www.nikhef.nl/~form/
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libgmp.so:math/gmp
USES= autoreconf gmake localbase
USE_GITHUB= yes
GH_ACCOUNT= vermaseren
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-native \
--enable-largefile \
--enable-scalar \
--with-api=posix
OPTIONS_DEFINE= DOXYGEN OPENMPI
OPTIONS_SUB= yes
MPICC?= ${LOCALBASE}/mpi/openmpi/bin/mpicc
MPICXX?= ${LOCALBASE}/mpi/openmpi/bin/mpic++
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
OPENMPI_LIB_DEPENDS= libgcc_s.so.1:lang/gcc9 \
libmpi.so:net/openmpi
OPENMPI_CONFIGURE_ENABLE= parform
OPENMPI_CONFIGURE_ENV+= MPICC="${MPICC}" \
MPICXX="${MPICXX}"
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
post-build-DOXYGEN-on:
(cd ${WRKSRC}/doc/manual; ${MAKE_CMD} html pdf)
post-install-DOXYGEN-on:
(cd ${WRKSRC}/doc/manual && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
${INSTALL_DATA} ${WRKSRC}/doc/manual/manual.pdf ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>