49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.12 2017/07/26 22:45:26 sthen Exp $
|
|
|
|
BROKEN-macppc = libqalculate/Calculator.cc:7030: internal compiler error
|
|
COMMENT = applied math library
|
|
CATEGORIES = math devel
|
|
DISTNAME = libqalculate-0.9.7
|
|
REVISION = 2
|
|
HOMEPAGE = http://qalculate.sourceforge.net/
|
|
|
|
SHARED_LIBS = qalculate 0.0 # 5.0
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
WANTLIB += c cln glib-2.0 gmp lzma m ncurses pcre pthread readline
|
|
WANTLIB += ${COMPILER_LIBCXX} xml2 z
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=qalculate/}
|
|
|
|
MODULES = devel/gettext \
|
|
textproc/intltool
|
|
|
|
LIB_DEPENDS = devel/cln \
|
|
devel/glib2 \
|
|
textproc/libxml
|
|
|
|
# Without recreating Makefile, shell globs in docs/reference/Makefile are
|
|
# not expanded, and "fake" and "test" stages fail.
|
|
# And just running "good" autoconf is not enough, it whines.
|
|
# So we have to re-run automake, too.
|
|
|
|
USE_LIBTOOL = gnu
|
|
SEPARATE_BUILD = Yes
|
|
CONFIGURE_STYLE = autoconf automake
|
|
CONFIGURE_ENV = CPPFLAGS="${CPPFLAGS} -I${WRKSRC} -I${LOCALBASE}/include" \
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
|
AUTOCONF_VERSION = 2.67
|
|
AUTOMAKE_VERSION = 1.11
|
|
|
|
SUBST_VARS += DISTNAME
|
|
|
|
post-patch:
|
|
cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} aclocal
|
|
cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} automake
|
|
|
|
.include <bsd.port.mk>
|