5 export DEB_CFLAGS_MAINT_APPEND = -pipe -Wall
6 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-undefined -Wl,-Bsymbolic -Wl,--as-needed
9 # enable external music player
10 confflags = --enable-music-cmd
12 # explicitly enable/disable all supported sound
13 # For mp3 support, libmad disabled by default because it is GPL and not allowed to link with commercial closed-source programs
14 # For mod support, modplug is the default because it is in the public domain and used across all platforms.
15 confflags += --enable-music-flac
16 confflags += --enable-music-mod
17 confflags += --enable-music-mod-modplug
18 confflags += --disable-music-mod-mikmod
19 confflags += --enable-music-mp3
20 confflags += --enable-music-mp3-mpg123
21 confflags += --disable-music-mp3-mad-gpl
22 confflags += --enable-music-ogg
23 confflags += --enable-music-opus
24 confflags += --enable-music-wave
26 # MIDI: explicitly state that we use (an in-source copy of) timidity
27 confflags += --enable-music-midi
28 confflags += --enable-music-midi-fluidsynth
29 confflags += --enable-music-midi-timidity
31 # mafm 20111203: removed the "disable shared" support from previous versions, I
32 # couldn't find any reason for it in the changelog
34 # mafm 20111204: issue "disable-*-shared" flags for 'configure' again, otherwise
35 # SDL_mixer library opens those libraries in a plugin-like way (with
36 # SDL_LoadObject), and dpkg-shlibdeps doesn't seem to generate the needed
37 # dependencies in the binary library package
39 # The Debian maintainers aren't using these rules, so enable dynamic loading of shared libraries by default for the Steam Linux Runtime
40 #confflags += --disable-music-flac-shared
41 #confflags += --disable-music-midi-fluidsynth-shared
42 #confflags += --disable-music-mod-mikmod-shared
43 #confflags += --disable-music-mod-modplug-shared
44 #confflags += --disable-music-mp3-mpg123-shared
45 #confflags += --disable-music-ogg-shared
46 #confflags += --disable-music-opus-shared
49 dh $@ --with autoreconf --parallel
51 override_dh_autoreconf:
52 dh_autoreconf ./autogen.sh
54 override_dh_auto_configure:
55 dh_auto_configure -- $(confflags)
57 override_dh_auto_installchangelogs:
58 dh_auto_installchangelogs -- CHANGES
61 dh_compress -Xplaywave.c -Xplaymus.c