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
     1 #!/usr/bin/make -f
     2 
     3 #export DH_VERBOSE=1
     4 
     5 export DEB_CFLAGS_MAINT_APPEND = -pipe -Wall
     6 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-undefined -Wl,-Bsymbolic -Wl,--as-needed
     7 
     8 
     9 # enable external music player
    10 confflags = --enable-music-cmd
    11 
    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
    25 
    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
    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 #
    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
    47 
    48 %:
    49 	dh $@ --with autoreconf --parallel
    50 
    51 override_dh_autoreconf:
    52 	dh_autoreconf ./autogen.sh
    53 
    54 override_dh_auto_configure:
    55 	dh_auto_configure -- $(confflags)
    56 
    57 override_dh_auto_installchangelogs:
    58 	dh_auto_installchangelogs -- CHANGES
    59 
    60 override_dh_compress:
    61 	dh_compress -Xplaywave.c -Xplaymus.c