openbsd-ports/x11/qwt/Makefile

57 lines
1.5 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.15 2014/10/05 09:49:14 zhuk Exp $
2010-11-07 00:27:56 +00:00
SHARED_ONLY = Yes
2010-11-07 00:27:56 +00:00
COMMENT = Qt Widgets for Technical Applications
DISTNAME = qwt-5.2.1
SHARED_LIBS = qwt 6.0
CATEGORIES = x11
EXTRACT_SUFX = .tar.bz2
REVISION = 3
2010-11-07 00:27:56 +00:00
HOMEPAGE = http://qwt.sourceforge.net/
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=qwt/}
# Qwt License, Version 1.0
# http://qwt.sourceforge.net/qwtlicense.html
2010-11-07 00:27:56 +00:00
PERMIT_PACKAGE_CDROM = Yes
MODULES = x11/qt4
2013-03-11 11:35:43 +00:00
NO_TEST = Yes
2010-11-07 00:27:56 +00:00
USE_GMAKE = Yes
2010-11-07 00:27:56 +00:00
MAKE_FLAGS = LIBqwt_VERSION=${LIBqwt_VERSION}
WANTLIB += ICE QtDesigner QtGui QtScript QtXml SM X11 Xext Xi
WANTLIB += Xinerama Xrender fontconfig freetype m pthread stdc++
# svgmap example not included to prevent the need of svg dependencies
2010-11-07 00:27:56 +00:00
EXAMPLES = bode realtime_plot cpuplot dials radio event_filter \
data_plot sliders histogram spectrogram sysinfo \
curvdemo1 curvdemo2 simple_plot
2010-11-07 00:27:56 +00:00
SUBST_VARS = WRKINST EXAMPLES
pre-configure:
@${SUBST_CMD} ${WRKSRC}/qwtconfig.pri ${WRKSRC}/designer/designer.pro \
${WRKSRC}/examples/examples.pri
do-configure:
@cd ${WRKSRC} && qmake4
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/man/man3/* ${PREFIX}/man/man3/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/qwt
${SUBST_DATA} ${FILESDIR}/Makefile.examples \
${PREFIX}/share/examples/qwt/Makefile
${INSTALL_DATA} ${WRKSRC}/examples/examples.pri \
${PREFIX}/share/examples/qwt/
.for i in ${EXAMPLES}
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/qwt/${i}
${INSTALL_DATA} ${WRKSRC}/examples/${i}/* \
${PREFIX}/share/examples/qwt/${i}/
.endfor
.include <bsd.port.mk>