openbsd-ports/editors/texworks/Makefile
2011-09-16 09:48:08 +00:00

92 lines
2.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.13 2011/09/16 09:48:09 espie Exp $
COMMENT-main = easy to use LaTeX and ConTeXt editor
COMMENT-python = Python scripting for TeXworks
COMMENT-lua = Lua scripting for TeXworks
V = 0.4.0
DISTNAME = texworks-${V}-r759
PKGNAME-main = texworks-${V}
PKGNAME-lua = texworks-lua-${V}
PKGNAME-python = texworks-python-${V}
REVISION-main = 1
REVISION-python = 2
REVISION-lua = 1
WRKDIST = ${WRKDIR}/texworks-${V}
CATEGORIES = editors print
HOMEPAGE = http://www.tug.org/texworks/
MAINTAINER = Edd Barrett <edd@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
CONFIGURE_STYLE = simple
MODULES = x11/qt4 \
lang/python \
lang/lua
SHARED_ONLY = Yes
WANTLIB += QtDBus QtGui QtScript QtScriptTools QtXml c \
hunspell-1.2 m poppler poppler-qt4 pthread stdc++ z
WANTLIB-lua = QtCore QtGui QtXml lua m stdc++
WANTLIB-python = QtCore QtGui QtXml ${MODPY_WANTLIB} stdc++ m
MULTI_PACKAGES = -main -lua -python
MASTER_SITES = http://texworks.googlecode.com/files/
LIB_DEPENDS-main = qt4->=4.7.2:${MODQT4_LIB_DEPENDS} \
textproc/hunspell \
x11/dbus \
print/poppler,-qt4
LIB_DEPENDS-lua = ${MODQT4_LIB_DEPENDS} \
lang/lua
LIB_DEPENDS-python = ${MODQT4_LIB_DEPENDS} \
${MODPY_LIB_DEPENDS}
RUN_DEPENDS-main = print/texlive/base \
devel/desktop-file-utils
RUN_DEPENDS-lua = editors/texworks,-main
RUN_DEPENDS-python = editors/texworks,-main
USE_GMAKE = Yes
NO_REGRESS = Yes
VMEM_WARNING = Yes
SUBST_VARS += WRKINST
PLUGIN_SRC = ${WRKSRC}/plugins-src
pre-configure:
${SUBST_CMD} ${WRKSRC}/TeXworks.pro
${SUBST_CMD} ${PLUGIN_SRC}/TWLuaPlugin/TWLuaPlugin.pro
${SUBST_CMD} ${PLUGIN_SRC}/TWPythonPlugin/TWPythonPlugin.pro
do-configure:
cd ${PLUGIN_SRC}/TWPythonPlugin && qmake4
cd ${PLUGIN_SRC}/TWLuaPlugin && qmake4
cd ${WRKSRC} && qmake4
# build plugins first
pre-build:
cd ${PLUGIN_SRC}/TWPythonPlugin && ${MAKE_PROGRAM}
cd ${PLUGIN_SRC}/TWLuaPlugin && ${MAKE_PROGRAM}
# install main stuff and then plugins
INSTALL_PATHS = ${WRKSRC} \
${PLUGIN_SRC}/TWPythonPlugin \
${PLUGIN_SRC}/TWLuaPlugin
# note: install does not depend upon fake env or fake flags
do-install:
for i in ${INSTALL_PATHS}; do \
cd $$i && ${MAKE_PROGRAM} -f ${MAKE_FILE} ${FAKE_TARGET}; \
done
.include <bsd.port.mk>