Mercurial > mxe-octave
annotate src/sdl.mk @ 6215:d18a5545df0d release
build-gettext: Don't build emacs bindings.
* src/build-gettext.mk: The `emacs` installed on the build system might be
incompatible with the STL built by build-gcc. We probably don't need the emacs
bindings for the `gettext` build tool anyway. So skip building those bindings.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 07 May 2022 12:01:10 +0200 |
parents | 849306e66cb1 |
children |
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 |
5687
849306e66cb1
* src/sdl.mk: disable sdl1 update rule check
John Donoghue <john.donoghue@ieee.org>
parents:
5415
diff
changeset
|
13 # SDL1 is no longer updated, so wont see any new versions |
849306e66cb1
* src/sdl.mk: disable sdl1 update rule check
John Donoghue <john.donoghue@ieee.org>
parents:
5415
diff
changeset
|
14 # TODO: create a SDL2 target if we want to use that |
159
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 define $(PKG)_UPDATE |
5687
849306e66cb1
* src/sdl.mk: disable sdl1 update rule check
John Donoghue <john.donoghue@ieee.org>
parents:
5415
diff
changeset
|
16 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2; |
849306e66cb1
* src/sdl.mk: disable sdl1 update rule check
John Donoghue <john.donoghue@ieee.org>
parents:
5415
diff
changeset
|
17 echo $($(PKG)_VERSION) |
159
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 endef |
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 |
4026 | 20 ifeq ($(MXE_NATIVE_BUILD),no) |
159
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 \ |
2997 | 24 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
25 $(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
|
26 $(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
|
27 --prefix='$(HOST_PREFIX)' \ |
932
f25aeaedf6b7
enable win32 threads explicitly in package sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
865
diff
changeset
|
28 --enable-threads \ |
1426
34a7a4ab08d1
comple package sdl with --disable-stdio-redirect
Volker Grabsch <vog@notjusthosting.com>
parents:
1259
diff
changeset
|
29 --enable-directx \ |
34a7a4ab08d1
comple package sdl with --disable-stdio-redirect
Volker Grabsch <vog@notjusthosting.com>
parents:
1259
diff
changeset
|
30 --disable-stdio-redirect |
5415
6d74d525a6a3
* src/sdl.mk: dont install docs
John Donoghue <john.donoghue@ieee.org>
parents:
5112
diff
changeset
|
31 $(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DISABLE_PROGS) |
6d74d525a6a3
* src/sdl.mk: dont install docs
John Donoghue <john.donoghue@ieee.org>
parents:
5112
diff
changeset
|
32 $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS) |
3622
507e675391bd
sdl: create (MXE_TOOL_PREFIX)-sdl-config only if not native build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
33 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
|
34 $(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
|
35 fi |
1433
8d023da02dd6
cleanup: remove unnecessary spaces
Volker Grabsch <vog@notjusthosting.com>
parents:
1427
diff
changeset
|
36 |
3622
507e675391bd
sdl: create (MXE_TOOL_PREFIX)-sdl-config only if not native build
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
37 #'$(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
|
38 # -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
|
39 # '$(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
|
40 # `'$(MXE_PKG_CONFIG)' sdl --cflags --libs` |
159
91ca8f84441c
translated package: sdl
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
41 endef |
4026 | 42 else |
43 define $(PKG)_BUILD | |
44 cd '$(1)' && ./autogen.sh && ./configure \ | |
45 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ | |
46 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ | |
47 $(ENABLE_SHARED_OR_STATIC) \ | |
48 --prefix='$(HOST_PREFIX)' \ | |
49 --enable-threads \ | |
50 --disable-stdio-redirect | |
51 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= | |
52 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= | |
53 endef | |
54 endif |