Mercurial > mxe-octave
annotate src/sdl_mixer.mk @ 3480:13be64f9f16d
move version info from index.html to src/*.mk files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 31 Jan 2014 16:04:01 -0500 |
parents | 5ef49fb3299d |
children | 2471c5be92e3 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2222
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
414
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
306
diff
changeset
|
3 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
4 PKG := sdl_mixer |
566
2758ed1991a2
remove IGNORE lines which are no longer needed
Volker Grabsch <vog@notjusthosting.com>
parents:
535
diff
changeset
|
5 $(PKG)_IGNORE := |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
6 $(PKG)_VERSION := 1.2.12 |
2220
0e591a7a7d79
update packages sdl sdl_image sdl_mixer sdl_net
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
1707
diff
changeset
|
7 $(PKG)_CHECKSUM := a20fa96470ad9e1052f1957b77ffa68fb090b384 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
8 $(PKG)_SUBDIR := SDL_mixer-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
9 $(PKG)_FILE := SDL_mixer-$($(PKG)_VERSION).tar.gz |
525
d82ed3bf661f
use consequently "www.libsdl.org" instead of "libsdl.org"
Volker Grabsch <vog@notjusthosting.com>
parents:
516
diff
changeset
|
10 $(PKG)_URL := http://www.libsdl.org/projects/SDL_mixer/release/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_DEPS := sdl libmodplug ogg vorbis smpeg |
162
4377bbba7f64
translated package: sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
4377bbba7f64
translated package: sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2477
diff
changeset
|
14 $(WGET) -q -O- 'http://hg.libsdl.org/SDL_mixer/tags' | \ |
2222
b59e16e5f6ad
packages sdl sdl_image sdl_mixer: fixed update macros (thanks Laura)
Mark Brand <mabrand@mabrand.nl>
parents:
2220
diff
changeset
|
15 $(SED) -n 's,.*release-\([0-9][^<]*\).*,\1,p' | \ |
162
4377bbba7f64
translated package: sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 head -1 |
4377bbba7f64
translated package: sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 endef |
4377bbba7f64
translated package: sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 |
4377bbba7f64
translated package: sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 define $(PKG)_BUILD |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
755
diff
changeset
|
20 $(SED) -i 's,^\(Requires:.*\),\1 vorbisfile,' '$(1)/SDL_mixer.pc.in' |
736
9232c79dac70
bugfix and test program for package sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
21 echo \ |
9232c79dac70
bugfix and test program for package sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
22 'Libs.private:' \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
23 "`$(MXE_PKG_CONFIG) libmodplug --libs`" \ |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
24 "`$(HOST_BINDIR)/smpeg-config --libs`" \ |
736
9232c79dac70
bugfix and test program for package sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
25 >> '$(1)/SDL_mixer.pc.in' |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
755
diff
changeset
|
26 $(SED) -i 's,for path in /usr/local; do,for path in; do,' '$(1)/configure' |
162
4377bbba7f64
translated package: sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 cd '$(1)' && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
28 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
29 $(ENABLE_SHARED_OR_STATIC) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
30 --prefix='$(HOST_PREFIX)' \ |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
31 --with-sdl-prefix='$(HOST_PREFIX)' \ |
162
4377bbba7f64
translated package: sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 --disable-sdltest \ |
2477
54363e195f8b
package sdl_mixer: use libmodplug instead of libmikmod
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
33 --disable-music-mod \ |
54363e195f8b
package sdl_mixer: use libmodplug instead of libmikmod
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
34 --enable-music-mod-modplug \ |
162
4377bbba7f64
translated package: sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
35 --enable-music-ogg \ |
516
7454cb5a253e
update version of packages atk, gtk, sdl, sdl_image and sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
499
diff
changeset
|
36 --disable-music-flac \ |
7454cb5a253e
update version of packages atk, gtk, sdl, sdl_image and sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
499
diff
changeset
|
37 --enable-music-mp3 \ |
7454cb5a253e
update version of packages atk, gtk, sdl, sdl_image and sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
499
diff
changeset
|
38 --disable-music-mod-shared \ |
162
4377bbba7f64
translated package: sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
39 --disable-music-ogg-shared \ |
516
7454cb5a253e
update version of packages atk, gtk, sdl, sdl_image and sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
499
diff
changeset
|
40 --disable-music-flac-shared \ |
7454cb5a253e
update version of packages atk, gtk, sdl, sdl_image and sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
499
diff
changeset
|
41 --disable-music-mp3-shared \ |
162
4377bbba7f64
translated package: sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
42 --disable-smpegtest \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
43 --with-smpeg-prefix='$(HOST_PREFIX)' \ |
516
7454cb5a253e
update version of packages atk, gtk, sdl, sdl_image and sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
499
diff
changeset
|
44 LIBS='-lvorbis -logg' |
162
4377bbba7f64
translated package: sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
45 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
736
9232c79dac70
bugfix and test program for package sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
46 |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
47 '$(MXE_CC)' \ |
1707
4e48476ea587
fix compiler errors instead of suppressing them
Volker Grabsch <vog@notjusthosting.com>
parents:
1704
diff
changeset
|
48 -W -Wall -Werror -ansi -pedantic \ |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
49 '$(2).c' -o '$(HOST_BINDIR)/test-sdl_mixer.exe' \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
50 `'$(MXE_PKG_CONFIG)' SDL_mixer --cflags --libs` |
162
4377bbba7f64
translated package: sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
51 endef |