Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # $OpenBSD: Makefile,v 1.32 2017/04/14 12:59:28 sthen Exp $
  2. COMMENT-main = easy to use LaTeX and ConTeXt editor
  3. COMMENT-python = Python scripting for TeXworks
  4. COMMENT-lua = Lua scripting for TeXworks
  5. V = 0.4.4
  6. R = 1004
  7. DISTNAME = texworks-${V}-r${R}
  8. PKGNAME-main = texworks-${V}
  9. PKGNAME-lua = texworks-lua-${V}
  10. PKGNAME-python = texworks-python-${V}
  11. EPOCH = 0
  12. WRKDIST = ${WRKDIR}/texworks-${V}
  13. CATEGORIES = editors print
  14. HOMEPAGE = http://www.tug.org/texworks/
  15. MAINTAINER = Edd Barrett <edd@openbsd.org>
  16. # GPLv2
  17. PERMIT_PACKAGE_CDROM = Yes
  18. MODULES = devel/qmake \
  19. lang/python \
  20. lang/lua \
  21. x11/qt4
  22. MODQMAKE_PROJECTS = plugins-src/TWLuaPlugin/TWLuaPlugin.pro \
  23. plugins-src/TWPythonPlugin/TWPythonPlugin.pro \
  24. TeXworks.pro
  25. WANTLIB += ICE QtDBus QtGui QtScript QtScriptTools QtXml SM X11
  26. WANTLIB += Xext Xi Xinerama Xrender c fontconfig freetype hunspell-1.6
  27. WANTLIB += m poppler-qt4 pthread ${LIBCXX} z
  28. WANTLIB-lua = ${MODLUA_WANTLIB}
  29. WANTLIB-lua += ICE QtCore QtGui QtXml SM X11 Xext Xi Xinerama Xrender
  30. WANTLIB-lua += fontconfig freetype m ${LIBCXX} pthread
  31. WANTLIB-python = ${MODPY_WANTLIB}
  32. WANTLIB-python += ICE QtCore QtGui QtXml SM X11 Xext Xi Xinerama Xrender
  33. WANTLIB-python += fontconfig freetype m ${LIBCXX} pthread
  34. MULTI_PACKAGES = -main -lua -python
  35. MASTER_SITES = ${MASTER_SITE_GOOGLECODE:=texworks/}
  36. LIB_DEPENDS-main = qt4->=4.8.2:${MODQT4_LIB_DEPENDS} \
  37. textproc/hunspell \
  38. x11/dbus \
  39. print/poppler,,-qt4
  40. LIB_DEPENDS-lua = ${MODQT4_LIB_DEPENDS} \
  41. ${MODLUA_LIB_DEPENDS}
  42. LIB_DEPENDS-python = ${MODQT4_LIB_DEPENDS} \
  43. ${MODPY_LIB_DEPENDS}
  44. RUN_DEPENDS-main = print/texlive/base \
  45. devel/desktop-file-utils
  46. RUN_DEPENDS-lua = editors/texworks,-main
  47. RUN_DEPENDS-python = editors/texworks,-main
  48. MODLUA_SA = Yes
  49. USE_GMAKE = Yes
  50. NO_TEST = Yes
  51. SUBST_VARS += WRKINST
  52. pre-configure:
  53. cd ${WRKSRC}; ${SUBST_CMD} ${MODQMAKE_PROJECTS}
  54. .include <bsd.port.mk>