2008-01-04 12:48:33 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.2 2008/01/04 17:48:38 espie Exp $
|
2007-09-13 21:19:24 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
|
|
|
COMMENT= Qt Widgets for Technical Applications
|
|
|
|
DISTNAME= qwt-5.0.2
|
|
|
|
SHARED_LIBS= qwt 5.0
|
|
|
|
CATEGORIES= x11
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
HOMEPAGE= http://qwt.sourceforge.net/
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qwt/}
|
|
|
|
|
|
|
|
MAINTAINER= Michael Erdely <merdely@openbsd.org>
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
MODULES= x11/qt4
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
|
|
|
MAKE_FLAGS= LIBqwt_VERSION=${LIBqwt_VERSION}
|
|
|
|
|
|
|
|
WANTLIB+= ICE SM X11 Xcursor Xext Xfixes Xi Xinerama Xrandr
|
|
|
|
WANTLIB+= Xrender fontconfig freetype glib-2.0 gthread-2.0 iconv
|
|
|
|
WANTLIB+= intl m png z
|
|
|
|
|
|
|
|
LIB_DEPENDS= QtDesigner.>=7,QtGui.>=8,QtScript,QtXml.>=7::x11/qt4
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@perl -pi -e 's,!!PREFIX!!,${WRKINST}${PREFIX},' \
|
|
|
|
${WRKSRC}/qwtconfig.pri
|
|
|
|
@perl -pi -e 's,!!QTDIR!!,${WRKINST}${PREFIX}/lib/qt4,' \
|
|
|
|
${WRKSRC}/designer/designer.pro
|
|
|
|
@perl -pi -e 's,!!PREFIX!!,${PREFIX},' \
|
|
|
|
${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
|
|
|
|
@sed -e 's,!!PREFIX!!,${TRUEPREFIX},' ${FILESDIR}/README.OpenBSD > \
|
|
|
|
${WRKBUILD}/README.OpenBSD
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/README.OpenBSD \
|
|
|
|
${PREFIX}/share/examples/qwt/
|
|
|
|
@sed -e 's,!!EXAMPLES!!,${EXAMPLES},' ${FILESDIR}/Makefile.examples > \
|
|
|
|
${WRKSRC}/examples/Makefile
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/Makefile \
|
|
|
|
${PREFIX}/share/examples/qwt/
|
|
|
|
${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>
|