Codebase list libsdl2-mixer / c1e91e3 debian / rules
c1e91e3

Tree @c1e91e3 (Download .tar.gz)

rules @c1e91e3

1deddb0
 
 
 
894383b
 
 
 
0dbe040
695a61b
894383b
7fb2f10
 
 
93f5cd2
1deddb0
 
d1b5022
 
 
0043635
 
d1b5022
 
894383b
 
 
 
 
 
 
1deddb0
894383b
 
 
 
 
 
c26a13a
894383b
 
 
1deddb0
d7ce922
 
894383b
d7ce922
c1e91e3
 
894383b
1deddb0
 
894383b
 
1deddb0
7fb2f10
1deddb0
195f824
1deddb0
 
 
 
09fa409
 
 
 
7fb2f10
 
 
 
 
 
 
69cf865
6bdf555
7fb2f10
1deddb0
 
7fb2f10
 
 
 
195f824
 
 
#!/usr/bin/make -f

#export DH_VERBOSE=1

# fix for #725564
MODPLUG_INCLUDE_DIR := -I/usr/include/libmodplug

export DEB_CFLAGS_MAINT_APPEND  := -pipe -Wall $(MODPLUG_INCLUDE_DIR)
# bug #715461, provide default soundfont paths
export DEB_CPPFLAGS_MAINT_APPEND := -DMIX_INIT_SOUNDFONT_PATHS=\"/usr/share/sounds/sf3/FluidR3Mono_GM.sf3:/usr/share/sounds/sf2/TimGM6mb.sf2:/usr/share/sounds/sf2/FluidR3_GM.sf2\"
export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

SHLIBVER := 2.0.2


# disable autoheader (invoked automatically by autoreconf), necessary in order
# to use debhelper compat level v10 without overriding dh-autoreconf calls
export AUTOHEADER := /bin/true
# use correct invocation of aclocal for autoreconf
export ACLOCAL := aclocal --force --install -I /usr/share/aclocal/ -I acinclude


# explicitly enable/disable all supported sound
#
# issue "disable-*-shared" flags for 'configure', otherwise SDL_mixer library
# opens those libraries in a plugin-like way (with SDL_LoadObject), and
# dpkg-shlibdeps doesn't seem to generate the needed dependencies in the binary
# library package
#
# enable external music player
confflags := --enable-music-cmd
# flac
confflags += --enable-music-flac
confflags += --disable-music-flac-shared
# MIDI
confflags += --enable-music-midi-fluidsynth
confflags += --disable-music-midi-fluidsynth-shared
confflags += --enable-music-midi-timidity
confflags += --enable-music-midi-native
# MOD
confflags += --enable-music-mod
confflags += --enable-music-mod-modplug
confflags += --disable-music-mod-mikmod
confflags += --disable-music-mod-modplug-shared
confflags += --enable-music-mp3
confflags += --enable-music-mp3-mpg123
confflags += --disable-music-mp3-mpg123-shared
# ogg
confflags += --enable-music-ogg
confflags += --disable-music-ogg-shared
# wav
confflags += --enable-music-wave


%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(confflags)

override_dh_autoreconf:
	$(ACLOCAL)
	dh_autoreconf

override_dh_install:
	dh_install --fail-missing -XlibSDL2_mixer.la

override_dh_installchangelogs:
	dh_installchangelogs -- CHANGES.txt

override_dh_link:
	# fix lintian warning dev-pkg-without-shlib-symlink
	dh_link -plibsdl2-mixer-dev usr/lib/$(DEB_HOST_MULTIARCH)/libSDL2_mixer-2.0.so.0 usr/lib/$(DEB_HOST_MULTIARCH)/libSDL2_mixer-2.0.so
	dh_link --remaining-packages

override_dh_compress:
	dh_compress -Xplaymus.c -Xplaywave.c

override_dh_makeshlibs:
	dh_makeshlibs -V"libsdl2-mixer-2.0-0 (>= $(SHLIBVER))"

override_dh_strip:
	dh_strip --dbgsym-migration=libsdl2-mixer-dbg