openbsd-ports/math/libqalculate/Makefile

40 lines
963 B
Makefile

COMMENT = applied math library and CLI calculator
CATEGORIES = math devel
V = 4.8.0
DISTNAME = libqalculate-$V
HOMEPAGE = https://qalculate.github.io/
REVISION = 0
SHARED_LIBS += qalculate 6.0 # 42.0
# GPLv2+
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} c crypto curl curses ehistory ereadline
WANTLIB += gmp iconv icudata icuuc intl lzma m mpfr nghttp2 nghttp3
WANTLIB += ngtcp2 ngtcp2_crypto_quictls ssl xml2 z
COMPILER = base-clang ports-gcc
MASTER_SITES = https://github.com/Qalculate/libqalculate/releases/download/v$V/
MODULES = textproc/intltool
LIB_DEPENDS = devel/gettext,-runtime \
devel/mpfr \
devel/readline \
net/curl \
textproc/icu4c \
textproc/libxml
CONFIGURE_STYLE = autoconf
AUTOCONF_VERSION = 2.71
USE_GMAKE = Yes
CONFIGURE_ARGS = --with-readline=ereadline
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include/ereadline -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.include <bsd.port.mk>