2010-11-06 20:26:13 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.8 2010/11/07 00:26:13 merdely Exp $
|
2007-09-13 21:19:24 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
|
|
|
COMMENT= Qt Widgets for Technical Applications
|
2010-11-06 20:26:13 -04:00
|
|
|
DISTNAME= qwt-5.2.1
|
|
|
|
SHARED_LIBS= qwt 6.0
|
2007-09-13 21:19:24 -04:00
|
|
|
CATEGORIES= x11
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
HOMEPAGE= http://qwt.sourceforge.net/
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qwt/}
|
|
|
|
|
|
|
|
# Qwt License, Version 1.0
|
|
|
|
# http://qwt.sourceforge.net/qwtlicense.html
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2010-11-06 20:26:13 -04:00
|
|
|
MODULES = x11/qt4
|
2007-09-13 21:19:24 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
|
|
|
MAKE_FLAGS= LIBqwt_VERSION=${LIBqwt_VERSION}
|
|
|
|
|
2010-11-06 20:26:13 -04:00
|
|
|
WANTLIB += m stdc++ QtDesigner QtGui QtScript QtXml
|
2007-09-13 21:19:24 -04:00
|
|
|
|
|
|
|
# svgmap example not included to prevent the need of svg dependencies
|
|
|
|
EXAMPLES= bode realtime_plot cpuplot dials radio event_filter \
|
|
|
|
data_plot sliders histogram spectrogram sysinfo \
|
|
|
|
curvdemo1 curvdemo2 simple_plot
|
|
|
|
|
2010-11-06 20:26:13 -04:00
|
|
|
SUBST_VARS= WRKINST EXAMPLES
|
|
|
|
|
2007-09-13 21:19:24 -04:00
|
|
|
pre-configure:
|
2010-11-06 20:26:13 -04:00
|
|
|
@${SUBST_CMD} ${WRKSRC}/qwtconfig.pri ${WRKSRC}/designer/designer.pro \
|
2007-09-13 21:19:24 -04:00
|
|
|
${WRKSRC}/examples/examples.pri
|
|
|
|
|
|
|
|
do-configure:
|
2010-11-06 20:26:13 -04:00
|
|
|
@cd ${WRKSRC} && qmake4
|
2007-09-13 21:19:24 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/man3/* ${PREFIX}/man/man3/
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/qwt
|
2010-11-06 20:26:13 -04:00
|
|
|
${SUBST_CMD} -c -o ${SHAREOWN} -g ${SHAREGRP} \
|
|
|
|
${FILESDIR}/Makefile.examples \
|
|
|
|
${PREFIX}/share/examples/qwt/Makefile
|
2007-09-13 21:19:24 -04:00
|
|
|
${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>
|