freebsd-ports/editors/texworks/Makefile
Martin Wilke 9c2f65e395 - Convert USE_QT_VER=4 and QT_COMPONETS to USE_QT4
Review by:	bapt, David Naylor (kde team)
2012-06-06 06:44:37 +00:00

47 lines
1.2 KiB
Makefile

# New ports collection makefile for: texworks
# Date created: 2009-09-30
# Whom: Diego DepaolI <trebestie@gmail.com>
#
# $FreeBSD$
#
PORTNAME= texworks
PORTVERSION= 0.2.2
PORTREVISION= 6
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
MAINTAINER= trebestie@gmail.com
COMMENT= A simple TeX front-end program
BUILD_DEPENDS= hunspell:${PORTSDIR}/textproc/hunspell
LIB_DEPENDS= poppler-qt4:${PORTSDIR}/graphics/poppler-qt4 \
dbus:${PORTSDIR}/devel/dbus
USE_GMAKE= yes
MAKE_JOBS_SAFE= yes
USE_QT4= 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 <bsd.port.mk>