debian/rules
author Sam Lantinga <slouken@libsdl.org>
Wed, 07 Nov 2018 07:47:50 -0800
changeset 924 9be60a9582a6
parent 923 cd0286a12a34
permissions -rwxr-xr-x
The Debian maintainers aren't using these rules, so enable dynamic loading of shared libraries by default for the Steam Linux Runtime
slouken@605
     1
#!/usr/bin/make -f
slouken@605
     2
slouken@605
     3
#export DH_VERBOSE=1
slouken@605
     4
slouken@605
     5
export DEB_CFLAGS_MAINT_APPEND = -pipe -Wall
slouken@605
     6
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-undefined -Wl,-Bsymbolic -Wl,--as-needed
slouken@605
     7
slouken@605
     8
slouken@605
     9
# enable external music player
slouken@605
    10
confflags = --enable-music-cmd
slouken@605
    11
slouken@605
    12
# explicitly enable/disable all supported sound
slouken@639
    13
# For mp3 support, libmad disabled by default because it is GPL and not allowed to link with commercial closed-source programs
slouken@639
    14
# For mod support, modplug is the default because it is in the public domain and used across all platforms.
slouken@923
    15
confflags += --enable-music-flac
slouken@605
    16
confflags += --enable-music-mod
slouken@639
    17
confflags += --enable-music-mod-modplug
slouken@639
    18
confflags += --disable-music-mod-mikmod
slouken@923
    19
confflags += --enable-music-mp3
slouken@923
    20
confflags += --enable-music-mp3-mpg123
slouken@923
    21
confflags += --disable-music-mp3-mad-gpl
slouken@605
    22
confflags += --enable-music-ogg
slouken@923
    23
confflags += --enable-music-opus
slouken@605
    24
confflags += --enable-music-wave
slouken@605
    25
slouken@605
    26
# MIDI: explicitly state that we use (an in-source copy of) timidity
slouken@639
    27
confflags += --enable-music-midi
slouken@639
    28
confflags += --enable-music-midi-fluidsynth
slouken@639
    29
confflags += --enable-music-midi-timidity
slouken@605
    30
slouken@605
    31
# mafm 20111203: removed the "disable shared" support from previous versions, I
slouken@605
    32
# couldn't find any reason for it in the changelog
slouken@605
    33
#
slouken@605
    34
# mafm 20111204: issue "disable-*-shared" flags for 'configure' again, otherwise
slouken@605
    35
# SDL_mixer library opens those libraries in a plugin-like way (with
slouken@605
    36
# SDL_LoadObject), and dpkg-shlibdeps doesn't seem to generate the needed
slouken@605
    37
# dependencies in the binary library package
slouken@924
    38
#
slouken@924
    39
# The Debian maintainers aren't using these rules, so enable dynamic loading of shared libraries by default for the Steam Linux Runtime
slouken@924
    40
#confflags += --disable-music-flac-shared
slouken@924
    41
#confflags += --disable-music-midi-fluidsynth-shared
slouken@924
    42
#confflags += --disable-music-mod-mikmod-shared
slouken@924
    43
#confflags += --disable-music-mod-modplug-shared
slouken@924
    44
#confflags += --disable-music-mp3-mpg123-shared
slouken@924
    45
#confflags += --disable-music-ogg-shared
slouken@924
    46
#confflags += --disable-music-opus-shared
slouken@605
    47
slouken@605
    48
%:
slouken@605
    49
	dh $@ --with autoreconf --parallel
slouken@605
    50
slouken@605
    51
override_dh_autoreconf:
slouken@605
    52
	dh_autoreconf ./autogen.sh
slouken@605
    53
slouken@605
    54
override_dh_auto_configure:
slouken@605
    55
	dh_auto_configure -- $(confflags)
slouken@605
    56
slouken@605
    57
override_dh_auto_installchangelogs:
slouken@605
    58
	dh_auto_installchangelogs -- CHANGES
slouken@607
    59
slouken@607
    60
override_dh_compress:
slouken@607
    61
	dh_compress -Xplaywave.c -Xplaymus.c