# Created by: Yinghong.Liu # $FreeBSD: head/textproc/qstardict/Makefile 395231 2015-08-25 10:03:08Z makc $ PORTNAME= qstardict PORTVERSION= 1.0.1 CATEGORIES= textproc MASTER_SITES= http://qstardict.ylsoftware.com/files/ MAINTAINER= makc@FreeBSD.org COMMENT= Qt 4 based dictionary program (stardict clone) USES= dos2unix pkgconfig qmake tar:bzip2 USE_QT4= gui network xml uic_build moc_build rcc_build DOS2UNIX_FILES= qstardict.pri # Path to dictionaries installed by stardict-* ports DICPATH= ${LOCALBASE}/share/stardict/dic OPTIONS_DEFINE= DBUS DOCS NLS OPTIONS_DEFAULT:= ${OPTIONS_DEFINE} OPTIONS_SUB= yes DBUS_USE= QT4=dbus DBUS_QMAKE_OFF= NO_DBUS=1 NLS_QMAKE_OFF= NO_TRANSLATIONS=1 post-patch: @${REINPLACE_CMD} -e "s|/usr|${PREFIX}|g" \ ${WRKSRC}/qstardict.pri @${REINPLACE_CMD} -e "s|/usr/share/stardict/dic|${DICPATH}|g" \ -e "s|glib.*\.h|glib.h|g" \ ${WRKSRC}/plugins/stardict/stardict.cpp post-patch-DOCS-off: ${REINPLACE_CMD} -e "/^INSTALLS/s|docs||g" \ ${WRKSRC}/qstardict.pro .include