openbsd-ports/math/libqalculate/Makefile

39 lines
896 B
Makefile

COMMENT = applied math library and CLI calculator
CATEGORIES = math devel
V = 4.4.0
DISTNAME = libqalculate-$V
HOMEPAGE = https://qalculate.github.io/
SHARED_LIBS = qalculate 4.0 # 39.2
# GPLv2+
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX}
WANTLIB += c crypto curl curses ehistory ereadline gmp iconv icudata
WANTLIB += icuuc intl lzma m mpfr nghttp2 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>