1 | 1 |
|
2 | 2 |
#export DH_VERBOSE=1
|
3 | 3 |
|
4 | |
export DEB_CFLAGS_MAINT_APPEND = -pipe -Wall
|
5 | |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
|
|
4 |
# fix for #725564
|
|
5 |
MODPLUG_INCLUDE_DIR := -I/usr/include/libmodplug
|
|
6 |
|
|
7 |
export DEB_CFLAGS_MAINT_APPEND := -pipe -Wall $(MODPLUG_INCLUDE_DIR)
|
|
8 |
export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
|
6 | 9 |
|
7 | 10 |
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
8 | 11 |
|
9 | |
SHLIBVER = 2.0.0
|
|
12 |
SHLIBVER := 2.0.0
|
10 | 13 |
|
11 | 14 |
|
|
15 |
# explicitly enable/disable all supported sound
|
|
16 |
#
|
|
17 |
# issue "disable-*-shared" flags for 'configure', otherwise SDL_mixer library
|
|
18 |
# opens those libraries in a plugin-like way (with SDL_LoadObject), and
|
|
19 |
# dpkg-shlibdeps doesn't seem to generate the needed dependencies in the binary
|
|
20 |
# library package
|
|
21 |
#
|
12 | 22 |
# enable external music player
|
13 | |
confflags = --enable-music-cmd
|
14 | |
|
15 | |
# explicitly enable/disable all supported sound, using libmad instead of
|
16 | |
# libsmpeg for mp3 (it's much more popular, and smpeg is unmaintained)
|
|
23 |
confflags := --enable-music-cmd
|
|
24 |
# flac
|
|
25 |
confflags += --enable-music-flac
|
|
26 |
confflags += --disable-music-flac-shared
|
|
27 |
# MIDI
|
|
28 |
confflags += --enable-music-midi-fluidsynth
|
|
29 |
confflags += --disable-music-fluidsynth-shared
|
|
30 |
confflags += --enable-music-midi-timidity
|
|
31 |
confflags += --enable-music-midi-native
|
|
32 |
# MOD
|
17 | 33 |
confflags += --enable-music-mod
|
18 | 34 |
confflags += --enable-music-mod-modplug
|
19 | 35 |
confflags += --disable-music-mod-mikmod
|
|
36 |
confflags += --disable-music-mod-modplug-shared
|
|
37 |
# using libmad instead of libsmpeg for mp3 (it's much more popular)
|
20 | 38 |
confflags += --enable-music-mp3
|
21 | 39 |
confflags += --disable-music-mp3-smpeg
|
22 | 40 |
confflags += --enable-music-mp3-mad-gpl
|
|
41 |
# ogg
|
23 | 42 |
confflags += --enable-music-ogg
|
|
43 |
confflags += --disable-music-ogg-shared
|
|
44 |
# wav
|
24 | 45 |
confflags += --enable-music-wave
|
25 | |
|
26 | |
# MIDI: Explicitly state what we use
|
27 | |
confflags += --enable-music-midi-fluidsynth
|
28 | |
confflags += --enable-music-midi-timidity
|
29 | |
confflags += --enable-music-midi-native
|
30 | |
|
31 | |
# mafm 20111203: removed the "disable shared" support from previous versions, I
|
32 | |
# couldn't find any reason for it in the changelog
|
33 | |
#
|
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
|
38 | |
confflags += --disable-music-flac-shared
|
39 | |
confflags += --disable-music-fluidsynth-shared
|
40 | |
confflags += --disable-music-mod-modplug-shared
|
41 | |
#confflags += --disable-music-mp3-shared
|
42 | |
confflags += --disable-music-ogg-shared
|
43 | 46 |
|
44 | 47 |
|
45 | 48 |
%:
|
|
58 | 61 |
dh_installchangelogs -- CHANGES.txt
|
59 | 62 |
|
60 | 63 |
override_dh_link:
|
61 | |
# fix lintian warning dev-pkg-without-shlib-symlink
|
|
64 |
# fix lintian warning dev-pkg-without-shlib-symlink
|
62 | 65 |
dh_link -plibsdl2-mixer-dev usr/lib/$(DEB_HOST_MULTIARCH)/libSDL2_mixer-2.0.so.0.0.0 usr/lib/$(DEB_HOST_MULTIARCH)/libSDL2_mixer-2.0.so
|
63 | 66 |
dh_link --remaining-packages
|
64 | 67 |
|