# New ports collection makefile for: qwt-devel # Date created: 2006-12-08 # Whom: Max Brazhnikov # # $FreeBSD$ # PORTNAME= qwt PORTVERSION= 5.2.1 CATEGORIES= x11-toolkits MASTER_SITES= SF MAINTAINER= makc@FreeBSD.org COMMENT= Qt Widgets for Technical Applications USE_QT_VER= 4 QT_COMPONENTS= gui svg moc_build qmake_build USE_BZIP2= yes USE_GMAKE= yes QMAKE_ARGS+= -unix -recursive PREFIX=${PREFIX} HAS_CONFIGURE= yes USE_LDCONFIG= yes MAKE_JOBS_SAFE= yes OPTIONS= DESIGNER_PLUGIN "Install plugin for Qt Designer" on STRIP_FILES= lib/libqwt.so.${PORTVERSION} .include .include <${FILESDIR}/Makefile.man> .if !defined(WITHOUT_DESIGNER_PLUGIN) QT_COMPONENTS+= designer rcc_build QMAKE_ARGS+= CONFIG+=QwtDesigner PLUGINDIR=${PREFIX}/${QT_PLUGINDIR_REL} PLIST_SUB+= DESIGNER_PLUGIN="" STRIP_FILES+= ${QT_PLUGINDIR_REL}/designer/libqwt_designer_plugin.so .else PLIST_SUB+= DESIGNER_PLUGIN="@comment " .endif do-configure: (cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKEFLAGS} ${QMAKE_ARGS}) post-install: ${MKDIR} ${PREFIX}/man/man3 ${INSTALL_MAN} ${WRKSRC}/doc/man/man3/Qwt* ${PREFIX}/man/man3 ${STRIP_CMD} ${STRIP_FILES:S,^,${PREFIX}/,} .if !defined(NOPORTDOCS) (cd ${WRKSRC}/doc/html/ && ${COPYTREE_SHARE} \* ${DOCSDIR}) .endif .include