blob: f303312419dcff81fae1e06d2e9b44cb2bc048d2 (
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
|
## Process this file with automake to produce Makefile.in
HB_LIBS=\
$(HB_DIR)/libhb/libhb.a \
$(HB_DIR)/contrib/lib/liba52.a \
$(HB_DIR)/contrib/lib/libmkv.a \
$(HB_DIR)/contrib/lib/libavformat.a \
$(HB_DIR)/contrib/lib/libavcodec.a \
$(HB_DIR)/contrib/lib/libavutil.a \
$(HB_DIR)/contrib/lib/libdca.a \
$(HB_DIR)/contrib/lib/libdvdread.a \
$(HB_DIR)/contrib/lib/libfaac.a \
$(HB_DIR)/contrib/lib/libmp3lame.a \
$(HB_DIR)/contrib/lib/libmpeg2.a \
$(HB_DIR)/contrib/lib/libvorbis.a \
$(HB_DIR)/contrib/lib/libvorbisenc.a \
$(HB_DIR)/contrib/lib/libogg.a \
$(HB_DIR)/contrib/lib/libsamplerate.a \
$(HB_DIR)/contrib/lib/libx264.a \
$(HB_DIR)/contrib/lib/libxvidcore.a \
$(HB_DIR)/contrib/lib/libmp4v2.a \
$(HB_DIR)/contrib/lib/libswscale.a \
$(HB_DIR)/contrib/lib/libtheora.a \
$(HB_DIR)/contrib/lib/libfaad.a \
-lz \
-lbz2 \
-lpthread
icons = \
hb-icon.128.png
icons_dep = \
hb-activity.32.png \
hb-add-queue.32.png \
hb-canceled.16.png \
hb-complete.16.png \
hb-drawer.32.png \
hb-icon.128.png \
hb-icon.64.png \
hb-pause.32.png \
hb-play.32.png \
hb-pref.32.png \
hb-queue.32.png \
hb-queue-delete.16.png \
hb-queue-job.16.png \
hb-queue-pass1.16.png \
hb-queue-pass2.16.png \
hb-queue-subtitle.16.png \
hb-remove.32.png \
hb-source.32.png \
hb-stop.32.png \
hb-working0.16.png \
hb-working1.16.png \
hb-working2.16.png \
hb-working3.16.png \
hb-working4.16.png \
hb-working5.16.png
hb_menu = ghb.desktop
AM_CPPFLAGS = \
-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
$(GHB_CFLAGS)
AM_CFLAGS =\
-Wall\
-g
bin_PROGRAMS = ghb
noinst_PROGRAMS = makewidgetdeps quotestring create_resources preset_xlat \
resource_data.h resources.plist widget.deps widget_reverse.deps
# Dummy file, not built. Forces g++ linking
nodist_EXTRA_ghb_SOURCES = dummy.cpp
ghb_SOURCES = \
callbacks.c \
callbacks.h \
queuehandler.c \
queuehandler.h \
audiohandler.c \
audiohandler.h \
x264handler.c \
x264handler.h \
main.c \
settings.c \
settings.h \
resources.c \
resources.h \
presets.c \
presets.h \
preview.c \
icons.c \
icons.h \
icon_tools.c \
icon_tools.h \
values.c \
values.h \
appcast.c \
appcast.h \
plist.c \
plist.h \
hb-backend.c \
hb-backend.h \
renderer_button.h \
renderer_button.c \
ghbcellrenderertext.c \
ghbcellrenderertext.h \
ghb-dvd.c \
ghb-dvd.h \
marshalers.c \
marshalers.h
ghb_LDFLAGS = \
-Wl,--export-dynamic -Wl,--exclude-libs,ALL
ghb_LDADD = $(HB_LIBS) $(GHB_LIBS)
ghb_DEPENDENCIES = $(HB_DIR)/libhb/libhb.a
makewidgetdeps_SOURCES = \
plist.c \
plist.h \
values.c \
values.h \
makedeps.c
makewidgetdeps_LDADD = $(GHBTOOLS_LIBS)
create_resources_SOURCES = \
create_resources.c \
plist.c \
plist.h \
values.c \
values.h \
icon_tools.c \
icon_tools.h
create_resources_LDADD = $(GHBTOOLS_LIBS)
preset_xlat_SOURCES = \
preset_xlat.c \
plist.c \
plist.h \
values.c \
values.h
preset_xlat_LDADD = $(GHBTOOLS_LIBS)
quotestring_SOURCES = quotestring.c
dumbell: preset_xlat
resources.o: resource_data.h
resource_data.h: quotestring resources.plist
./quotestring resources.plist resource_data.h
widget_reverse.deps: makewidgetdeps
widget.deps: makewidgetdeps
./makewidgetdeps
resources.plist: create_resources resources.list $(icons_dep) internal_defaults.xml standard_presets.xml ghb.ui widget.deps widget_reverse.deps
./create_resources -I$(srcdir) $(srcdir)/resources.list resources.plist
ghbcellrenderertext.c: marshalers.h
marshalers.h: marshalers.list
glib-genmarshal --prefix=ghb_marshal marshalers.list --header > marshalers.h
marshalers.c: marshalers.list
glib-genmarshal --prefix=ghb_marshal marshalers.list --body > marshalers.c
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(DESTDIR)/$(datadir)/icons/hicolor
uninstall-local:
for icon in $(icons); do \
SIZE=`echo $$icon | cut -d. -f2`; \
FILE=`echo $$icon | cut -d. -f1,3`; \
if [ "$$SIZE" = "svg" ]; then \
SIZE="scalable"; \
FILE="$$FILE.svg"; \
else \
SIZE="$${SIZE}x$${SIZE}"; \
fi; \
rm -f $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \
done
@-if test -n "$(DESTDIR)/$(datadir)"; then \
echo "Updating Gtk icon cache."; \
$(gtk_update_icon_cache); \
else \
echo "*** Icon cache not updated. After install, run this:"; \
echo "*** $(gtk_update_icon_cache)"; \
fi
rm -f $(DESTDIR)/$(datadir)/applications/$(hb_menu)
install-data-local:
for icon in $(icons); do \
SIZE=`echo $$icon | cut -d. -f2`; \
FILE=`echo $$icon | cut -d. -f1,3`; \
if [ "$$SIZE" = "svg" ]; then \
SIZE="scalable"; \
FILE="$$FILE.svg"; \
else \
SIZE="$${SIZE}x$${SIZE}"; \
fi; \
mkdir -p $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/; \
$(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \
done
@-if test -n "$(DESTDIR)/$(datadir)"; then \
echo "Updating Gtk icon cache."; \
$(gtk_update_icon_cache); \
else \
echo "*** Icon cache not updated. After install, run this:"; \
echo "*** $(gtk_update_icon_cache)"; \
fi
mkdir -p $(DESTDIR)/$(datadir)/applications/; \
$(INSTALL_DATA) $(srcdir)/$(hb_menu) $(DESTDIR)/$(datadir)/applications/$(hb_menu)
|