annotate src/sdl_sound.mk @ 1312:4e5785e62a10

fix linking issues in package sdl_sound
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 10 Oct 2010 14:07:52 +0200
parents 48cef772b11a
children 31882b698d64
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1238
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
1 # This file is part of mingw-cross-env.
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
2 # See doc/index.html for further information.
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
3
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
4 # SDL_sound
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
5 PKG := sdl_sound
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
7 $(PKG)_VERSION := 1.0.3
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
8 $(PKG)_CHECKSUM := 1984bc20b2c756dc71107a5a0a8cebfe07e58cb1
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
9 $(PKG)_SUBDIR := SDL_sound-$($(PKG)_VERSION)
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
10 $(PKG)_FILE := SDL_sound-$($(PKG)_VERSION).tar.gz
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
11 $(PKG)_WEBSITE := http://icculus.org/SDL_sound/
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
12 $(PKG)_URL := http://icculus.org/SDL_sound/downloads/$($(PKG)_FILE)
1312
4e5785e62a10 fix linking issues in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1308
diff changeset
13 $(PKG)_DEPS := gcc sdl libmikmod ogg vorbis flac speex
1238
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
14
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
1252
e8ab66322da3 fix update macros for plotmm and sdl_sound
Tony Theodore <tonyt@logyst.com>
parents: 1238
diff changeset
16 wget -q -O- 'http://hg.icculus.org/icculus/SDL_sound/tags' | \
1277
104c7045f292 improved update scripts of packages: glib librsvg sdl_sound sdl_ttf
Volker Grabsch <vog@notjusthosting.com>
parents: 1270
diff changeset
17 $(SED) -n 's,.*release-\([0-9][^<]*\).*,\1,p' | \
1252
e8ab66322da3 fix update macros for plotmm and sdl_sound
Tony Theodore <tonyt@logyst.com>
parents: 1238
diff changeset
18 head -1
1238
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
19 endef
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
20
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
21 define $(PKG)_BUILD
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
22 cd '$(1)' && ./configure \
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
23 --host='$(TARGET)' \
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
24 --disable-shared \
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
25 --prefix='$(PREFIX)/$(TARGET)' \
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
26 --with-sdl-prefix='$(PREFIX)/$(TARGET)' \
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
27 --disable-sdltest \
1308
48cef772b11a fix configure options and remove an unnecessary sed action in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1277
diff changeset
28 --enable-voc \
48cef772b11a fix configure options and remove an unnecessary sed action in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1277
diff changeset
29 --enable-wav \
48cef772b11a fix configure options and remove an unnecessary sed action in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1277
diff changeset
30 --enable-raw \
48cef772b11a fix configure options and remove an unnecessary sed action in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1277
diff changeset
31 --enable-aiff \
48cef772b11a fix configure options and remove an unnecessary sed action in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1277
diff changeset
32 --enable-au \
48cef772b11a fix configure options and remove an unnecessary sed action in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1277
diff changeset
33 --enable-shn \
48cef772b11a fix configure options and remove an unnecessary sed action in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1277
diff changeset
34 --enable-midi \
1312
4e5785e62a10 fix linking issues in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1308
diff changeset
35 --disable-smpeg \
1308
48cef772b11a fix configure options and remove an unnecessary sed action in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1277
diff changeset
36 --enable-mpglib \
48cef772b11a fix configure options and remove an unnecessary sed action in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1277
diff changeset
37 --enable-mikmod \
1312
4e5785e62a10 fix linking issues in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1308
diff changeset
38 --disable-modplug \
1308
48cef772b11a fix configure options and remove an unnecessary sed action in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1277
diff changeset
39 --enable-ogg \
48cef772b11a fix configure options and remove an unnecessary sed action in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1277
diff changeset
40 --enable-flac \
48cef772b11a fix configure options and remove an unnecessary sed action in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1277
diff changeset
41 --enable-speex \
1312
4e5785e62a10 fix linking issues in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1308
diff changeset
42 --disable-physfs \
1308
48cef772b11a fix configure options and remove an unnecessary sed action in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1277
diff changeset
43 --disable-altcvt \
1312
4e5785e62a10 fix linking issues in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1308
diff changeset
44 LIBS="`'$(TARGET)-pkg-config' vorbisfile flac speex --libs` `'$(PREFIX)/$(TARGET)/bin/libmikmod-config' --libs`" \
1256
b6d98b5e72f6 bugfixes for sdl_sound build and test program
Tony Theodore <tonyt@logyst.com>
parents: 1252
diff changeset
45 CFLAGS='-fno-inline'
1238
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
46 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
1312
4e5785e62a10 fix linking issues in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1308
diff changeset
47
1256
b6d98b5e72f6 bugfixes for sdl_sound build and test program
Tony Theodore <tonyt@logyst.com>
parents: 1252
diff changeset
48 '$(TARGET)-gcc' \
b6d98b5e72f6 bugfixes for sdl_sound build and test program
Tony Theodore <tonyt@logyst.com>
parents: 1252
diff changeset
49 -W -Wall -Werror -std=c99 -pedantic \
b6d98b5e72f6 bugfixes for sdl_sound build and test program
Tony Theodore <tonyt@logyst.com>
parents: 1252
diff changeset
50 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-sdl_sound.exe' \
b6d98b5e72f6 bugfixes for sdl_sound build and test program
Tony Theodore <tonyt@logyst.com>
parents: 1252
diff changeset
51 -lSDL_sound \
1312
4e5785e62a10 fix linking issues in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1308
diff changeset
52 `'$(TARGET)-pkg-config' sdl vorbisfile flac speex --cflags --libs` \
4e5785e62a10 fix linking issues in package sdl_sound
Volker Grabsch <vog@notjusthosting.com>
parents: 1308
diff changeset
53 `'$(PREFIX)/$(TARGET)/bin/libmikmod-config' --cflags --libs`
1238
60ca4d73b3aa new package sdl_sound
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
diff changeset
54 endef