Tue May 10 12:16:06 2016 UTC ()
Needs xgettext.


(jperkin)
diff -r1.52 -r1.53 pkgsrc/editors/lyx/Makefile

cvs diff -r1.52 -r1.53 pkgsrc/editors/lyx/Makefile (switch to unified diff)

--- pkgsrc/editors/lyx/Makefile 2016/04/14 12:03:47 1.52
+++ pkgsrc/editors/lyx/Makefile 2016/05/10 12:16:06 1.53
@@ -1,191 +1,191 @@ @@ -1,191 +1,191 @@
1# $NetBSD: Makefile,v 1.52 2016/04/14 12:03:47 jperkin Exp $ 1# $NetBSD: Makefile,v 1.53 2016/05/10 12:16:06 jperkin Exp $
2 2
3DISTNAME= lyx-2.1.2.2 3DISTNAME= lyx-2.1.2.2
4PKGREVISION= 4 4PKGREVISION= 4
5CATEGORIES= editors 5CATEGORIES= editors
6MASTER_SITES= ftp://ftp.lyx.org/pub/lyx/stable/2.1.x/ \ 6MASTER_SITES= ftp://ftp.lyx.org/pub/lyx/stable/2.1.x/ \
7 http://gd.tuwien.ac.at/publishing/tex/lyx/stable/2.1.x/ \ 7 http://gd.tuwien.ac.at/publishing/tex/lyx/stable/2.1.x/ \
8 ftp://gd.tuwien.ac.at/publishing/tex/lyx/stable/2.1.x/ \ 8 ftp://gd.tuwien.ac.at/publishing/tex/lyx/stable/2.1.x/ \
9 ftp://ftp.sdsc.edu/pub/other/lyx/stable/2.1.x/ \ 9 ftp://ftp.sdsc.edu/pub/other/lyx/stable/2.1.x/ \
10 ftp://ftp.lip6.fr/pub/lyx/stable/2.1.x/ \ 10 ftp://ftp.lip6.fr/pub/lyx/stable/2.1.x/ \
11 ftp://ftp.ntua.gr/pub/X11/LyX/stable/2.1.x/ 11 ftp://ftp.ntua.gr/pub/X11/LyX/stable/2.1.x/
12EXTRACT_SUFX= .tar.xz 12EXTRACT_SUFX= .tar.xz
13 13
14MAINTAINER= reed@reedmedia.net 14MAINTAINER= reed@reedmedia.net
15HOMEPAGE= http://www.lyx.org/ 15HOMEPAGE= http://www.lyx.org/
16COMMENT= Document processor and graphical frontend for LaTeX 16COMMENT= Document processor and graphical frontend for LaTeX
17LICENSE= gnu-gpl-v2 17LICENSE= gnu-gpl-v2
18 18
19CONFLICTS+= lyx-xforms-[0-9]* lyx-qt-[0-9]* 19CONFLICTS+= lyx-xforms-[0-9]* lyx-qt-[0-9]*
20SUPERSEDES= lyx-xforms-[0-9]* lyx-qt-[0-9]* 20SUPERSEDES= lyx-xforms-[0-9]* lyx-qt-[0-9]*
21DEPENDS+= makeindexk-[0-9]*:../../textproc/makeindexk 21DEPENDS+= makeindexk-[0-9]*:../../textproc/makeindexk
22DEPENDS+= tex-ae-[0-9]*:../../fonts/tex-ae 22DEPENDS+= tex-ae-[0-9]*:../../fonts/tex-ae
23DEPENDS+= tex-amsfonts-[0-9]*:../../fonts/tex-amsfonts 23DEPENDS+= tex-amsfonts-[0-9]*:../../fonts/tex-amsfonts
24DEPENDS+= tex-amsmath-[0-9]*:../../print/tex-amsmath 24DEPENDS+= tex-amsmath-[0-9]*:../../print/tex-amsmath
25DEPENDS+= tex-babel-[0-9]*:../../print/tex-babel 25DEPENDS+= tex-babel-[0-9]*:../../print/tex-babel
26DEPENDS+= tex-bera-[0-9]*:../../fonts/tex-bera 26DEPENDS+= tex-bera-[0-9]*:../../fonts/tex-bera
27DEPENDS+= tex-bezos-[0-9]*:../../print/tex-bezos 27DEPENDS+= tex-bezos-[0-9]*:../../print/tex-bezos
28DEPENDS+= tex-bibtex-[0-9]*:../../print/tex-bibtex 28DEPENDS+= tex-bibtex-[0-9]*:../../print/tex-bibtex
29DEPENDS+= tex-bibtopic-[0-9]*:../../print/tex-bibtopic 29DEPENDS+= tex-bibtopic-[0-9]*:../../print/tex-bibtopic
30DEPENDS+= tex-eco-[0-9]*:../../fonts/tex-eco 30DEPENDS+= tex-eco-[0-9]*:../../fonts/tex-eco
31DEPENDS+= tex-esint-[0-9]*:../../fonts/tex-esint 31DEPENDS+= tex-esint-[0-9]*:../../fonts/tex-esint
32DEPENDS+= tex-fancyhdr-[0-9]*:../../print/tex-fancyhdr 32DEPENDS+= tex-fancyhdr-[0-9]*:../../print/tex-fancyhdr
33DEPENDS+= tex-fourier-[0-9]*:../../fonts/tex-fourier 33DEPENDS+= tex-fourier-[0-9]*:../../fonts/tex-fourier
34DEPENDS+= tex-geometry-[0-9]*:../../print/tex-geometry 34DEPENDS+= tex-geometry-[0-9]*:../../print/tex-geometry
35DEPENDS+= tex-graphics-[0-9]*:../../print/tex-graphics 35DEPENDS+= tex-graphics-[0-9]*:../../print/tex-graphics
36DEPENDS+= tex-hyperref-[0-9]*:../../print/tex-hyperref 36DEPENDS+= tex-hyperref-[0-9]*:../../print/tex-hyperref
37DEPENDS+= tex-jurabib-[0-9]*:../../print/tex-jurabib 37DEPENDS+= tex-jurabib-[0-9]*:../../print/tex-jurabib
38DEPENDS+= tex-lastpage-[0-9]*:../../print/tex-lastpage 38DEPENDS+= tex-lastpage-[0-9]*:../../print/tex-lastpage
39DEPENDS+= tex-latex-[0-9]*:../../print/tex-latex 39DEPENDS+= tex-latex-[0-9]*:../../print/tex-latex
40DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin 40DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin
41DEPENDS+= tex-listings-[0-9]*:../../print/tex-listings 41DEPENDS+= tex-listings-[0-9]*:../../print/tex-listings
42DEPENDS+= tex-lm-[0-9]*:../../fonts/tex-lm 42DEPENDS+= tex-lm-[0-9]*:../../fonts/tex-lm
43DEPENDS+= tex-mhchem-[0-9]*:../../print/tex-mhchem 43DEPENDS+= tex-mhchem-[0-9]*:../../print/tex-mhchem
44DEPENDS+= tex-natbib-[0-9]*:../../print/tex-natbib 44DEPENDS+= tex-natbib-[0-9]*:../../print/tex-natbib
45DEPENDS+= tex-nomencl-[0-9]*:../../print/tex-nomencl 45DEPENDS+= tex-nomencl-[0-9]*:../../print/tex-nomencl
46DEPENDS+= tex-oberdiek-[0-9]*:../../print/tex-oberdiek 46DEPENDS+= tex-oberdiek-[0-9]*:../../print/tex-oberdiek
47DEPENDS+= tex-pdftex-[0-9]*:../../print/tex-pdftex 47DEPENDS+= tex-pdftex-[0-9]*:../../print/tex-pdftex
48DEPENDS+= tex-psnfss-[0-9]*:../../fonts/tex-psnfss 48DEPENDS+= tex-psnfss-[0-9]*:../../fonts/tex-psnfss
49DEPENDS+= tex-pst-node-[0-9]*:../../graphics/tex-pst-node 49DEPENDS+= tex-pst-node-[0-9]*:../../graphics/tex-pst-node
50DEPENDS+= tex-pstricks-[0-9]*:../../graphics/tex-pstricks 50DEPENDS+= tex-pstricks-[0-9]*:../../graphics/tex-pstricks
51DEPENDS+= tex-setspace-[0-9]*:../../print/tex-setspace 51DEPENDS+= tex-setspace-[0-9]*:../../print/tex-setspace
52DEPENDS+= tex-skak-[0-9]*:../../print/tex-skak 52DEPENDS+= tex-skak-[0-9]*:../../print/tex-skak
53DEPENDS+= tex-subfig-[0-9]*:../../print/tex-subfig 53DEPENDS+= tex-subfig-[0-9]*:../../print/tex-subfig
54DEPENDS+= tex-tools-[0-9]*:../../print/tex-tools 54DEPENDS+= tex-tools-[0-9]*:../../print/tex-tools
55DEPENDS+= tex-ulem-[0-9]*:../../print/tex-ulem 55DEPENDS+= tex-ulem-[0-9]*:../../print/tex-ulem
56DEPENDS+= tex-wasysym-[0-9]*:../../fonts/tex-wasysym 56DEPENDS+= tex-wasysym-[0-9]*:../../fonts/tex-wasysym
57DEPENDS+= tex-xargs-[0-9]*:../../print/tex-xargs 57DEPENDS+= tex-xargs-[0-9]*:../../print/tex-xargs
58DEPENDS+= tex-xcolor-[0-9]*:../../print/tex-xcolor 58DEPENDS+= tex-xcolor-[0-9]*:../../print/tex-xcolor
59DEPENDS+= tex-xypic-[0-9]*:../../graphics/tex-xypic 59DEPENDS+= tex-xypic-[0-9]*:../../graphics/tex-xypic
60 60
61UNLIMIT_RESOURCES+= datasize 61UNLIMIT_RESOURCES+= datasize
62 62
63USE_LANGUAGES= c c++ 63USE_LANGUAGES= c c++
64GNU_CONFIGURE= YES 64GNU_CONFIGURE= YES
65USE_TOOLS+= gmake perl:run pkg-config 65USE_TOOLS+= gmake perl:run pkg-config xgettext
66USE_LIBTOOL= YES 66USE_LIBTOOL= YES
67USE_PKGLOCALEDIR= YES 67USE_PKGLOCALEDIR= YES
68PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # not yet ported as of 1.6.10 68PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # not yet ported as of 1.6.10
69 69
70CXXFLAGS.Linux+= -fpermissive 70CXXFLAGS.Linux+= -fpermissive
71LDFLAGS.SunOS+= -liconv 71LDFLAGS.SunOS+= -liconv
72 72
73CONFIGURE_ARGS+= --without-included-mythes 73CONFIGURE_ARGS+= --without-included-mythes
74CONFIGURE_ARGS+= --without-included-boost 74CONFIGURE_ARGS+= --without-included-boost
75 75
76CONFIGURE_ARGS+= --with-extra-prefix=${BUILDLINK_PREFIX.qt4-libs} \ 76CONFIGURE_ARGS+= --with-extra-prefix=${BUILDLINK_PREFIX.qt4-libs} \
77 --with-qt4-dir=${QTDIR:Q} \ 77 --with-qt4-dir=${QTDIR:Q} \
78 --with-qt4-includes=${BUILDLINK_PREFIX.qt4-libs}/qt4/include \ 78 --with-qt4-includes=${BUILDLINK_PREFIX.qt4-libs}/qt4/include \
79 --with-qt4-libraries=${BUILDLINK_PREFIX.qt4-libs}/qt4/lib 79 --with-qt4-libraries=${BUILDLINK_PREFIX.qt4-libs}/qt4/lib
80 80
81.include "../../mk/bsd.prefs.mk" 81.include "../../mk/bsd.prefs.mk"
82 82
83.if ${OPSYS} == "Darwin" 83.if ${OPSYS} == "Darwin"
84GNU_CONFIGURE_PREFIX= ${PREFIX}/Applications/LyX.app 84GNU_CONFIGURE_PREFIX= ${PREFIX}/Applications/LyX.app
85PLIST_SUBST+= BIN_DIR=Applications/LyX.app/Contents/MacOS \ 85PLIST_SUBST+= BIN_DIR=Applications/LyX.app/Contents/MacOS \
86 LYX=LyX \ 86 LYX=LyX \
87 MAN_DIR=Applications/LyX.app/Contents/Resources/man \ 87 MAN_DIR=Applications/LyX.app/Contents/Resources/man \
88 SHARE_DIR=Applications/LyX.app/Contents/Resources 88 SHARE_DIR=Applications/LyX.app/Contents/Resources
89.else 89.else
90PLIST_SUBST+= BIN_DIR=bin \ 90PLIST_SUBST+= BIN_DIR=bin \
91 LYX=lyx \ 91 LYX=lyx \
92 MAN_DIR="${PKGMANDIR}" \ 92 MAN_DIR="${PKGMANDIR}" \
93 SHARE_DIR=share/lyx 93 SHARE_DIR=share/lyx
94.endif 94.endif
95 95
96PRINT_PLIST_AWK+= { sub(/bin\//, "$${BIN_DIR}/"); \ 96PRINT_PLIST_AWK+= { sub(/bin\//, "$${BIN_DIR}/"); \
97 sub(/^share\/lyx\//, "$${SHARE_DIR}/"); \ 97 sub(/^share\/lyx\//, "$${SHARE_DIR}/"); \
98 gsub(/LC_MESSAGES\/lyx./, "LC_MESSAGES/$${LYX}."); \ 98 gsub(/LC_MESSAGES\/lyx./, "LC_MESSAGES/$${LYX}."); \
99 sub(/^${PKGMANDIR}\//, "$${MAN_DIR}/"); \ 99 sub(/^${PKGMANDIR}\//, "$${MAN_DIR}/"); \
100 print; next; } 100 print; next; }
101 101
102REPLACE_PYTHON= development/autotests/keytest.py \ 102REPLACE_PYTHON= development/autotests/keytest.py \
103 development/cmake/doc/ReplaceValues.py \ 103 development/cmake/doc/ReplaceValues.py \
104 development/cmake/po/cat.py \ 104 development/cmake/po/cat.py \
105 development/cmake/po/dos2unix.py \ 105 development/cmake/po/dos2unix.py \
106 development/cmake/po/unix2dos.py \ 106 development/cmake/po/unix2dos.py \
107 development/keystest/cache-bisect.py \ 107 development/keystest/cache-bisect.py \
108 development/keystest/make_screenshot_html.py \ 108 development/keystest/make_screenshot_html.py \
109 development/keystest/keytest.py \ 109 development/keystest/keytest.py \
110 development/tools/convert_kmap.py \ 110 development/tools/convert_kmap.py \
111 development/tools/gen_lfuns.py \ 111 development/tools/gen_lfuns.py \
112 development/tools/generate_symbols_images.py \ 112 development/tools/generate_symbols_images.py \
113 development/tools/generate_symbols_list.py \ 113 development/tools/generate_symbols_list.py \
114 development/tools/unicodesymbols.py \ 114 development/tools/unicodesymbols.py \
115 lib/configure.py \ 115 lib/configure.py \
116 lib/lyx2lyx/LyX.py \ 116 lib/lyx2lyx/LyX.py \
117 lib/lyx2lyx/generate_encoding_info.py \ 117 lib/lyx2lyx/generate_encoding_info.py \
118 lib/lyx2lyx/lyx2lyx \ 118 lib/lyx2lyx/lyx2lyx \
119 lib/lyx2lyx/lyx2lyx_lang.py \ 119 lib/lyx2lyx/lyx2lyx_lang.py \
120 lib/lyx2lyx/lyx2lyx_tools.py \ 120 lib/lyx2lyx/lyx2lyx_tools.py \
121 lib/lyx2lyx/lyx2lyx_version.py \ 121 lib/lyx2lyx/lyx2lyx_version.py \
122 lib/lyx2lyx/lyx_0_06.py \ 122 lib/lyx2lyx/lyx_0_06.py \
123 lib/lyx2lyx/lyx_0_08.py \ 123 lib/lyx2lyx/lyx_0_08.py \
124 lib/lyx2lyx/lyx_0_10.py \ 124 lib/lyx2lyx/lyx_0_10.py \
125 lib/lyx2lyx/lyx_0_12.py \ 125 lib/lyx2lyx/lyx_0_12.py \
126 lib/lyx2lyx/lyx_1_0.py \ 126 lib/lyx2lyx/lyx_1_0.py \
127 lib/lyx2lyx/lyx_1_1.py \ 127 lib/lyx2lyx/lyx_1_1.py \
128 lib/lyx2lyx/lyx_1_1_5.py \ 128 lib/lyx2lyx/lyx_1_1_5.py \
129 lib/lyx2lyx/lyx_1_1_6_0.py \ 129 lib/lyx2lyx/lyx_1_1_6_0.py \
130 lib/lyx2lyx/lyx_1_1_6_3.py \ 130 lib/lyx2lyx/lyx_1_1_6_3.py \
131 lib/lyx2lyx/lyx_1_2.py \ 131 lib/lyx2lyx/lyx_1_2.py \
132 lib/lyx2lyx/lyx_1_3.py \ 132 lib/lyx2lyx/lyx_1_3.py \
133 lib/lyx2lyx/lyx_1_4.py \ 133 lib/lyx2lyx/lyx_1_4.py \
134 lib/lyx2lyx/lyx_1_5.py \ 134 lib/lyx2lyx/lyx_1_5.py \
135 lib/lyx2lyx/lyx_1_6.py \ 135 lib/lyx2lyx/lyx_1_6.py \
136 lib/lyx2lyx/lyx_2_0.py \ 136 lib/lyx2lyx/lyx_2_0.py \
137 lib/lyx2lyx/lyx_2_1.py \ 137 lib/lyx2lyx/lyx_2_1.py \
138 lib/lyx2lyx/parser_tools.py \ 138 lib/lyx2lyx/parser_tools.py \
139 lib/lyx2lyx/profiling.py \ 139 lib/lyx2lyx/profiling.py \
140 lib/lyx2lyx/test_parser_tools.py \ 140 lib/lyx2lyx/test_parser_tools.py \
141 lib/lyx2lyx/unicode_symbols.py \ 141 lib/lyx2lyx/unicode_symbols.py \
142 lib/scripts/TeXFiles.py \ 142 lib/scripts/TeXFiles.py \
143 lib/scripts/clean_dvi.py \ 143 lib/scripts/clean_dvi.py \
144 lib/scripts/convertDefault.py \ 144 lib/scripts/convertDefault.py \
145 lib/scripts/csv2lyx.py \ 145 lib/scripts/csv2lyx.py \
146 lib/scripts/date.py \ 146 lib/scripts/date.py \
147 lib/scripts/ext_copy.py \ 147 lib/scripts/ext_copy.py \
148 lib/scripts/fen2ascii.py \ 148 lib/scripts/fen2ascii.py \
149 lib/scripts/fig2pdftex.py \ 149 lib/scripts/fig2pdftex.py \
150 lib/scripts/fig2pstex.py \ 150 lib/scripts/fig2pstex.py \
151 lib/scripts/fig_copy.py \ 151 lib/scripts/fig_copy.py \
152 lib/scripts/html2latexwrapper.py \ 152 lib/scripts/html2latexwrapper.py \
153 lib/scripts/include_bib.py \ 153 lib/scripts/include_bib.py \
154 lib/scripts/layout2layout.py \ 154 lib/scripts/layout2layout.py \
155 lib/scripts/legacy_lyxpreview2ppm.py \ 155 lib/scripts/legacy_lyxpreview2ppm.py \
156 lib/scripts/listerrors \ 156 lib/scripts/listerrors \
157 lib/scripts/lyxpak.py \ 157 lib/scripts/lyxpak.py \
158 lib/scripts/lyxpreview2bitmap.py \ 158 lib/scripts/lyxpreview2bitmap.py \
159 lib/scripts/lyxpreview_tools.py \ 159 lib/scripts/lyxpreview_tools.py \
160 lib/scripts/prefs2prefs.py \ 160 lib/scripts/prefs2prefs.py \
161 lib/scripts/prefs2prefs_lfuns.py \ 161 lib/scripts/prefs2prefs_lfuns.py \
162 lib/scripts/prefs2prefs_prefs.py \ 162 lib/scripts/prefs2prefs_prefs.py \
163 lib/scripts/tex_copy.py \ 163 lib/scripts/tex_copy.py \
164 po/lyx_pot.py \ 164 po/lyx_pot.py \
165 po/postats.py \ 165 po/postats.py \
166 src/tex2lyx/test/runtests.py 166 src/tex2lyx/test/runtests.py
167 167
168SUBST_CLASSES+= python 168SUBST_CLASSES+= python
169SUBST_STAGE.python= pre-configure 169SUBST_STAGE.python= pre-configure
170SUBST_FILES.python= lib/configure.py 170SUBST_FILES.python= lib/configure.py
171SUBST_SED.python= -e "s,python ,${PYTHONBIN} ," 171SUBST_SED.python= -e "s,python ,${PYTHONBIN} ,"
172SUBST_FILES.python+= src/graphics/GraphicsConverter.cpp 172SUBST_FILES.python+= src/graphics/GraphicsConverter.cpp
173SUBST_SED.python+= -e "s,\#!/usr/bin/env python,\#!${PYTHONBIN}," 173SUBST_SED.python+= -e "s,\#!/usr/bin/env python,\#!${PYTHONBIN},"
174SUBST_FILES.python+= lib/scripts/lyxpak.py 174SUBST_FILES.python+= lib/scripts/lyxpak.py
175SUBST_SED.python+= -e "s, = 'python, = '${PYTHONBIN}," 175SUBST_SED.python+= -e "s, = 'python, = '${PYTHONBIN},"
176SUBST_FILES.python+= src/support/os.cpp 176SUBST_FILES.python+= src/support/os.cpp
177SUBST_SED.python+= -e 's,command("python -tt,command("${PYTHONBIN} -tt,' 177SUBST_SED.python+= -e 's,command("python -tt,command("${PYTHONBIN} -tt,'
178 178
179.include "../../converters/libiconv/buildlink3.mk" 179.include "../../converters/libiconv/buildlink3.mk"
180.include "../../devel/gettext-lib/buildlink3.mk" 180.include "../../devel/gettext-lib/buildlink3.mk"
181.include "../../lang/python/application.mk" 181.include "../../lang/python/application.mk"
182.include "../../textproc/aspell/buildlink3.mk" 182.include "../../textproc/aspell/buildlink3.mk"
183.include "../../x11/qt4-libs/buildlink3.mk" 183.include "../../x11/qt4-libs/buildlink3.mk"
184.include "../../x11/qt4-tools/buildlink3.mk" 184.include "../../x11/qt4-tools/buildlink3.mk"
185.include "../../textproc/mythes/buildlink3.mk" 185.include "../../textproc/mythes/buildlink3.mk"
186.include "../../devel/boost-libs/buildlink3.mk" 186.include "../../devel/boost-libs/buildlink3.mk"
187 187
188.include "../../sysutils/desktop-file-utils/desktopdb.mk" 188.include "../../sysutils/desktop-file-utils/desktopdb.mk"
189.include "../../graphics/hicolor-icon-theme/buildlink3.mk" 189.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
190.include "../../mk/pthread.buildlink3.mk" 190.include "../../mk/pthread.buildlink3.mk"
191.include "../../mk/bsd.pkg.mk" 191.include "../../mk/bsd.pkg.mk"