debian/rules
author Ozkan Sezer <sezeroz@gmail.com>
Wed, 10 Oct 2018 17:56:10 +0300
changeset 901 253f50984a9a
parent 639 f8901a7ff3f1
child 923 cd0286a12a34
permissions -rwxr-xr-x
removed smpeg support completely.
     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-mp3
    16 confflags += --disable-music-mp3-mad-gpl
    17 confflags += --enable-music-mod
    18 confflags += --enable-music-mod-modplug
    19 confflags += --disable-music-mod-mikmod
    20 confflags += --enable-music-ogg
    21 confflags += --enable-music-wave
    22 
    23 # MIDI: explicitly state that we use (an in-source copy of) timidity
    24 confflags += --enable-music-midi
    25 confflags += --enable-music-midi-fluidsynth
    26 confflags += --enable-music-midi-timidity
    27 
    28 # mafm 20111203: removed the "disable shared" support from previous versions, I
    29 # couldn't find any reason for it in the changelog
    30 #
    31 # mafm 20111204: issue "disable-*-shared" flags for 'configure' again, otherwise
    32 # SDL_mixer library opens those libraries in a plugin-like way (with
    33 # SDL_LoadObject), and dpkg-shlibdeps doesn't seem to generate the needed
    34 # dependencies in the binary library package
    35 confflags += --disable-music-flac-shared
    36 confflags += --disable-music-ogg-shared
    37 confflags += --disable-music-mod-mikmod-shared
    38 confflags += --disable-music-mod-modplug-shared
    39 confflags += --disable-music-fluidsynth-shared
    40 
    41 %:
    42 	dh $@ --with autoreconf --parallel
    43 
    44 override_dh_autoreconf:
    45 	dh_autoreconf ./autogen.sh
    46 
    47 override_dh_auto_configure:
    48 	dh_auto_configure -- $(confflags)
    49 
    50 override_dh_auto_installchangelogs:
    51 	dh_auto_installchangelogs -- CHANGES
    52 
    53 override_dh_compress:
    54 	dh_compress -Xplaywave.c -Xplaymus.c