debian/rules
author Sam Lantinga <slouken@libsdl.org>
Wed, 31 Oct 2018 11:50:50 -0700
changeset 923 cd0286a12a34
parent 901 253f50984a9a
child 924 9be60a9582a6
permissions -rwxr-xr-x
Updated Debian package dependencies and configuration
     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 confflags += --disable-music-flac-shared
    39 confflags += --disable-music-midi-fluidsynth-shared
    40 confflags += --disable-music-mod-mikmod-shared
    41 confflags += --disable-music-mod-modplug-shared
    42 confflags += --disable-music-mp3-mpg123-shared
    43 confflags += --disable-music-ogg-shared
    44 confflags += --disable-music-opus-shared
    45 
    46 %:
    47 	dh $@ --with autoreconf --parallel
    48 
    49 override_dh_autoreconf:
    50 	dh_autoreconf ./autogen.sh
    51 
    52 override_dh_auto_configure:
    53 	dh_auto_configure -- $(confflags)
    54 
    55 override_dh_auto_installchangelogs:
    56 	dh_auto_installchangelogs -- CHANGES
    57 
    58 override_dh_compress:
    59 	dh_compress -Xplaywave.c -Xplaymus.c