1 ## Process this file with automake to produce Makefile.in
5 #HB_LIBS=$(HB_DIR)/libhb/libhb.a -la52 -lmkv -lavformat -lavcodec -lavutil -ldca -ldvdread -lfaac -lmp3lame -lmpeg2 -lvorbis -lvorbisenc -logg -lsamplerate -lx264 -lxvidcore -lmp4v2 -lswscale -ltheora -lfaad -lz -lbz2 -lpthread
8 $(HB_DIR)/libhb/libhb.a \
9 $(HB_DIR)/contrib/lib/liba52.a \
10 $(HB_DIR)/contrib/lib/libmkv.a \
11 $(HB_DIR)/contrib/lib/libavformat.a \
12 $(HB_DIR)/contrib/lib/libavcodec.a \
13 $(HB_DIR)/contrib/lib/libavutil.a \
14 $(HB_DIR)/contrib/lib/libdca.a \
15 $(HB_DIR)/contrib/lib/libdvdread.a \
16 $(HB_DIR)/contrib/lib/libfaac.a \
17 $(HB_DIR)/contrib/lib/libmp3lame.a \
18 $(HB_DIR)/contrib/lib/libmpeg2.a \
19 $(HB_DIR)/contrib/lib/libvorbis.a \
20 $(HB_DIR)/contrib/lib/libvorbisenc.a \
21 $(HB_DIR)/contrib/lib/libogg.a \
22 $(HB_DIR)/contrib/lib/libsamplerate.a \
23 $(HB_DIR)/contrib/lib/libx264.a \
24 $(HB_DIR)/contrib/lib/libxvidcore.a \
25 $(HB_DIR)/contrib/lib/libmp4v2.a \
26 $(HB_DIR)/contrib/lib/libswscale.a \
27 $(HB_DIR)/contrib/lib/libtheora.a \
28 $(HB_DIR)/contrib/lib/libfaad.a \
48 hb-queue-delete.16.png \
50 hb-queue-pass1.16.png \
51 hb-queue-pass2.16.png \
52 hb-queue-subtitle.16.png \
66 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
67 -DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
68 -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
76 noinst_PROGRAMS = makewidgetdeps quotestring create_resources preset_xlat
78 BUILT_SOURCES = HandBrakeCLI
80 HandBrakeCLI: $(HB_DIR)/HandBrakeCLI
83 # Dummy file, not built. Forces g++ linking
84 nodist_EXTRA_ghb_SOURCES = dummy.cpp
114 ghbcellrenderertext.c \
115 ghbcellrenderertext.h \
124 ghb_LDADD = $(GHB_LIBS) $(HB_LIBS)
126 ghb_DEPENDENCIES = $(HB_DIR)/libhb/libhb.a
128 makewidgetdeps_SOURCES = \
135 makewidgetdeps_LDADD = $(GHBTOOLS_LIBS)
137 create_resources_SOURCES = \
146 create_resources_LDADD = $(GHBTOOLS_LIBS)
148 preset_xlat_SOURCES = \
155 preset_xlat_LDADD = $(GHBTOOLS_LIBS)
157 quotestring_SOURCES = quotestring.c
161 resources.c: resource_data.h
163 resource_data.h: quotestring resources.plist
164 ./quotestring resources.plist resource_data.h
166 widget_deps: makewidgetdeps
169 resources.plist: create_resources resources.list $(icons_dep) internal_defaults.xml standard_presets.xml ghb.ui widget_deps widget_reverse_deps
170 ./create_resources resources.list resources.plist
172 ghbcellrenderertext.c: marshalers.h
174 marshalers.h: marshalers.list
175 glib-genmarshal --prefix=ghb_marshal marshalers.list --header > marshalers.h
177 marshalers.c: marshalers.list
178 glib-genmarshal --prefix=ghb_marshal marshalers.list --body > marshalers.c
180 EXTRA_DIST = HandBrakeCLI
182 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(DESTDIR)/$(datadir)/icons/hicolor
185 for icon in $(icons); do \
186 SIZE=`echo $$icon | cut -d. -f2`; \
187 FILE=`echo $$icon | cut -d. -f1,3`; \
188 if [ "$$SIZE" = "svg" ]; then \
192 SIZE="$${SIZE}x$${SIZE}"; \
194 rm -f $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \
196 @-if test -n "$(DESTDIR)/$(datadir)"; then \
197 echo "Updating Gtk icon cache."; \
198 $(gtk_update_icon_cache); \
200 echo "*** Icon cache not updated. After install, run this:"; \
201 echo "*** $(gtk_update_icon_cache)"; \
203 rm -f $(DESTDIR)/$(datadir)/applications/$(hb_menu)
206 $(INSTALL_PROGRAM) $(srcdir)/HandBrakeCLI $(DESTDIR)/$(bindir)/HandBrakeCLI
209 for icon in $(icons); do \
210 SIZE=`echo $$icon | cut -d. -f2`; \
211 FILE=`echo $$icon | cut -d. -f1,3`; \
212 if [ "$$SIZE" = "svg" ]; then \
216 SIZE="$${SIZE}x$${SIZE}"; \
218 mkdir -p $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/; \
219 $(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \
221 @-if test -n "$(DESTDIR)/$(datadir)"; then \
222 echo "Updating Gtk icon cache."; \
223 $(gtk_update_icon_cache); \
225 echo "*** Icon cache not updated. After install, run this:"; \
226 echo "*** $(gtk_update_icon_cache)"; \
228 mkdir -p $(DESTDIR)/$(datadir)/applications/; \
229 $(INSTALL_DATA) $(srcdir)/$(hb_menu) $(DESTDIR)/$(datadir)/applications/$(hb_menu)