Mercurial > mxe-octave
annotate src/sdl.mk @ 755:7b15d99ad223
improved coding style
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Tue, 16 Feb 2010 03:49:06 +0100 |
parents | 2ffb38727a32 |
children | bf4bcb3370fa |
rev | line source |
---|---|
641
dab071eac9c0
simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents:
525
diff
changeset
|
1 # This file is part of mingw-cross-env. |
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 := |
516
7454cb5a253e
update version of packages atk, gtk, sdl, sdl_image and sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
499
diff
changeset
|
7 $(PKG)_VERSION := 1.2.14 |
7454cb5a253e
update version of packages atk, gtk, sdl, sdl_image and sdl_mixer
Volker Grabsch <vog@notjusthosting.com>
parents:
499
diff
changeset
|
8 $(PKG)_CHECKSUM := ba625b4b404589b97e92d7acd165992debe576dd |
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 |
499
abc655cb4694
improved version recognition of packages atk, glib, gtk, libxml2, libxslt, nsis, pango, sdl, sdl_image, sdl_mixer and sdl_ttf
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
16 wget -q -O- 'http://www.libsdl.org/cgi/viewvc.cgi/tags/SDL/?sortby=date' | \ |
abc655cb4694
improved version recognition of packages atk, glib, gtk, libxml2, libxslt, nsis, pango, sdl, sdl_image, sdl_mixer and sdl_ttf
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
17 grep '<a name="' | \ |
abc655cb4694
improved version recognition of packages atk, glib, gtk, libxml2, libxslt, nsis, pango, sdl, sdl_image, sdl_mixer and sdl_ttf
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
18 $(SED) -n 's,.*<a name="release-\([0-9][^"]*\)".*,\1,p' | \ |
159
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 head -1 |
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 endef |
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 |
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 define $(PKG)_BUILD |
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 $(SED) 's,-mwindows,-lwinmm -mwindows,' -i '$(1)/configure' |
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 cd '$(1)' && ./configure \ |
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 --host='$(TARGET)' \ |
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 --disable-shared \ |
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 --disable-debug \ |
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 --prefix='$(PREFIX)/$(TARGET)' |
173
b279dbda0f54
improved parallel builds of packages 'binutils', 'pdflib_lite' and 'sdl'
Volker Grabsch <vog@notjusthosting.com>
parents:
161
diff
changeset
|
29 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
159
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
657
b1d03b91eb1e
test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
641
diff
changeset
|
31 |
b1d03b91eb1e
test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
641
diff
changeset
|
32 '$(TARGET)-gcc' \ |
b1d03b91eb1e
test program for package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
641
diff
changeset
|
33 -W -Wall -Werror -ansi -pedantic \ |
755
7b15d99ad223
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
731
diff
changeset
|
34 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-sdl.exe' \ |
7b15d99ad223
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
731
diff
changeset
|
35 `'$(TARGET)-pkg-config' sdl --cflags --libs` |
159
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
36 endef |