openbsd-ports/x11/qwt/Makefile
sthen ca8b09cd06 fix "LIB_DEPENDS x11/qt5/qtsvg not needed for x11/qwt ?" - was listed
as LIB_DEPENDS but without a WANTLIB so the runtime dep was stripped;
there are checks for it in build and knowing other things that have
used QtSvg it probably loads at runtime, so use BUILD+RUN_DEPENDS.
2021-02-13 22:20:36 +00:00

55 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.32 2021/02/13 22:20:36 sthen Exp $
COMMENT= Qt widgets for technical applications
VERSION = 6.1.6
DISTNAME = qwt-${VERSION}
REVISION = 0
SHARED_LIBS = qwt${QTLIBSUFFIX} 7.1
CATEGORIES = x11
HOMEPAGE = http://qwt.sourceforge.net/
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=qwt/}
EXTRACT_SUFX = .tar.bz2
# Qwt License, Version 1.0
# http://qwt.sourceforge.net/qwtlicense.html
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} GL Qt5Core Qt5Gui Qt5Widgets Qt5Xml
WANTLIB += m
MODULES = x11/qt5 \
devel/qmake
MODQMAKE_INSTALL_ROOT =
NO_TEST = Yes
USE_GMAKE = Yes
BUILD_DEPENDS = x11/qt5/qtsvg
RUN_DEPENDS = x11/qt5/qtsvg
QTVER = qt5
SUBST_VARS = WRKINST QTVER QTLIBSUFFIX
pre-configure:
${SUBST_CMD} ${WRKSRC}/{qwtconfig.pri,qwt.prf} \
${WRKSRC}/designer/designer.pro \
${WRKSRC}/textengines/textengines.pri \
${WRKSRC}/src/src.pro
post-configure:
# ensure CXXFLAGS/-std=c++11 is passed to all clang++
# invocations,including the ones generating dependencies
sed -i -e 's/@$$(CXX) -M/@$$(CXX) $$(CXXFLAGS) -M/' \
${WRKBUILD}/{src,designer}/Makefile
post-install:
rm -rf ${PREFIX}/share/doc/qwt/html/*.md5
mv ${PREFIX}/share/doc/qwt/man/man3 ${PREFIX}/man/
.include <bsd.port.mk>