~ubuntu-branches/ubuntu/precise/puredata/precise

« back to all changes in this revision

Viewing changes to .pc/hurd_fixes.patch/src/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Paul Brossier, IOhannes m zmölnig, Paul Brossier
  • Date: 2011-05-11 01:03:01 UTC
  • Revision ID: james.westby@ubuntu.com-20110511010301-fem05b1q975xx0gz
Tags: 0.43.0-3
[ IOhannes m zmölnig ]
* debian/patches/kfreebsd_fixes.patch: kFreeBSD build fixes
* debian/rules: simplified arch-dependent build-depends
* debian/rules: use dh_auto_configure, distinguish between linux/non-linux
* debian/patches/audio_oss_cleanup.patch: cleanup ifdef logic in
  s_audio_oss.c
* debian/patches/hurd_fixes.patch: fix hurd compilation
* debian/patches/series: updated
* debian/rules: link with --as-needed
* debian/patches/clean_helpbrowser.patch: cleanup helpbrowser to show files
  after directories
* forwarded patches to upstream
* debian/changelog: shortened changelog-lines to keep lintian happy
* debian/control: Conflict with older versions of puredata (Closes: #625663)

[ Paul Brossier ]
* debian/changelog: write changelog, build and upload package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AUTOMAKE_OPTIONS = foreign
 
2
 
 
3
pd_CFLAGS = -DPD -DINSTALL_PREFIX=\"$(prefix)\"
 
4
pd_LDFLAGS =
 
5
 
 
6
pdsend_CFLAGS = 
 
7
pdreceive_CFLAGS = 
 
8
pd_watchdog_CFLAGS = 
 
9
LIBS = 
 
10
INCLUDES = @INCLUDES@
 
11
 
 
12
SUFFIXES = .@EXTENSION@ .@SHARED_LIB@
 
13
 
 
14
bin_PROGRAMS = pd pdsend pdreceive
 
15
pdsend_SOURCES = u_pdsend.c
 
16
pdreceive_SOURCES = u_pdreceive.c
 
17
pd_watchdog_SOURCES = s_watchdog.c
 
18
pd_LDADD = 
 
19
pd_SOURCES = g_canvas.c g_graph.c g_text.c g_rtext.c g_array.c g_template.c \
 
20
        g_io.c g_scalar.c g_traversal.c g_guiconnect.c g_readwrite.c g_editor.c \
 
21
    g_all_guis.c g_bang.c g_hdial.c g_hslider.c g_mycanvas.c g_numbox.c \
 
22
    g_toggle.c g_vdial.c g_vslider.c g_vumeter.c \
 
23
    m_pd.c m_class.c m_obj.c m_atom.c m_memory.c m_binbuf.c \
 
24
    m_conf.c m_glob.c m_sched.c \
 
25
    s_main.c s_inter.c s_file.c s_print.c \
 
26
    s_loader.c s_path.c s_entry.c s_audio.c s_midi.c \
 
27
    s_utf8.c \
 
28
    d_ugen.c d_ctl.c d_arithmetic.c d_osc.c d_filter.c d_dac.c d_misc.c \
 
29
    d_math.c d_fft.c d_array.c d_global.c \
 
30
    d_delay.c d_resample.c \
 
31
    x_arithmetic.c x_connective.c x_interface.c x_midi.c x_misc.c \
 
32
    x_time.c x_acoustics.c x_net.c x_qlist.c x_gui.c x_list.c d_soundfile.c
 
33
 
 
34
pd_includedir = ${includedir}/pd
 
35
pd_include_HEADERS = m_pd.h m_imp.h g_canvas.h s_stuff.h g_all_guis.h
 
36
# compatibility: m_pd.h also goes into ${includedir}/
 
37
include_HEADERS = m_pd.h
 
38
noinst_HEADERS = g_all_guis.h s_audio_alsa.h s_audio_paring.h s_utf8.h
 
39
 
 
40
# we want these in the dist tarball
 
41
EXTRA_DIST = CHANGELOG.txt notes.txt makefile.mingw
 
42
 
 
43
# configurations per library
 
44
if ALSA
 
45
pd_CFLAGS += -DUSEAPI_ALSA
 
46
pd_SOURCES += s_audio_alsa.c s_audio_alsamm.c s_midi_alsa.c
 
47
endif
 
48
 
 
49
if COREAUDIO
 
50
LIBS += -framework CoreAudio -framework CoreMIDI \
 
51
        -framework AudioUnit -framework AudioToolbox
 
52
endif
 
53
 
 
54
if FFTW
 
55
pd_SOURCES +=  d_fft_fftw.c d_fftroutine.c
 
56
else
 
57
pd_SOURCES +=  d_fft_mayer.c d_fftroutine.c
 
58
endif
 
59
 
 
60
# TODO support Jack xrun
 
61
if JACK
 
62
pd_CFLAGS += -DUSEAPI_JACK -DJACK_XRUN
 
63
pd_SOURCES += s_audio_jack.c
 
64
if MACOSX
 
65
LIBS += -weak_framework Jackmp
 
66
else
 
67
LIBS += -ljack
 
68
endif
 
69
endif
 
70
 
 
71
# Cygwin has a function OSS /dev/dsp, but not MIDI, and Pd is only set up to
 
72
# handle a single MIDI API
 
73
if OSS
 
74
if !WINDOWS
 
75
pd_CFLAGS += -DUSEAPI_OSS
 
76
pd_SOURCES += s_audio_oss.c s_midi_oss.c
 
77
endif
 
78
endif
 
79
 
 
80
if PORTAUDIO
 
81
pd_CFLAGS += -DUSEAPI_PORTAUDIO  -I../portaudio/include
 
82
pd_LDADD += ../portaudio/libportaudio.la
 
83
pd_SOURCES += s_audio_pa.c s_audio_paring.c
 
84
endif
 
85
 
 
86
# ASIO needs to go after PORTAUDIO in order for it to link properly
 
87
if ASIO
 
88
pd_LDADD += ../asio/libasio.la
 
89
endif
 
90
 
 
91
if PORTMIDI
 
92
INCLUDES += -I../portmidi/pm_common -I../portmidi/porttime
 
93
pd_LDADD += ../portmidi/libportmidi.la
 
94
pd_SOURCES += s_midi_pm.c
 
95
endif
 
96
 
 
97
 
 
98
# FIXXXME
 
99
# GNU/HURD, IPHONEOS, ... have no MIDI (not even OSS)
 
100
#  i think it would be better to add s_midi_dummy.c only if no other midi API can be found
 
101
#  (without OS-specific checks)
 
102
# even better would be, to allow Pd to have simply have no MIDI (nor AUDIO)
 
103
if IPHONEOS
 
104
pd_SOURCES += s_midi_dummy.c
 
105
endif
 
106
 
 
107
if HURD
 
108
pd_SOURCES += s_midi_dummy.c
 
109
endif
 
110
 
 
111
if LINUX 
 
112
libpdbindir = $(pkglibdir)/bin
 
113
libpdbin_DATA = 
 
114
libpdbin_PROGRAMS = pd-watchdog pd
 
115
# this flag has to have a single leading "-" for libtool, even though ld uses
 
116
# --export-dynamic, and libtool sends -Wl,--export-dynamic to ld...
 
117
pd_LDFLAGS += -export-dynamic
 
118
# on Ubuntu/Karmic 9.10, it doesn't seem to find libm, so force it
 
119
pd_LDFLAGS += $(LIBM)
 
120
endif
 
121
 
 
122
if MACOSX
 
123
LIBS += -framework Carbon
 
124
pd_CFLAGS += -DMACOSX #kludge, should use auto macro __APPLE__
 
125
bin_SCRIPTS = 
 
126
bin_PROGRAMS += pd-watchdog
 
127
endif
 
128
 
 
129
if WINDOWS
 
130
LIBS += -lwsock32 -lwinmm -lole32
 
131
pd_CFLAGS +=  -DUSEAPI_MMIO -DPD_INTERNAL
 
132
pd_SOURCES += s_audio_mmio.c s_midi_mmio.c
 
133
bin_SCRIPTS = 
 
134
endif
 
135
 
 
136
# Cygwin is not _WIN32 and MSW vaguely means the same thing, so MINGW only
 
137
if MINGW
 
138
pd_CFLAGS += -DWISHAPP='"wish85.exe"' -DMSW #kludge, MSW should be _WIN32
 
139
pdsend_CFLAGS += -DMSW #kludge, should use _WIN32
 
140
pdreceive_CFLAGS += -DMSW #kludge, should use _WIN32
 
141
bin_PROGRAMS += pd-watchdog
 
142
endif
 
143
 
 
144
etags: TAGS
 
145
        etags --append --language=none --regex="/proc[ \t]+\([^ \t]+\)/\1/" *.tcl