# New ports collection makefile for: texworks # Date created: 2009-09-30 # Whom: Diego DepaolI # # $FreeBSD$ # PORTNAME= texworks PORTVERSION= 0.2.2 PORTREVISION= 3 CATEGORIES= editors MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} MAINTAINER= trebestie@gmail.com COMMENT= A simple TeX front-end program BUILD_DEPENDS= hunspell:${PORTSDIR}/hungarian/hunspell LIB_DEPENDS= poppler-qt4:${PORTSDIR}/graphics/poppler-qt4 \ dbus:${PORTSDIR}/devel/dbus USE_GMAKE= yes MAKE_JOBS_SAFE= yes USE_QT_VER= 4 QT_COMPONENTS= qmake_build gui corelib rcc_build moc_build uic_build \ dbus xml MAKE_ENV+= QTDIR=${QT_PREFIX} DESKTOP_ENTRIES="TexWorks" \ "Lowering the entry barrier to the TeX world" \ "TeXworks.png" \ "texworks" \ "Application;Utility;" \ false PLIST_FILES= bin/texworks \ share/pixmaps/TeXworks.png post-patch: @${RM} -f ${WRKSRC}/ui_*.h ${WRKSRC}/moc_*.cpp ${WRKSRC}/qrc_*.cpp @${REINPLACE_CMD} -e 's|\/usr\/share|\${LOCALBASE}\/share|g' ${WRKSRC}/src/TWUtils.cpp do-configure: @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} -spec ${QMAKESPEC} TeXworks.pro do-install: ${INSTALL_PROGRAM} ${WRKSRC}/texworks ${PREFIX}/bin/ ${INSTALL_DATA} ${WRKSRC}/res/images/TeXworks.png ${PREFIX}/share/pixmaps/TeXworks.png .include