Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 55 lines (50 sloc) 2.058 kb
da04553 James Goppert Initial commit.
jgoppert authored
1 # This file is part of mingw-cross-env.
2 # See doc/index.html for further information.
3
4 # SDL_mixer
5 PKG := sdl_mixer
6 $(PKG)_IGNORE :=
7 $(PKG)_VERSION := 1.2.11
8 $(PKG)_CHECKSUM := ef5d45160babeb51eafa7e4019cec38324ee1a5d
9 $(PKG)_SUBDIR := SDL_mixer-$($(PKG)_VERSION)
10 $(PKG)_FILE := SDL_mixer-$($(PKG)_VERSION).tar.gz
11 $(PKG)_WEBSITE := http://www.libsdl.org/projects/SDL_mixer/
12 $(PKG)_URL := http://www.libsdl.org/projects/SDL_mixer/release/$($(PKG)_FILE)
13 $(PKG)_DEPS := gcc sdl libmikmod ogg vorbis smpeg
14
15 define $(PKG)_UPDATE
16 wget -q -O- 'http://www.libsdl.org/cgi/viewvc.cgi/tags/SDL_mixer/?sortby=date' | \
17 grep '<a name="' | \
18 $(SED) -n 's,.*<a name="release-\([0-9][^"]*\)".*,\1,p' | \
19 head -1
20 endef
21
22 define $(PKG)_BUILD
23 $(SED) -i 's,^\(Requires:.*\),\1 vorbisfile,' '$(1)/SDL_mixer.pc.in'
24 echo \
25 'Libs.private:' \
26 "`$(PREFIX)/$(TARGET)/bin/libmikmod-config --libs`" \
27 "`$(PREFIX)/$(TARGET)/bin/smpeg-config --libs`" \
28 >> '$(1)/SDL_mixer.pc.in'
29 $(SED) -i 's,for path in /usr/local; do,for path in; do,' '$(1)/configure'
30 cd '$(1)' && ./configure \
31 --host='$(TARGET)' \
32 --disable-shared \
33 --prefix='$(PREFIX)/$(TARGET)' \
34 --with-sdl-prefix='$(PREFIX)/$(TARGET)' \
35 --disable-sdltest \
36 --enable-music-mod \
37 --enable-music-ogg \
38 --disable-music-flac \
39 --enable-music-mp3 \
40 --disable-music-mod-shared \
41 --disable-music-ogg-shared \
42 --disable-music-flac-shared \
43 --disable-music-mp3-shared \
44 --disable-smpegtest \
45 --with-smpeg-prefix='$(PREFIX)/$(TARGET)' \
46 LIBMIKMOD_CONFIG='$(PREFIX)/$(TARGET)/bin/libmikmod-config' \
47 LIBS='-lvorbis -logg'
48 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
49
50 '$(TARGET)-gcc' \
51 -W -Wall -Werror -ansi -pedantic \
52 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-sdl_mixer.exe' \
53 `'$(TARGET)-pkg-config' SDL_mixer --cflags --libs`
54 endef
Something went wrong with that request. Please try again.