openbsd-ports/productivity/libalkimia/Makefile
naddy ff4cf372bf libalkimia and its dependent kmymoney require the C++ template code in
gmpxx.h but do not link with libgmpxx, so add devel/gmp,-cxx to both
build and run depends.
2018-11-03 14:46:02 +00:00

40 lines
1005 B
Makefile

# $OpenBSD: Makefile,v 1.10 2018/11/03 14:46:02 naddy Exp $
COMMENT = common classes for finance KDE 4 apps
CATEGORIES = productivity x11
HOMEPAGE = http://kmymoney2.sourceforge.net
MAINTAINER = KDE porting team <openbsd-kde@googlegroups.com>
V = 5.0.0
DISTNAME = libalkimia-$V
REVISION = 2
SHARED_LIBS = alkimia 1.0 # 5.0
# LGPLv2.1+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB = lib/qt4/QtDBus gmp m
WANTLIB += ${COMPILER_LIBCXX}
MASTER_SITES = ${MASTER_SITE_KDE:=/stable/alkimia/$V/src/}
MODULES = x11/kde4
MODKDE4_USE =
KDE4_ONLY = Yes
BUILD_DEPENDS = ${MODKDE4_DEP_DIR}/libs
LIB_DEPENDS = devel/gmp
# libalkimia and its dependent kmymoney require the C++ template code in
# gmpxx.h but do not link with libgmpxx
BUILD_DEPENDS += devel/gmp,-cxx
RUN_DEPENDS += devel/gmp,-cxx
CONFIGURE_ARGS += -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen:Bool=Yes
CXXFLAGS += -I${LOCALBASE}/include
LDFLAGS += -L${LOCALBASE}/lib
do-test:
cd ${WRKBUILD} && ./libalkimia/alkcompanytest
.include <bsd.port.mk>