blob: ea8b86f8fba642a3418d9d3cb51d468d1089d230 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
##
#************************************************************************
#
# Part of the dvipng distribution
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program. If not, see
# <http://www.gnu.org/licenses/>.
#
# Copyright (C) 2002-2008 Jan-Åke Larsson
#
#************************************************************************
#
# Adapted for TeX Live by Peter Breitenlohner <peb@mppmu.mpg.de>
# All settings here are our fault, don't blame the dvipng maintainer for it.
#
#************************************************************************
##
ACLOCAL_AMFLAGS = -I ../../m4 -I m4
INCLUDES = $(KPATHSEA_INCLUDES) $(FREETYPE2_INCLUDES) $(GD_INCLUDES)
INCLUDES += $(T1LIB_INCLUDES) $(LIBPNG_INCLUDES) $(ZLIB_INCLUDES)
AM_CPPFLAGS =
bin_PROGRAMS = dvipng
dvipng_SOURCES = \
color.c \
commands.h \
draw.c \
dvi.c \
dvipng.c \
dvipng.h \
font.c \
misc.c \
papersiz.c \
pk.c \
ppagelist.c \
set.c \
special.c \
vf.c
if have_t1
dvipng_SOURCES += t1.c
endif have_t1
if have_ft2
dvipng_SOURCES += ft.c sfd.c
endif have_ft2
if have_ft2_or_t1
dvipng_SOURCES += enc.c fontmap.c tfm.c
endif have_ft2_or_t1
dvipng_DEPENDENCIES = $(KPATHSEA_DEPEND) $(FREETYPE2_DEPEND) $(GD_DEPEND)
dvipng_DEPENDENCIES += $(T1LIB_DEPEND) $(LIBPNG_DEPEND) $(ZLIB_DEPEND)
LDADD = $(KPATHSEA_LIBS) $(FREETYPE2_LIBS) $(GD_LIBS)
LDADD += $(T1LIB_LIBS) $(LIBPNG_LIBS) $(ZLIB_LIBS)
## Rebuild libkpathsea
@KPATHSEA_RULE@
## Rebuild libfreetype
@FREETYPE2_RULE@
## Rebuild libgd
@GD_RULE@
## Rebuild libt1
@T1LIB_RULE@
## Rebuild libpng
@LIBPNG_RULE@
## Rebuild libz
@ZLIB_RULE@
info_TEXINFOS = dvipng.texi
dvipng_TEXINFOS = readme.texi install.texi macros.texi dvipng.help
dist_man1_MANS = dvipng.1
dvipng.1: dvipng.texi readme.texi
$(srcdir)/texi2pod.pl -D man $(srcdir)/dvipng.texi | \
sed -es/@//g -es/previewlatex/preview-latex/g -es/{}//g > dvipng.pod
pod2man --center="User commands" --release="$(PACKAGE_STRING)" \
dvipng.pod > dvipng.1
rm dvipng.pod
## Make sure INSTALL and README exist
##
EXTRA_DIST = ChangeLog.0 ChangeLog.TL INSTALL README RELEASE
INSTALL: install.texi
-$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
-D rawfile --no-headers --no-validate --no-number-sections \
-o $@ $<
README: readme.texi
-$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
-D rawfile --no-headers --no-validate --no-number-sections \
-o $@ $<
dist_noinst_SCRIPTS = texi2pod.pl
if have_gif
install-exec-hook:
cd $(DESTDIR)/$(bindir) && rm -f dvigif && $(LN_S) dvipng dvigif
install-data-hook:
cd $(DESTDIR)/$(man1dir) && rm -f dvigif.1 && $(LN_S) dvipng.1 dvigif.1
uninstall-hook:
rm -f $(DESTDIR)/$(bindir)/dvigif $(DESTDIR)/$(man1dir)/dvigif.1
endif have_gif
## Not yet used
##
EXTRA_DIST += test_dvipng.tex
## Not used
##
EXTRA_DIST += miktex.h miktex.mak
## Original files from dvipng-$(DVIPNG_VERSION)
##
EXTRA_DIST += \
Makefile.in-$(DVIPNG_VERSION) \
aclocal.m4-$(DVIPNG_VERSION) \
color.c-$(DVIPNG_VERSION) \
config.h.in-$(DVIPNG_VERSION) \
configure-$(DVIPNG_VERSION) \
configure.ac-$(DVIPNG_VERSION) \
dvipng.h-$(DVIPNG_VERSION) \
fontmap.c-$(DVIPNG_VERSION) \
ft.c-$(DVIPNG_VERSION) \
misc.c-$(DVIPNG_VERSION) \
pk.c-$(DVIPNG_VERSION) \
set.c-$(DVIPNG_VERSION) \
special.c-$(DVIPNG_VERSION) \
t1.c-$(DVIPNG_VERSION) \
tfm.c-$(DVIPNG_VERSION)
## Eventually use these macro files
##
EXTRA_DIST += m4/gs-device.m4
## Eventually delete these files
##
EXTRA_DIST += Makefile.in.orig acinclude.m4.orig configure.ac.orig
EXTRA_DIST += Makefile.am.demo Makefile.in.work configure.ac.demo configure.ac.work
|