use upstream changes for synctex shared lib, adapt rules
Norbert Preining
9 years ago
59 | 59 | ptexenc library, a library for encoding support in pTeX, a Japanese |
60 | 60 | TeX engine. |
61 | 61 | |
62 | Package: libsynctex-parser1 | |
62 | Package: libsynctex1 | |
63 | 63 | Section: libs |
64 | 64 | Architecture: any |
65 | 65 | Depends: ${misc:Depends}, ${shlibs:Depends} |
66 | 66 | Description: TeX Live: SyncTeX parser library |
67 | 67 | Library for SyncTeX parsing support. |
68 | 68 | |
69 | Package: libsynctex-parser-dev | |
69 | Package: libsynctex-dev | |
70 | 70 | Section: libdevel |
71 | 71 | Architecture: any |
72 | Depends: ${misc:Depends}, libsynctex-parser1 (= ${binary:Version}) | |
72 | Depends: ${misc:Depends}, libsynctex1 (= ${binary:Version}) | |
73 | 73 | Description: Tex Live: SyncTeX parser library (development part) |
74 | 74 | This package contains the static library and header files for the SyncTex |
75 | 75 | parser library. |
0 | usr/lib/libsynctex.so.* |
7 | 7 | pmpost-mp1.902 |
8 | 8 | upmpost-mp1.902 |
9 | 9 | ac-ctie |
10 | syntex-lib.patch | |
10 | #syntex-lib.patch | |
11 | 11 | upupstream-fix-pdf_h-query-svn5018 |
12 | 12 | upupstream-fix-math-list-crash-svn5019 |
13 | 13 | upupstream-bug907-svn5024 |
14 | upstream-svn34447-partly-kpathsea-pc-file | |
15 | upstream-svn34448-partly-ptexenc-pc-file | |
16 | upstream-svn34449-partly-synctex-sharedlib |
0 | --- | |
1 | texk/kpathsea/Makefile.am | 4 ++++ | |
2 | texk/kpathsea/configure.ac | 2 +- | |
3 | texk/kpathsea/kpathsea.pc.in | 11 +++++++++++ | |
4 | 3 files changed, 16 insertions(+), 1 deletion(-) | |
5 | ||
6 | --- texlive-bin.orig/texk/kpathsea/Makefile.am | |
7 | +++ texlive-bin/texk/kpathsea/Makefile.am | |
8 | @@ -180,6 +180,10 @@ | |
9 | xopendir.h \ | |
10 | xstat.h | |
11 | ||
12 | +pkgconfigdir = ${libdir}/pkgconfig | |
13 | + | |
14 | +pkgconfig_DATA = kpathsea.pc | |
15 | + | |
16 | ## Handle backslash continuations, then null out comments and | |
17 | ## leading/trailing whitespace. An awk script does the rest. | |
18 | ## | |
19 | --- texlive-bin.orig/texk/kpathsea/configure.ac | |
20 | +++ texlive-bin/texk/kpathsea/configure.ac | |
21 | @@ -141,6 +141,6 @@ | |
22 | #define KPSEVERSION "kpathsea version] kpse_version["]) | |
23 | AH_BOTTOM([#endif /* !KPATHSEA_C_AUTO_H */]) | |
24 | ||
25 | -AC_CONFIG_FILES([Makefile doc/Makefile man/Makefile win32/Makefile]) | |
26 | +AC_CONFIG_FILES([Makefile doc/Makefile man/Makefile win32/Makefile kpathsea.pc]) | |
27 | ||
28 | AC_OUTPUT | |
29 | --- /dev/null | |
30 | +++ texlive-bin/texk/kpathsea/kpathsea.pc.in | |
31 | @@ -0,0 +1,11 @@ | |
32 | +prefix=@prefix@ | |
33 | +exec_prefix=@exec_prefix@ | |
34 | +libdir=@libdir@ | |
35 | +includedir=@includedir@ | |
36 | + | |
37 | +Name: kpathsea | |
38 | +Description: Kpathsea library | |
39 | +Version: @KPSEVERSION@ | |
40 | +Libs: -L${libdir} -lkpathsea | |
41 | +Cflags: -I${includedir} | |
42 | + |
0 | --- | |
1 | texk/ptexenc/Makefile.am | 4 ++++ | |
2 | texk/ptexenc/configure.ac | 2 +- | |
3 | texk/ptexenc/ptexenc.pc.in | 12 ++++++++++++ | |
4 | 3 files changed, 17 insertions(+), 1 deletion(-) | |
5 | ||
6 | --- texlive-bin.orig/texk/ptexenc/Makefile.am | |
7 | +++ texlive-bin/texk/ptexenc/Makefile.am | |
8 | @@ -36,6 +36,10 @@ | |
9 | ptexenc/ptexenc.h \ | |
10 | ptexenc/unicode.h | |
11 | ||
12 | +pkgconfigdir = ${libdir}/pkgconfig | |
13 | + | |
14 | +pkgconfig_DATA = ptexenc.pc | |
15 | + | |
16 | EXTRA_DIST = COPYRIGHT ChangeLog.jp | |
17 | ||
18 | # Rebuild | |
19 | --- texlive-bin.orig/texk/ptexenc/configure.ac | |
20 | +++ texlive-bin/texk/ptexenc/configure.ac | |
21 | @@ -50,6 +50,6 @@ | |
22 | #define PTEXENCVERSION "ptexenc version] ptexenc_version["]) | |
23 | AH_BOTTOM([#endif /* !PTEXENC_C_AUTO_H */]) | |
24 | ||
25 | -AC_CONFIG_FILES([Makefile]) | |
26 | +AC_CONFIG_FILES([Makefile ptexenc.pc]) | |
27 | ||
28 | AC_OUTPUT | |
29 | --- /dev/null | |
30 | +++ texlive-bin/texk/ptexenc/ptexenc.pc.in | |
31 | @@ -0,0 +1,12 @@ | |
32 | +prefix=@prefix@ | |
33 | +exec_prefix=@exec_prefix@ | |
34 | +libdir=@libdir@ | |
35 | +includedir=@includedir@ | |
36 | + | |
37 | +Name: ptexenc | |
38 | +Description: Ptexenc library | |
39 | +Version: @PTEXENCVERSION@ | |
40 | +Requires.private: kpathsea | |
41 | +Libs: -L${libdir} -lptexenc | |
42 | +Cflags: -I${includedir} | |
43 | + |
0 | --- | |
1 | texk/web2c/ac/web2c.ac | 7 +++++ | |
2 | texk/web2c/aclocal.m4 | 1 | |
3 | texk/web2c/configure.ac | 8 ++++++ | |
4 | texk/web2c/synctexdir/am/synctex.am | 44 +++++++++++++++++++++++++++++++----- | |
5 | texk/web2c/synctexdir/synctex.pc.in | 12 +++++++++ | |
6 | 5 files changed, 66 insertions(+), 6 deletions(-) | |
7 | ||
8 | --- texlive-bin.orig/texk/web2c/ac/web2c.ac | |
9 | +++ texlive-bin/texk/web2c/ac/web2c.ac | |
10 | @@ -79,3 +79,10 @@ | |
11 | AS_HELP_STRING([--disable-web-progs], | |
12 | [do not build WEB programs bibtex ... weave], | |
13 | kpse_indent_26))[]dnl | |
14 | + | |
15 | +## configure option for the SyncTeX tool | |
16 | +AC_ARG_ENABLE([synctex], | |
17 | + AS_HELP_STRING([--disable-synctex], | |
18 | + [do not build the SyncTeX tool], | |
19 | + kpse_indent_26))[]dnl | |
20 | + | |
21 | --- texlive-bin.orig/texk/web2c/aclocal.m4 | |
22 | +++ texlive-bin/texk/web2c/aclocal.m4 | |
23 | @@ -1233,6 +1233,7 @@ | |
24 | m4_include([../../m4/kpse-icu-flags.m4]) | |
25 | m4_include([../../m4/kpse-kpathsea-flags.m4]) | |
26 | m4_include([../../m4/kpse-lex.m4]) | |
27 | +m4_include([../../m4/kpse-lib-version.m4]) | |
28 | m4_include([../../m4/kpse-libpng-flags.m4]) | |
29 | m4_include([../../m4/kpse-lt-hack.m4]) | |
30 | m4_include([../../m4/kpse-lua52-flags.m4]) | |
31 | --- texlive-bin.orig/texk/web2c/configure.ac | |
32 | +++ texlive-bin/texk/web2c/configure.ac | |
33 | @@ -211,6 +211,8 @@ | |
34 | ||
35 | AM_CONDITIONAL([WEB], [test "x$enable_web_progs" != xno]) | |
36 | ||
37 | +AM_CONDITIONAL([SYNCTEX], [test "x$enable_synctex" != xno]) | |
38 | + | |
39 | AS_IF([test "x$enable_ptex:$enable_eptex" = xno:no], | |
40 | [enable_pweb_progs=no], | |
41 | [enable_pweb_progs=$enable_web_progs]) | |
42 | @@ -393,6 +395,12 @@ | |
43 | AC_CONFIG_FILES([ctangleboot-sh], [chmod +x ctangleboot-sh]) | |
44 | AC_CONFIG_FILES([silent-sh], [chmod +x silent-sh]) | |
45 | ||
46 | +m4_define([synctex_version], m4_chomp(m4_include([synctexdir/synctex_parser_version.txt]))[.0]) | |
47 | +AC_SUBST([SYNCTEXVERSION], [synctex_version]) | |
48 | +KPSE_LT_VERSION([synctex]) | |
49 | + | |
50 | +AC_CONFIG_FILES([synctexdir/synctex.pc]) | |
51 | + | |
52 | dnl The subdirectory web2c must be configured for the build system. | |
53 | dnl When cross compiling, can not share the cache file with the subdirectory! | |
54 | AC_CONFIG_COMMANDS_POST([AS_IF([test "x$cross_compiling" = xyes], | |
55 | --- texlive-bin.orig/texk/web2c/synctexdir/am/synctex.am | |
56 | +++ texlive-bin/texk/web2c/synctexdir/am/synctex.am | |
57 | @@ -5,21 +5,53 @@ | |
58 | ||
59 | ## The SyncTeX tool | |
60 | ||
61 | +if SYNCTEX | |
62 | bin_PROGRAMS += synctex | |
63 | +endif SYNCTEX | |
64 | +EXTRA_PROGRAMS += synctex | |
65 | ||
66 | synctex_SOURCES = \ | |
67 | - synctexdir/synctex_main.c \ | |
68 | + synctexdir/synctex_main.c | |
69 | + | |
70 | +synctex_CPPFLAGS = -I$(srcdir)/synctexdir | |
71 | + | |
72 | +synctex_LDADD = libsynctex.la $(ZLIB_LIBS) | |
73 | + | |
74 | +$(synctex_OBJECTS): libsynctex.la | |
75 | + | |
76 | +## The SyncTeX parser library | |
77 | + | |
78 | +EXTRA_LTLIBRARIES = libsynctex.la | |
79 | + | |
80 | +libsynctex_la_CPPFLAGS = -I$(srcdir)/synctexdir $(ZLIB_INCLUDES) -DSYNCTEX_USE_LOCAL_HEADER | |
81 | + | |
82 | +libsynctex_la_LDFLAGS = -rpath @libdir@ -bindir @bindir@ -no-undefined -version-info $(SYNCTEX_LT_VERSINFO) | |
83 | + | |
84 | +libsynctex_la_SOURCES = \ | |
85 | synctexdir/synctex_parser.c \ | |
86 | - synctexdir/synctex_parser.h \ | |
87 | synctexdir/synctex_parser_local.h \ | |
88 | - synctexdir/synctex_parser_utils.h \ | |
89 | synctexdir/synctex_parser_utils.c | |
90 | ||
91 | -synctex_CPPFLAGS = -I$(srcdir)/synctexdir $(ZLIB_INCLUDES) -DSYNCTEX_USE_LOCAL_HEADER | |
92 | +libsynctex_la_LIBADD = $(ZLIB_LIBS) | |
93 | + | |
94 | +$(libsynctex_la_OBJECTS): $(ZLIB_DEPEND) | |
95 | + | |
96 | +if SYNCTEX | |
97 | +install-exec-local: libsynctex.la | |
98 | + $(MKDIR_P) "$(DESTDIR)$(libdir)" | |
99 | + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) \ | |
100 | + libsynctex.la "$(DESTDIR)$(libdir)" | |
101 | + | |
102 | +nobase_include_HEADERS = \ | |
103 | + synctexdir/synctex_parser.h \ | |
104 | + synctexdir/synctex_parser_utils.h | |
105 | +endif SYNCTEX | |
106 | ||
107 | -synctex_LDADD = $(ZLIB_LIBS) | |
108 | +pkgconfigdir = ${libdir}/pkgconfig | |
109 | ||
110 | -$(synctex_OBJECTS): $(ZLIB_DEPEND) | |
111 | +if SYNCTEX | |
112 | +pkgconfig_DATA = synctexdir/synctex.pc | |
113 | +endif SYNCTEX | |
114 | ||
115 | dist_man_MANS += synctexdir/man1/synctex.1 synctexdir/man5/synctex.5 | |
116 | ||
117 | --- /dev/null | |
118 | +++ texlive-bin/texk/web2c/synctexdir/synctex.pc.in | |
119 | @@ -0,0 +1,12 @@ | |
120 | +prefix=@prefix@ | |
121 | +exec_prefix=@exec_prefix@ | |
122 | +libdir=@libdir@ | |
123 | +includedir=@includedir@ | |
124 | + | |
125 | +Name: synctex | |
126 | +Description: SyncTeX parser library | |
127 | +Version: @SYNCTEXVERSION@ | |
128 | +Requires.private: zlib | |
129 | +Libs: -L${libdir} -lsynctex | |
130 | +Cflags: -I${includedir} | |
131 | + |
133 | 133 | texk/kpathsea/AUTHORS \ |
134 | 134 | texk/kpathsea/NEWS texk/kpathsea/PROJECTS \ |
135 | 135 | texk/kpathsea/README |
136 | dh_installdocs -plibsynctex1 -plibsynctex-dev \ | |
137 | texk/web2c/synctexdir/README.txt \ | |
138 | texk/web2c/synctexdir/synctex_parser_readme.txt | |
136 | 139 | |
137 | 140 | override_dh_installchangelogs: |
138 | 141 | dh_installchangelogs |
140 | 143 | texk/kpathsea/ChangeLog |
141 | 144 | dh_installchangelogs -plibptexenc1 -plibptexenc-dev \ |
142 | 145 | texk/ptexenc/ChangeLog |
146 | dh_installchangelogs -plibsynctex1 -plibsynctex-dev \ | |
147 | texk/web2c/synctexdir/ChangeLog | |
143 | 148 | |
144 | 149 | override_dh_compress: |
145 | 150 | dh_compress -X.pdf |
147 | 152 | override_dh_makeshlibs: |
148 | 153 | dh_makeshlibs -plibkpathsea6 |
149 | 154 | dh_makeshlibs -plibptexenc1 |
150 | dh_makeshlibs -plibsynctex-parser1 | |
155 | dh_makeshlibs -plibsynctex1 | |
151 | 156 | |
152 | 157 | override_dh_shlibdeps: |
153 | 158 | dh_shlibdeps \ |
154 | 159 | -l debian/libkpathsea6/usr/lib \ |
155 | 160 | -l debian/libptexenc1/usr/lib \ |
156 | -l debian/libsynctex-parser1/usr/lib | |
161 | -l debian/libsynctex1/usr/lib | |
157 | 162 | |
158 | 163 | override_dh_clean: |
159 | 164 | dh_clean -X.orig |