annotate src/sdl.mk @ 2333:f653602a0500

Rebrand to new project name MXE
author Volker Grabsch <vog@notjusthosting.com>
date Wed, 28 Mar 2012 15:46:58 +0200
parents b59e16e5f6ad
children f48c5b085a38
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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.
714
29f1ba4559ae point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents: 657
diff changeset
2 # See doc/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
159
91ca8f84441c translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # SDL
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
5 PKG := sdl
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
6 $(PKG)_IGNORE :=
2220
0e591a7a7d79 update packages sdl sdl_image sdl_mixer sdl_net
Martin Gerhardy <martin.gerhardy@gmail.com>
parents: 1946
diff changeset
7 $(PKG)_VERSION := 1.2.15
0e591a7a7d79 update packages sdl sdl_image sdl_mixer sdl_net
Martin Gerhardy <martin.gerhardy@gmail.com>
parents: 1946
diff changeset
8 $(PKG)_CHECKSUM := 0c5f193ced810b0d7ce3ab06d808cbb5eef03a2c
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
9 $(PKG)_SUBDIR := SDL-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
10 $(PKG)_FILE := SDL-$($(PKG)_VERSION).tar.gz
525
d82ed3bf661f use consequently "www.libsdl.org" instead of "libsdl.org"
Volker Grabsch <vog@notjusthosting.com>
parents: 516
diff changeset
11 $(PKG)_WEBSITE := http://www.libsdl.org/
d82ed3bf661f use consequently "www.libsdl.org" instead of "libsdl.org"
Volker Grabsch <vog@notjusthosting.com>
parents: 516
diff changeset
12 $(PKG)_URL := http://www.libsdl.org/release/$($(PKG)_FILE)
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
13 $(PKG)_DEPS := gcc libiconv
159
91ca8f84441c translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
91ca8f84441c translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
2222
b59e16e5f6ad packages sdl sdl_image sdl_mixer: fixed update macros (thanks Laura)
Mark Brand <mabrand@mabrand.nl>
parents: 2220
diff changeset
16 wget -q -O- 'http://hg.libsdl.org/SDL/tags' | \
b59e16e5f6ad packages sdl sdl_image sdl_mixer: fixed update macros (thanks Laura)
Mark Brand <mabrand@mabrand.nl>
parents: 2220
diff changeset
17 $(SED) -n 's,.*release-\([0-9][^<]*\).*,\1,p' | \
159
91ca8f84441c translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 head -1
91ca8f84441c translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 endef
91ca8f84441c translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20
91ca8f84441c translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 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
22 $(SED) -i 's,-mwindows,-lwinmm -mwindows,' '$(1)/configure'
159
91ca8f84441c translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 cd '$(1)' && ./configure \
91ca8f84441c translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 --host='$(TARGET)' \
91ca8f84441c translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --disable-shared \
861
6c312e7050ba disable directx support in package sdl because sdl has trouble with the new ddraw.h
Volker Grabsch <vog@notjusthosting.com>
parents: 759
diff changeset
26 --prefix='$(PREFIX)/$(TARGET)' \
932
f25aeaedf6b7 enable win32 threads explicitly in package sdl
Volker Grabsch <vog@notjusthosting.com>
parents: 865
diff changeset
27 --enable-threads \
1426
34a7a4ab08d1 comple package sdl with --disable-stdio-redirect
Volker Grabsch <vog@notjusthosting.com>
parents: 1259
diff changeset
28 --enable-directx \
34a7a4ab08d1 comple package sdl with --disable-stdio-redirect
Volker Grabsch <vog@notjusthosting.com>
parents: 1259
diff changeset
29 --disable-stdio-redirect
173
b279dbda0f54 improved parallel builds of packages 'binutils', 'pdflib_lite' and 'sdl'
Volker Grabsch <vog@notjusthosting.com>
parents: 161
diff changeset
30 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
159
91ca8f84441c translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
1946
c6831f324cc3 improved coding style regarding creation of symlinks
Volker Grabsch <vog@notjusthosting.com>
parents: 1707
diff changeset
32 ln -sf '$(PREFIX)/$(TARGET)/bin/sdl-config' '$(PREFIX)/bin/$(TARGET)-sdl-config'
1433
8d023da02dd6 cleanup: remove unnecessary spaces
Volker Grabsch <vog@notjusthosting.com>
parents: 1427
diff changeset
33
657
b1d03b91eb1e test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents: 641
diff changeset
34 '$(TARGET)-gcc' \
1707
4e48476ea587 fix compiler errors instead of suppressing them
Volker Grabsch <vog@notjusthosting.com>
parents: 1694
diff changeset
35 -W -Wall -Werror -ansi -pedantic \
755
7b15d99ad223 improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 731
diff changeset
36 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-sdl.exe' \
7b15d99ad223 improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 731
diff changeset
37 `'$(TARGET)-pkg-config' sdl --cflags --libs`
159
91ca8f84441c translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 endef