~ubuntu-branches/ubuntu/precise/libcanberra/precise

« back to all changes in this revision

Viewing changes to .pc/01_link_canberra_play_with_gtk2.patch/src/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2011-10-17 12:49:05 UTC
  • Revision ID: package-import@ubuntu.com-20111017124905-yhrfb9tsjooqm0hf
Tags: 0.28-0ubuntu11
* Use 3.0 (quilt)
* debian/rules: Move autoreconf before debhelper
* debian/patches/02_nodisplay_autostart.patch:
  - Dropped, we shouldn't hide turning the login sound on or off
    from users (LP: #840858)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This file is part of libcanberra.
 
2
#
 
3
# Copyright 2008 Lennart Poettering
 
4
#
 
5
# libcanberra is free software; you can redistribute it and/or modify
 
6
# it under the terms of the GNU Lesser General Public License as
 
7
# published by the Free Software Foundation, either version 2.1 of the
 
8
# License, or (at your option) any later version.
 
9
#
 
10
# libcanberra is distributed in the hope that it will be useful, but
 
11
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 
13
# Lesser General Public License for more details.
 
14
#
 
15
# You should have received a copy of the GNU Lesser General Public
 
16
# License along with libcanberra. If not, see
 
17
# <http://www.gnu.org/licenses/>.
 
18
 
 
19
gtkmoduledir = @GTK_MODULES_DIR@
 
20
gtk3moduledir = @GTK3_MODULES_DIR@
 
21
 
 
22
plugindir = $(libdir)/libcanberra-@PACKAGE_VERSION@
 
23
 
 
24
gnomeshutdowndir = $(datadir)/gnome/shutdown
 
25
 
 
26
gnomeautostartdir = $(datadir)/gnome/autostart
 
27
 
 
28
gdmautostartdir = $(datadir)/gdm/autostart/LoginWindow
 
29
 
 
30
gsdgtkmodulesdir = $(libdir)/gnome-settings-daemon-3.0/gtk-modules
 
31
 
 
32
AM_CFLAGS = $(PTHREAD_CFLAGS) -DCA_PLUGIN_PATH=\"$(plugindir)\"
 
33
#AM_CFLAGS = $(PTHREAD_CFLAGS) -DCA_PLUGIN_PATH=\"/home/lennart/projects/libcanberra/src/.libs\"
 
34
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
 
35
AM_LDADD = $(PTHREAD_LIBS)
 
36
 
 
37
EXTRA_DIST = \
 
38
        map-file
 
39
 
 
40
lib_LTLIBRARIES = \
 
41
        libcanberra.la
 
42
 
 
43
include_HEADERS = \
 
44
        canberra.h
 
45
 
 
46
noinst_PROGRAMS = \
 
47
        test-canberra
 
48
 
 
49
libcanberra_la_SOURCES = \
 
50
        canberra.h \
 
51
        common.c common.h \
 
52
        mutex-posix.c mutex.h \
 
53
        proplist.c proplist.h \
 
54
        driver.h \
 
55
        read-sound-file.c read-sound-file.h \
 
56
        read-vorbis.c read-vorbis.h \
 
57
        read-wav.c read-wav.h \
 
58
        sound-theme-spec.c sound-theme-spec.h \
 
59
        llist.h \
 
60
        macro.h macro.c \
 
61
        malloc.c malloc.h \
 
62
        fork-detect.c fork-detect.h
 
63
libcanberra_la_CFLAGS = \
 
64
        $(AM_CFLAGS) \
 
65
        $(VORBIS_CFLAGS)
 
66
libcanberra_la_LIBADD = \
 
67
        $(VORBIS_LIBS)
 
68
libcanberra_la_LDFLAGS = \
 
69
        -export-dynamic \
 
70
        -version-info $(LIBCANBERRA_VERSION_INFO)
 
71
 
 
72
if USE_VERSION_SCRIPT
 
73
libcanberra_la_LDFLAGS += -Wl,-version-script=$(srcdir)/map-file
 
74
endif
 
75
 
 
76
if HAVE_CACHE
 
77
 
 
78
libcanberra_la_SOURCES += \
 
79
        cache.c cache.h
 
80
libcanberra_la_CFLAGS += \
 
81
        $(TDB_CLFAGS) \
 
82
        -DCA_MACHINE_ID=\"$(localstatedir)/lib/dbus/machine-id\"
 
83
libcanberra_la_LIBADD += \
 
84
        $(TDB_LIBS)
 
85
 
 
86
endif
 
87
 
 
88
plugin_LTLIBRARIES =
 
89
 
 
90
if BUILTIN_DSO
 
91
 
 
92
libcanberra_la_SOURCES += \
 
93
        dso.c \
 
94
        driver-order.c driver-order.h
 
95
libcanberra_la_LIBADD += \
 
96
        $(LIBLTDL)
 
97
 
 
98
plugin_LTLIBRARIES += \
 
99
        libcanberra-multi.la
 
100
 
 
101
libcanberra_multi_la_SOURCES = \
 
102
        multi.c
 
103
libcanberra_multi_la_CFLAGS = \
 
104
         -Ddriver_open=multi_driver_open \
 
105
         -Ddriver_destroy=multi_driver_destroy \
 
106
         -Ddriver_change_device=multi_driver_change_device \
 
107
         -Ddriver_change_props=multi_driver_change_props \
 
108
         -Ddriver_play=multi_driver_play \
 
109
         -Ddriver_cancel=multi_driver_cancel \
 
110
         -Ddriver_cache=multi_driver_cache
 
111
libcanberra_multi_la_LIBADD = \
 
112
        libcanberra.la
 
113
libcanberra_multi_la_LDFLAGS = \
 
114
        -avoid-version -module -export-dynamic
 
115
endif
 
116
 
 
117
if HAVE_PULSE
 
118
if BUILTIN_PULSE
 
119
 
 
120
libcanberra_la_SOURCES += \
 
121
        pulse.c
 
122
libcanberra_la_CFLAGS += \
 
123
        $(PULSE_CFLAGS)
 
124
libcanberra_la_LIBADD += \
 
125
        $(PULSE_LIBS)
 
126
 
 
127
else
 
128
 
 
129
plugin_LTLIBRARIES += \
 
130
        libcanberra-pulse.la
 
131
 
 
132
libcanberra_pulse_la_SOURCES = \
 
133
        pulse.c
 
134
libcanberra_pulse_la_CFLAGS = \
 
135
        $(PULSE_CFLAGS) \
 
136
         -Ddriver_open=pulse_driver_open \
 
137
         -Ddriver_destroy=pulse_driver_destroy \
 
138
         -Ddriver_change_device=pulse_driver_change_device \
 
139
         -Ddriver_change_props=pulse_driver_change_props \
 
140
         -Ddriver_play=pulse_driver_play \
 
141
         -Ddriver_cancel=pulse_driver_cancel \
 
142
         -Ddriver_cache=pulse_driver_cache
 
143
libcanberra_pulse_la_LIBADD = \
 
144
        $(PULSE_LIBS) \
 
145
        libcanberra.la
 
146
libcanberra_pulse_la_LDFLAGS = \
 
147
        -avoid-version -module -export-dynamic
 
148
 
 
149
endif
 
150
endif
 
151
 
 
152
if HAVE_ALSA
 
153
if BUILTIN_ALSA
 
154
 
 
155
libcanberra_la_SOURCES += \
 
156
        alsa.c
 
157
libcanberra_la_CFLAGS += \
 
158
        $(ALSA_CFLAGS)
 
159
libcanberra_la_LIBADD += \
 
160
         $(ALSA_LIBS)
 
161
 
 
162
else
 
163
 
 
164
plugin_LTLIBRARIES += \
 
165
        libcanberra-alsa.la
 
166
 
 
167
libcanberra_alsa_la_SOURCES = \
 
168
        alsa.c
 
169
libcanberra_alsa_la_CFLAGS = \
 
170
        $(ALSA_CFLAGS) \
 
171
         -Ddriver_open=alsa_driver_open \
 
172
         -Ddriver_destroy=alsa_driver_destroy \
 
173
         -Ddriver_change_device=alsa_driver_change_device \
 
174
         -Ddriver_change_props=alsa_driver_change_props \
 
175
         -Ddriver_play=alsa_driver_play \
 
176
         -Ddriver_cancel=alsa_driver_cancel \
 
177
         -Ddriver_cache=alsa_driver_cache
 
178
libcanberra_alsa_la_LIBADD = \
 
179
        $(ALSA_LIBS) \
 
180
        libcanberra.la
 
181
libcanberra_alsa_la_LDFLAGS = \
 
182
        -avoid-version -module -export-dynamic
 
183
 
 
184
endif
 
185
endif
 
186
 
 
187
if HAVE_OSS
 
188
if BUILTIN_OSS
 
189
 
 
190
libcanberra_la_SOURCES += \
 
191
        oss.c
 
192
 
 
193
else
 
194
 
 
195
plugin_LTLIBRARIES += \
 
196
        libcanberra-oss.la
 
197
 
 
198
libcanberra_oss_la_SOURCES = \
 
199
        oss.c
 
200
libcanberra_oss_la_CFLAGS = \
 
201
         -Ddriver_open=oss_driver_open \
 
202
         -Ddriver_destroy=oss_driver_destroy \
 
203
         -Ddriver_change_device=oss_driver_change_device \
 
204
         -Ddriver_change_props=oss_driver_change_props \
 
205
         -Ddriver_play=oss_driver_play \
 
206
         -Ddriver_cancel=oss_driver_cancel \
 
207
         -Ddriver_cache=oss_driver_cache
 
208
libcanberra_oss_la_LIBADD = \
 
209
        libcanberra.la
 
210
libcanberra_oss_la_LDFLAGS = \
 
211
        -avoid-version -module -export-dynamic
 
212
endif
 
213
endif
 
214
 
 
215
if HAVE_GSTREAMER
 
216
if BUILTIN_GSTREAMER
 
217
 
 
218
libcanberra_la_SOURCES += \
 
219
        gstreamer.c
 
220
libcanberra_la_CFLAGS += \
 
221
        $(GST_CFLAGS)
 
222
libcanberra_la_LIBADD += \
 
223
         $(GST_LIBS)
 
224
 
 
225
else
 
226
 
 
227
plugin_LTLIBRARIES += \
 
228
        libcanberra-gstreamer.la
 
229
 
 
230
libcanberra_gstreamer_la_SOURCES = \
 
231
        gstreamer.c
 
232
libcanberra_gstreamer_la_CFLAGS = \
 
233
        $(GST_CFLAGS) \
 
234
         -Ddriver_open=gstreamer_driver_open \
 
235
         -Ddriver_destroy=gstreamer_driver_destroy \
 
236
         -Ddriver_change_device=gstreamer_driver_change_device \
 
237
         -Ddriver_change_props=gstreamer_driver_change_props \
 
238
         -Ddriver_play=gstreamer_driver_play \
 
239
         -Ddriver_cancel=gstreamer_driver_cancel \
 
240
         -Ddriver_cache=gstreamer_driver_cache
 
241
libcanberra_gstreamer_la_LIBADD = \
 
242
        $(GST_LIBS) \
 
243
        libcanberra.la
 
244
libcanberra_gstreamer_la_LDFLAGS = \
 
245
        -avoid-version -module -export-dynamic
 
246
 
 
247
endif
 
248
endif
 
249
 
 
250
if HAVE_NULL
 
251
if BUILTIN_NULL
 
252
 
 
253
libcanberra_la_SOURCES += \
 
254
        null.c
 
255
 
 
256
else
 
257
 
 
258
plugin_LTLIBRARIES += \
 
259
        libcanberra-null.la
 
260
 
 
261
libcanberra_null_la_SOURCES = \
 
262
        null.c
 
263
libcanberra_null_la_CFLAGS = \
 
264
         -Ddriver_open=null_driver_open \
 
265
         -Ddriver_destroy=null_driver_destroy \
 
266
         -Ddriver_change_device=null_driver_change_device \
 
267
         -Ddriver_change_props=null_driver_change_props \
 
268
         -Ddriver_play=null_driver_play \
 
269
         -Ddriver_cancel=null_driver_cancel \
 
270
         -Ddriver_cache=null_driver_cache
 
271
libcanberra_null_la_LIBADD = \
 
272
        libcanberra.la
 
273
libcanberra_null_la_LDFLAGS = \
 
274
        -avoid-version -module -export-dynamic
 
275
endif
 
276
endif
 
277
 
 
278
bin_PROGRAMS =
 
279
CLEANFILES =
 
280
 
 
281
if HAVE_UDEV
 
282
if HAVE_ALSA
 
283
 
 
284
bin_PROGRAMS += \
 
285
        canberra-boot
 
286
 
 
287
canberra_boot_SOURCES = \
 
288
        canberra-boot.c
 
289
 
 
290
canberra_boot_LDADD = \
 
291
        $(UDEV_LIBS) \
 
292
        libcanberra.la
 
293
 
 
294
canberra_boot_CFLAGS = \
 
295
        $(UDEV_CFLAGS)
 
296
 
 
297
if HAVE_SYSTEMD
 
298
 
 
299
systemdsystemunit_DATA = \
 
300
        canberra-system-bootup.service \
 
301
        canberra-system-shutdown.service \
 
302
        canberra-system-shutdown-reboot.service
 
303
 
 
304
EXTRA_DIST += \
 
305
        canberra-system-bootup.service.in \
 
306
        canberra-system-shutdown.service.in \
 
307
        canberra-system-shutdown-reboot.service.in
 
308
 
 
309
%.service: %.service.in
 
310
        $(AM_V_GEN)sed -e 's,@bindir\@,$(bindir),g' $< > $@
 
311
 
 
312
CLEANFILES += \
 
313
        $(systemdsystemunit_DATA)
 
314
 
 
315
endif
 
316
endif
 
317
endif
 
318
 
 
319
if HAVE_GTK_ANY
 
320
 
 
321
bin_PROGRAMS += \
 
322
        canberra-gtk-play
 
323
 
 
324
include_HEADERS += \
 
325
        canberra-gtk.h
 
326
 
 
327
endif
 
328
 
 
329
if HAVE_GTK3
 
330
 
 
331
lib_LTLIBRARIES += \
 
332
        libcanberra-gtk3.la
 
333
 
 
334
gtk3module_LTLIBRARIES = \
 
335
        libcanberra-gtk3-module.la
 
336
 
 
337
libcanberra_gtk3_la_SOURCES = \
 
338
        canberra-gtk.h \
 
339
        canberra-gtk.c
 
340
libcanberra_gtk3_la_CFLAGS = \
 
341
        $(GTK3_CFLAGS)
 
342
libcanberra_gtk3_la_LIBADD = \
 
343
        $(GTK3_LIBS) \
 
344
        libcanberra.la
 
345
libcanberra_gtk3_la_LDFLAGS = \
 
346
        -export-dynamic -version-info $(LIBCANBERRA_GTK_VERSION_INFO)
 
347
 
 
348
libcanberra_gtk3_module_la_SOURCES = \
 
349
        canberra-gtk-module.c
 
350
libcanberra_gtk3_module_la_CFLAGS = \
 
351
        $(GTK3_CFLAGS)
 
352
libcanberra_gtk3_module_la_LIBADD = \
 
353
        $(GTK3_LIBS) \
 
354
        libcanberra.la \
 
355
        libcanberra-gtk3.la
 
356
libcanberra_gtk3_module_la_LDFLAGS = \
 
357
        -avoid-version -module -export-dynamic
 
358
 
 
359
install-exec-hook:
 
360
        $(MKDIR_P) -m 755 $(DESTDIR)$(gtk3moduledir)
 
361
        ( cd $(DESTDIR)$(gtk3moduledir) && \
 
362
                rm -f libcanberra-gtk-module.so && \
 
363
                $(LN_S) libcanberra-gtk3-module.so libcanberra-gtk-module.so )
 
364
 
 
365
endif
 
366
 
 
367
if HAVE_GTK
 
368
 
 
369
lib_LTLIBRARIES += \
 
370
        libcanberra-gtk.la
 
371
 
 
372
gtkmodule_LTLIBRARIES = \
 
373
        libcanberra-gtk-module.la
 
374
 
 
375
libcanberra_gtk_la_SOURCES = \
 
376
        canberra-gtk.h \
 
377
        canberra-gtk.c
 
378
libcanberra_gtk_la_CFLAGS = \
 
379
        $(GTK_CFLAGS)
 
380
libcanberra_gtk_la_LIBADD = \
 
381
        $(GTK_LIBS) \
 
382
        libcanberra.la
 
383
libcanberra_gtk_la_LDFLAGS = \
 
384
        -export-dynamic -version-info $(LIBCANBERRA_GTK_VERSION_INFO)
 
385
 
 
386
libcanberra_gtk_module_la_SOURCES = \
 
387
        canberra-gtk-module.c
 
388
libcanberra_gtk_module_la_CFLAGS = \
 
389
        $(GTK_CFLAGS)
 
390
libcanberra_gtk_module_la_LIBADD = \
 
391
        $(GTK_LIBS) \
 
392
        libcanberra.la \
 
393
        libcanberra-gtk.la
 
394
libcanberra_gtk_module_la_LDFLAGS = \
 
395
        -avoid-version -module -export-dynamic
 
396
 
 
397
endif
 
398
 
 
399
if HAVE_GTK3
 
400
 
 
401
canberra_gtk_play_LDADD = \
 
402
        $(GTK3_LIBS) \
 
403
        libcanberra.la \
 
404
        libcanberra-gtk3.la
 
405
canberra_gtk_play_CFLAGS = \
 
406
        $(GTK3_CFLAGS)
 
407
 
 
408
else
 
409
if HAVE_GTK
 
410
 
 
411
canberra_gtk_play_LDADD = \
 
412
        $(GTK_LIBS) \
 
413
        libcanberra.la \
 
414
        libcanberra-gtk.la
 
415
canberra_gtk_play_CFLAGS = \
 
416
        $(GTK_CFLAGS)
 
417
 
 
418
endif
 
419
endif
 
420
 
 
421
if HAVE_GTK_ANY
 
422
 
 
423
dist_gsdgtkmodules_DATA = \
 
424
        canberra-gtk-module.desktop
 
425
 
 
426
canberra_gtk_play_SOURCES = \
 
427
        canberra-gtk-play.c
 
428
 
 
429
EXTRA_DIST += \
 
430
        libcanberra-login-sound.desktop.in \
 
431
        libcanberra-ready-sound.desktop.in \
 
432
        libcanberra-logout-sound.sh.in
 
433
 
 
434
gnomeautostart_DATA = \
 
435
        libcanberra-login-sound.desktop
 
436
 
 
437
gdmautostart_DATA = \
 
438
        libcanberra-ready-sound.desktop
 
439
 
 
440
gnomeshutdown_SCRIPTS = \
 
441
        libcanberra-logout-sound.sh
 
442
 
 
443
CLEANFILES += \
 
444
        libcanberra-login-sound.desktop \
 
445
        libcanberra-ready-sound.desktop \
 
446
        libcanberra-logout-sound.sh
 
447
 
 
448
libcanberra-logout-sound.sh: libcanberra-logout-sound.sh.in Makefile
 
449
        $(AM_V_GEN)sed -e 's,@bindir\@,$(bindir),g' < $< > $@ && \
 
450
                chmod +x $@
 
451
 
 
452
libcanberra-login-sound.desktop: libcanberra-login-sound.desktop.in Makefile
 
453
        $(AM_V_GEN)sed -e 's,@bindir\@,$(bindir),g' < $< > $@
 
454
 
 
455
libcanberra-ready-sound.desktop: libcanberra-ready-sound.desktop.in Makefile
 
456
        $(AM_V_GEN)sed -e 's,@bindir\@,$(bindir),g' < $< > $@
 
457
 
 
458
endif
 
459
 
 
460
test_canberra_SOURCES = \
 
461
        test-canberra.c
 
462
test_canberra_LDADD = \
 
463
        $(AM_LDADD) \
 
464
        libcanberra.la