| @@ -1,150 +1,150 @@ | | | @@ -1,150 +1,150 @@ |
1 | # $NetBSD: Makefile,v 1.79 2019/07/30 08:01:42 jperkin Exp $ | | 1 | # $NetBSD: Makefile,v 1.80 2019/07/31 11:54:20 markd Exp $ |
2 | | | 2 | |
3 | DISTNAME= lyx-2.3.2 | | 3 | DISTNAME= lyx-2.3.2 |
4 | PKGREVISION= 3 | | 4 | PKGREVISION= 4 |
5 | CATEGORIES= editors | | 5 | CATEGORIES= editors |
6 | MASTER_SITES= ftp://ftp.lyx.org/pub/lyx/stable/2.3.x/ | | 6 | MASTER_SITES= ftp://ftp.lyx.org/pub/lyx/stable/2.3.x/ |
7 | MASTER_SITES+= ftp://ftp.sdsc.edu/pub/other/lyx/stable/2.3.x/ | | 7 | MASTER_SITES+= ftp://ftp.sdsc.edu/pub/other/lyx/stable/2.3.x/ |
8 | MASTER_SITES+= ftp://ftp.lip6.fr/pub/lyx/stable/2.3.x/ | | 8 | MASTER_SITES+= ftp://ftp.lip6.fr/pub/lyx/stable/2.3.x/ |
9 | MASTER_SITES+= ftp://ftp.ntua.gr/pub/X11/LyX/stable/2.3.x/ | | 9 | MASTER_SITES+= ftp://ftp.ntua.gr/pub/X11/LyX/stable/2.3.x/ |
10 | EXTRACT_SUFX= .tar.xz | | 10 | EXTRACT_SUFX= .tar.xz |
11 | | | 11 | |
12 | MAINTAINER= reed@reedmedia.net | | 12 | MAINTAINER= reed@reedmedia.net |
13 | HOMEPAGE= http://www.lyx.org/ | | 13 | HOMEPAGE= http://www.lyx.org/ |
14 | COMMENT= Document processor and graphical frontend for LaTeX | | 14 | COMMENT= Document processor and graphical frontend for LaTeX |
15 | LICENSE= gnu-gpl-v2 | | 15 | LICENSE= gnu-gpl-v2 |
16 | | | 16 | |
17 | CONFLICTS+= lyx-xforms-[0-9]* lyx-qt-[0-9]* | | 17 | CONFLICTS+= lyx-xforms-[0-9]* lyx-qt-[0-9]* |
18 | SUPERSEDES= lyx-xforms-[0-9]* lyx-qt-[0-9]* | | 18 | SUPERSEDES= lyx-xforms-[0-9]* lyx-qt-[0-9]* |
19 | DEPENDS+= makeindexk-[0-9]*:../../textproc/makeindexk | | 19 | DEPENDS+= makeindexk-[0-9]*:../../textproc/makeindexk |
| | | 20 | DEPENDS+= tex-accents-[0-9]*:../../print/tex-accents |
20 | DEPENDS+= tex-ae-[0-9]*:../../fonts/tex-ae | | 21 | DEPENDS+= tex-ae-[0-9]*:../../fonts/tex-ae |
21 | DEPENDS+= tex-amsfonts-[0-9]*:../../fonts/tex-amsfonts | | 22 | DEPENDS+= tex-amsfonts-[0-9]*:../../fonts/tex-amsfonts |
22 | DEPENDS+= tex-amsmath-[0-9]*:../../print/tex-amsmath | | 23 | DEPENDS+= tex-amsmath-[0-9]*:../../print/tex-amsmath |
23 | DEPENDS+= tex-babel-[0-9]*:../../print/tex-babel | | 24 | DEPENDS+= tex-babel-[0-9]*:../../print/tex-babel |
24 | DEPENDS+= tex-bera-[0-9]*:../../fonts/tex-bera | | 25 | DEPENDS+= tex-bera-[0-9]*:../../fonts/tex-bera |
25 | #DEPENDS+= tex-bezos-[0-9]*:../../print/tex-bezos | | | |
26 | DEPENDS+= tex-bibtex-[0-9]*:../../print/tex-bibtex | | 26 | DEPENDS+= tex-bibtex-[0-9]*:../../print/tex-bibtex |
27 | DEPENDS+= tex-bibtopic-[0-9]*:../../print/tex-bibtopic | | 27 | DEPENDS+= tex-bibtopic-[0-9]*:../../print/tex-bibtopic |
28 | DEPENDS+= tex-eco-[0-9]*:../../fonts/tex-eco | | 28 | DEPENDS+= tex-eco-[0-9]*:../../fonts/tex-eco |
29 | DEPENDS+= tex-esint-[0-9]*:../../fonts/tex-esint | | 29 | DEPENDS+= tex-esint-[0-9]*:../../fonts/tex-esint |
30 | DEPENDS+= tex-fancyhdr-[0-9]*:../../print/tex-fancyhdr | | 30 | DEPENDS+= tex-fancyhdr-[0-9]*:../../print/tex-fancyhdr |
31 | DEPENDS+= tex-fourier-[0-9]*:../../fonts/tex-fourier | | 31 | DEPENDS+= tex-fourier-[0-9]*:../../fonts/tex-fourier |
32 | DEPENDS+= tex-geometry-[0-9]*:../../print/tex-geometry | | 32 | DEPENDS+= tex-geometry-[0-9]*:../../print/tex-geometry |
33 | DEPENDS+= tex-graphics-[0-9]*:../../print/tex-graphics | | 33 | DEPENDS+= tex-graphics-[0-9]*:../../print/tex-graphics |
34 | DEPENDS+= tex-hyperref-[0-9]*:../../print/tex-hyperref | | 34 | DEPENDS+= tex-hyperref-[0-9]*:../../print/tex-hyperref |
35 | DEPENDS+= tex-jurabib-[0-9]*:../../print/tex-jurabib | | 35 | DEPENDS+= tex-jurabib-[0-9]*:../../print/tex-jurabib |
36 | DEPENDS+= tex-lastpage-[0-9]*:../../print/tex-lastpage | | 36 | DEPENDS+= tex-lastpage-[0-9]*:../../print/tex-lastpage |
37 | DEPENDS+= tex-latex-[0-9]*:../../print/tex-latex | | 37 | DEPENDS+= tex-latex-[0-9]*:../../print/tex-latex |
38 | DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin | | 38 | DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin |
39 | DEPENDS+= tex-listings-[0-9]*:../../print/tex-listings | | 39 | DEPENDS+= tex-listings-[0-9]*:../../print/tex-listings |
40 | DEPENDS+= tex-lm-[0-9]*:../../fonts/tex-lm | | 40 | DEPENDS+= tex-lm-[0-9]*:../../fonts/tex-lm |
41 | DEPENDS+= tex-mhchem-[0-9]*:../../print/tex-mhchem | | 41 | DEPENDS+= tex-mhchem-[0-9]*:../../print/tex-mhchem |
42 | DEPENDS+= tex-natbib-[0-9]*:../../print/tex-natbib | | 42 | DEPENDS+= tex-natbib-[0-9]*:../../print/tex-natbib |
43 | DEPENDS+= tex-nomencl-[0-9]*:../../print/tex-nomencl | | 43 | DEPENDS+= tex-nomencl-[0-9]*:../../print/tex-nomencl |
44 | DEPENDS+= tex-oberdiek-[0-9]*:../../print/tex-oberdiek | | 44 | DEPENDS+= tex-oberdiek-[0-9]*:../../print/tex-oberdiek |
45 | DEPENDS+= tex-pdftex-[0-9]*:../../print/tex-pdftex | | 45 | DEPENDS+= tex-pdftex-[0-9]*:../../print/tex-pdftex |
46 | DEPENDS+= tex-psnfss-[0-9]*:../../fonts/tex-psnfss | | 46 | DEPENDS+= tex-psnfss-[0-9]*:../../fonts/tex-psnfss |
47 | DEPENDS+= tex-pst-node-[0-9]*:../../graphics/tex-pst-node | | 47 | DEPENDS+= tex-pst-node-[0-9]*:../../graphics/tex-pst-node |
48 | DEPENDS+= tex-pstricks-[0-9]*:../../graphics/tex-pstricks | | 48 | DEPENDS+= tex-pstricks-[0-9]*:../../graphics/tex-pstricks |
49 | DEPENDS+= tex-setspace-[0-9]*:../../print/tex-setspace | | 49 | DEPENDS+= tex-setspace-[0-9]*:../../print/tex-setspace |
50 | DEPENDS+= tex-skak-[0-9]*:../../print/tex-skak | | 50 | DEPENDS+= tex-skak-[0-9]*:../../print/tex-skak |
51 | DEPENDS+= tex-subfig-[0-9]*:../../print/tex-subfig | | 51 | DEPENDS+= tex-subfig-[0-9]*:../../print/tex-subfig |
52 | DEPENDS+= tex-tools-[0-9]*:../../print/tex-tools | | 52 | DEPENDS+= tex-tools-[0-9]*:../../print/tex-tools |
53 | DEPENDS+= tex-ulem-[0-9]*:../../print/tex-ulem | | 53 | DEPENDS+= tex-ulem-[0-9]*:../../print/tex-ulem |
54 | DEPENDS+= tex-wasysym-[0-9]*:../../fonts/tex-wasysym | | 54 | DEPENDS+= tex-wasysym-[0-9]*:../../fonts/tex-wasysym |
55 | DEPENDS+= tex-xargs-[0-9]*:../../print/tex-xargs | | 55 | DEPENDS+= tex-xargs-[0-9]*:../../print/tex-xargs |
56 | DEPENDS+= tex-xcolor-[0-9]*:../../print/tex-xcolor | | 56 | DEPENDS+= tex-xcolor-[0-9]*:../../print/tex-xcolor |
57 | DEPENDS+= tex-xypic-[0-9]*:../../graphics/tex-xypic | | 57 | DEPENDS+= tex-xypic-[0-9]*:../../graphics/tex-xypic |
58 | | | 58 | |
59 | UNLIMIT_RESOURCES+= datasize | | 59 | UNLIMIT_RESOURCES+= datasize |
60 | | | 60 | |
61 | USE_LANGUAGES= c c++ | | 61 | USE_LANGUAGES= c c++ |
62 | GNU_CONFIGURE= YES | | 62 | GNU_CONFIGURE= YES |
63 | USE_TOOLS+= gmake perl:run pkg-config xgettext | | 63 | USE_TOOLS+= gmake perl:run pkg-config xgettext |
64 | USE_LIBTOOL= YES | | 64 | USE_LIBTOOL= YES |
65 | USE_PKGLOCALEDIR= YES | | 65 | USE_PKGLOCALEDIR= YES |
66 | PYTHON_VERSIONS_INCOMPATIBLE= 36 37 # not yet ported as of 1.6.10 | | 66 | PYTHON_VERSIONS_INCOMPATIBLE= 36 37 # not yet ported as of 1.6.10 |
67 | | | 67 | |
68 | CXXFLAGS.Linux+= -fpermissive | | 68 | CXXFLAGS.Linux+= -fpermissive |
69 | LDFLAGS.SunOS+= -liconv | | 69 | LDFLAGS.SunOS+= -liconv |
70 | | | 70 | |
71 | CONFIGURE_ARGS+= --without-included-mythes | | 71 | CONFIGURE_ARGS+= --without-included-mythes |
72 | CONFIGURE_ARGS+= --without-included-boost | | 72 | CONFIGURE_ARGS+= --without-included-boost |
73 | | | 73 | |
74 | CONFIGURE_ARGS+= --with-extra-prefix=${BUILDLINK_PREFIX.qt5-qtbase} \ | | 74 | CONFIGURE_ARGS+= --with-extra-prefix=${BUILDLINK_PREFIX.qt5-qtbase} \ |
75 | --with-qt-dir=${QTDIR:Q} \ | | 75 | --with-qt-dir=${QTDIR:Q} \ |
76 | --with-qt-includes=${BUILDLINK_PREFIX.qt5-qtbase}/qt5/include \ | | 76 | --with-qt-includes=${BUILDLINK_PREFIX.qt5-qtbase}/qt5/include \ |
77 | --with-qt-libraries=${BUILDLINK_PREFIX.qt5-qtbase}/qt5/lib \ | | 77 | --with-qt-libraries=${BUILDLINK_PREFIX.qt5-qtbase}/qt5/lib \ |
78 | --enable-qt5 | | 78 | --enable-qt5 |
79 | | | 79 | |
80 | .include "../../mk/bsd.prefs.mk" | | 80 | .include "../../mk/bsd.prefs.mk" |
81 | | | 81 | |
82 | PLIST_VARS+= x11 | | 82 | PLIST_VARS+= x11 |
83 | | | 83 | |
84 | .if ${OPSYS} == "Darwin" | | 84 | .if ${OPSYS} == "Darwin" |
85 | GNU_CONFIGURE_PREFIX= ${PREFIX}/Applications/LyX.app | | 85 | GNU_CONFIGURE_PREFIX= ${PREFIX}/Applications/LyX.app |
86 | PLIST_SUBST+= BIN_DIR=Applications/LyX.app/Contents/MacOS \ | | 86 | PLIST_SUBST+= BIN_DIR=Applications/LyX.app/Contents/MacOS \ |
87 | LYX=LyX \ | | 87 | LYX=LyX \ |
88 | MAN_DIR=Applications/LyX.app/Contents/Resources/man \ | | 88 | MAN_DIR=Applications/LyX.app/Contents/Resources/man \ |
89 | SHARE_DIR=Applications/LyX.app/Contents/Resources | | 89 | SHARE_DIR=Applications/LyX.app/Contents/Resources |
90 | .else | | 90 | .else |
91 | PLIST_SUBST+= BIN_DIR=bin \ | | 91 | PLIST_SUBST+= BIN_DIR=bin \ |
92 | LYX=lyx \ | | 92 | LYX=lyx \ |
93 | MAN_DIR="${PKGMANDIR}" \ | | 93 | MAN_DIR="${PKGMANDIR}" \ |
94 | SHARE_DIR=share/lyx | | 94 | SHARE_DIR=share/lyx |
95 | PLIST.x11= yes | | 95 | PLIST.x11= yes |
96 | .endif | | 96 | .endif |
97 | | | 97 | |
98 | PRINT_PLIST_AWK+= { sub(/bin\//, "$${BIN_DIR}/"); \ | | 98 | PRINT_PLIST_AWK+= { sub(/bin\//, "$${BIN_DIR}/"); \ |
99 | sub(/^share\/lyx\//, "$${SHARE_DIR}/"); \ | | 99 | sub(/^share\/lyx\//, "$${SHARE_DIR}/"); \ |
100 | gsub(/LC_MESSAGES\/lyx./, "LC_MESSAGES/$${LYX}."); \ | | 100 | gsub(/LC_MESSAGES\/lyx./, "LC_MESSAGES/$${LYX}."); \ |
101 | sub(/^${PKGMANDIR}\//, "$${MAN_DIR}/"); \ | | 101 | sub(/^${PKGMANDIR}\//, "$${MAN_DIR}/"); \ |
102 | print; next; } | | 102 | print; next; } |
103 | | | 103 | |
104 | REPLACE_PYTHON= development/autotests/keytest.py \ | | 104 | REPLACE_PYTHON= development/autotests/keytest.py \ |
105 | development/cmake/doc/ReplaceValues.py \ | | 105 | development/cmake/doc/ReplaceValues.py \ |
106 | development/cmake/po/cat.py \ | | 106 | development/cmake/po/cat.py \ |
107 | development/cmake/po/dos2unix.py \ | | 107 | development/cmake/po/dos2unix.py \ |
108 | development/cmake/po/unix2dos.py \ | | 108 | development/cmake/po/unix2dos.py \ |
109 | development/keystest/cache-bisect.py \ | | 109 | development/keystest/cache-bisect.py \ |
110 | development/keystest/make_screenshot_html.py \ | | 110 | development/keystest/make_screenshot_html.py \ |
111 | development/keystest/keytest.py \ | | 111 | development/keystest/keytest.py \ |
112 | development/tools/convert_kmap.py \ | | 112 | development/tools/convert_kmap.py \ |
113 | development/tools/gen_lfuns.py \ | | 113 | development/tools/gen_lfuns.py \ |
114 | development/tools/generate_symbols_images.py \ | | 114 | development/tools/generate_symbols_images.py \ |
115 | development/tools/generate_symbols_list.py \ | | 115 | development/tools/generate_symbols_list.py \ |
116 | development/tools/unicodesymbols.py \ | | 116 | development/tools/unicodesymbols.py \ |
117 | lib/configure.py \ | | 117 | lib/configure.py \ |
118 | lib/lyx2lyx/*.py \ | | 118 | lib/lyx2lyx/*.py \ |
119 | lib/lyx2lyx/lyx2lyx \ | | 119 | lib/lyx2lyx/lyx2lyx \ |
120 | lib/scripts/*.py \ | | 120 | lib/scripts/*.py \ |
121 | lib/scripts/listerrors \ | | 121 | lib/scripts/listerrors \ |
122 | po/lyx_pot.py \ | | 122 | po/lyx_pot.py \ |
123 | po/postats.py \ | | 123 | po/postats.py \ |
124 | src/tex2lyx/test/runtests.py | | 124 | src/tex2lyx/test/runtests.py |
125 | | | 125 | |
126 | SUBST_CLASSES+= python | | 126 | SUBST_CLASSES+= python |
127 | SUBST_STAGE.python= pre-configure | | 127 | SUBST_STAGE.python= pre-configure |
128 | SUBST_FILES.python= lib/configure.py | | 128 | SUBST_FILES.python= lib/configure.py |
129 | SUBST_SED.python= -e "s,python ,${PYTHONBIN} ," | | 129 | SUBST_SED.python= -e "s,python ,${PYTHONBIN} ," |
130 | SUBST_FILES.python+= src/graphics/GraphicsConverter.cpp | | 130 | SUBST_FILES.python+= src/graphics/GraphicsConverter.cpp |
131 | SUBST_SED.python+= -e "s,\#!/usr/bin/env python,\#!${PYTHONBIN}," | | 131 | SUBST_SED.python+= -e "s,\#!/usr/bin/env python,\#!${PYTHONBIN}," |
132 | SUBST_FILES.python+= lib/scripts/lyxpak.py | | 132 | SUBST_FILES.python+= lib/scripts/lyxpak.py |
133 | SUBST_SED.python+= -e "s, = 'python, = '${PYTHONBIN}," | | 133 | SUBST_SED.python+= -e "s, = 'python, = '${PYTHONBIN}," |
134 | SUBST_FILES.python+= src/support/os.cpp | | 134 | SUBST_FILES.python+= src/support/os.cpp |
135 | SUBST_SED.python+= -e 's,command("python -tt,command("${PYTHONBIN} -tt,' | | 135 | SUBST_SED.python+= -e 's,command("python -tt,command("${PYTHONBIN} -tt,' |
136 | | | 136 | |
137 | .include "../../converters/libiconv/buildlink3.mk" | | 137 | .include "../../converters/libiconv/buildlink3.mk" |
138 | .include "../../devel/gettext-lib/buildlink3.mk" | | 138 | .include "../../devel/gettext-lib/buildlink3.mk" |
139 | .include "../../lang/python/application.mk" | | 139 | .include "../../lang/python/application.mk" |
140 | .include "../../textproc/aspell/buildlink3.mk" | | 140 | .include "../../textproc/aspell/buildlink3.mk" |
141 | .include "../../x11/qt5-qtbase/buildlink3.mk" | | 141 | .include "../../x11/qt5-qtbase/buildlink3.mk" |
142 | .include "../../x11/qt5-qtsvg/buildlink3.mk" | | 142 | .include "../../x11/qt5-qtsvg/buildlink3.mk" |
143 | .include "../../x11/qt5-qtx11extras/buildlink3.mk" | | 143 | .include "../../x11/qt5-qtx11extras/buildlink3.mk" |
144 | .include "../../textproc/mythes/buildlink3.mk" | | 144 | .include "../../textproc/mythes/buildlink3.mk" |
145 | .include "../../devel/boost-libs/buildlink3.mk" | | 145 | .include "../../devel/boost-libs/buildlink3.mk" |
146 | | | 146 | |
147 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | | 147 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" |
148 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" | | 148 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" |
149 | .include "../../mk/pthread.buildlink3.mk" | | 149 | .include "../../mk/pthread.buildlink3.mk" |
150 | .include "../../mk/bsd.pkg.mk" | | 150 | .include "../../mk/bsd.pkg.mk" |