# $OpenBSD: Makefile,v 1.12 2011/06/16 04:24:17 rpointel 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 = 0 REVISION-python = 1 REVISION-lua = 0 WRKDIST = ${WRKDIR}/texworks-${V} CATEGORIES = editors print HOMEPAGE = http://www.tug.org/texworks/ MAINTAINER = Edd Barrett # 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