Mercurial > mxe-octave
annotate src/sdl.mk @ 4327:8e9b2a147e2a
of-tsa: update to v4.4.5
* src/of-tsa.mk: update version, chcksum
* src/of-tsa-1-cross-fixes.patch: removed
* dist-files.mk: remove of-tsa-1-cross-fixes.patch
* build_packages.m: update tsa version
author | John D |
---|---|
date | Wed, 11 Jan 2017 16:12:35 -0500 |
parents | 28fa86d2cf21 |
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 |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
417
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.15 |
2220
0e591a7a7d79
update packages sdl sdl_image sdl_mixer sdl_net
Martin Gerhardy <martin.gerhardy@gmail.com>
parents:
1946
diff
changeset
|
7 $(PKG)_CHECKSUM := 0c5f193ced810b0d7ce3ab06d808cbb5eef03a2c |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
8 $(PKG)_SUBDIR := SDL-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
9 $(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
|
10 $(PKG)_URL := http://www.libsdl.org/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 := libiconv |
159
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
91ca8f84441c
translated package: sdl
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:
2365
diff
changeset
|
14 $(WGET) -q -O- 'http://hg.libsdl.org/SDL/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' | \ |
159
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 head -1 |
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 endef |
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 |
4026 | 19 ifeq ($(MXE_NATIVE_BUILD),no) |
159
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 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
|
21 $(SED) -i 's,-mwindows,-lwinmm -mwindows,' '$(1)/configure' |
159
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 cd '$(1)' && ./configure \ |
2997 | 23 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
24 $(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
|
25 $(ENABLE_SHARED_OR_STATIC) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
3006
diff
changeset
|
26 --prefix='$(HOST_PREFIX)' \ |
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= |
3622
507e675391bd
sdl: create (MXE_TOOL_PREFIX)-sdl-config only if not native build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
32 if [ "$(MXE_NATIVE_BUILD)" == "no" ]; then \ |
507e675391bd
sdl: create (MXE_TOOL_PREFIX)-sdl-config only if not native build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
33 $(LN_SF) '$(HOST_BINDIR)/sdl-config' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)sdl-config'; \ |
507e675391bd
sdl: create (MXE_TOOL_PREFIX)-sdl-config only if not native build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
34 fi |
1433
8d023da02dd6
cleanup: remove unnecessary spaces
Volker Grabsch <vog@notjusthosting.com>
parents:
1427
diff
changeset
|
35 |
3622
507e675391bd
sdl: create (MXE_TOOL_PREFIX)-sdl-config only if not native build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
36 #'$(MXE_CC)' \ |
507e675391bd
sdl: create (MXE_TOOL_PREFIX)-sdl-config only if not native build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
37 # -W -Wall -Werror -ansi -pedantic \ |
507e675391bd
sdl: create (MXE_TOOL_PREFIX)-sdl-config only if not native build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
38 # '$(2).c' -o '$(HOST_BINDIR)/test-sdl.exe' \ |
507e675391bd
sdl: create (MXE_TOOL_PREFIX)-sdl-config only if not native build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
39 # `'$(MXE_PKG_CONFIG)' sdl --cflags --libs` |
159
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
40 endef |
4026 | 41 else |
42 define $(PKG)_BUILD | |
43 cd '$(1)' && ./autogen.sh && ./configure \ | |
44 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ | |
45 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ | |
46 $(ENABLE_SHARED_OR_STATIC) \ | |
47 --prefix='$(HOST_PREFIX)' \ | |
48 --enable-threads \ | |
49 --disable-stdio-redirect | |
50 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= | |
51 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= | |
52 endef | |
53 endif |