Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # $OpenBSD: Makefile,v 1.76 2017/04/10 11:46:33 sthen Exp $
  2. COMMENT= graphical frontend for LaTeX (nearly WYSIWYG)
  3. DISTNAME= lyx-2.2.0
  4. REVISION= 0
  5. CATEGORIES= print editors
  6. HOMEPAGE= http://www.lyx.org/
  7. MASTER_SITES= ftp://ftp.lyx.org/pub/lyx/stable/2.2.x/ \
  8. ftp://ftp.ntua.gr/pub/X11/LyX/stable/2.2.x/ \
  9. ftp://ftp.u-aizu.ac.jp/pub/tex/lyx/stable/2.2.x/ \
  10. http://ftp.icm.edu.pl/packages/lyx/stable/ \
  11. http://mirror.ufs.ac.za/applications/lyx/stable/2.2.x/
  12. # GPLv2+
  13. PERMIT_PACKAGE_CDROM= Yes
  14. MODULES= devel/gettext lang/python x11/qt4
  15. RUN_DEPENDS= print/texlive/base \
  16. graphics/ImageMagick \
  17. x11/gtk+3,-guic \
  18. devel/desktop-file-utils
  19. LIB_DEPENDS= ${MODQT4_LIB_DEPENDS}>=4.5.3 \
  20. devel/boost \
  21. devel/libmagic \
  22. textproc/enchant \
  23. textproc/aspell/core
  24. WANTLIB += lib/qt4/QtGui>=8 lib/qt4/QtSvg aspell c m pthread ${LIBCXX} z
  25. WANTLIB += boost_regex-mt>=1 boost_signals-mt>=1
  26. WANTLIB += glib-2.0 gmodule-2.0 enchant magic
  27. SEPARATE_BUILD= Yes
  28. USE_GMAKE= Yes
  29. CONFIGURE_STYLE= gnu
  30. CONFIGURE_ARGS= --with-extra-lib="${X11BASE}/lib ${LOCALBASE}/lib" \
  31. --with-extra-inc="${X11BASE}/include ${LOCALBASE}/include" \
  32. --without-hunspell \
  33. --without-included-boost \
  34. --with-packaging=posix
  35. CONFIGURE_ENV+= PYTHON=${MODPY_BIN} \
  36. ac_cv_path_QT_MOC=${MODQT4_MOC} \
  37. ac_cv_path_QT_UIC=${MODQT4_UIC} \
  38. lyx_cv_callstack_printing=no \
  39. ac_cv_func_fork=yes LIBS=-pthread
  40. pre-configure:
  41. sed -i "s,python -tt,${MODPY_BIN} -tt," \
  42. ${WRKSRC}/src/support/os.cpp
  43. perl -pi -e "s,#! ?/usr/bin/(env )?python,#!${MODPY_BIN}," \
  44. ${WRKSRC}/lib/lyx2lyx/lyx2lyx \
  45. ${WRKSRC}/lib/scripts/listerrors \
  46. ${WRKSRC}/src/graphics/GraphicsConverter.cpp
  47. find ${WRKSRC} -name "*.py" -print0 | xargs -0 \
  48. perl -pi -e "s,#! ?/usr/bin/(env )?python,#!${MODPY_BIN},"
  49. post-install:
  50. ${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
  51. ${INSTALL_DATA} ${WRKSRC}/lib/images/lyx.png ${PREFIX}/share/pixmaps
  52. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications
  53. ${SUBST_DATA} ${FILESDIR}/lyx.desktop \
  54. ${PREFIX}/share/applications/lyx.desktop
  55. .include <bsd.port.mk>