annotate src/sdl_image.mk @ 6306:358d242b5875

* src/sdl_image.mk: disable updates on old package
author John Donoghue <john.donoghue@ieee.org>
date Tue, 12 Jul 2022 15:52:15 -0400
parents 3c91c69aad7e
children
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.
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_image
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.12
2220
0e591a7a7d79 update packages sdl sdl_image sdl_mixer sdl_net
Martin Gerhardy <martin.gerhardy@gmail.com>
parents: 2183
diff changeset
7 $(PKG)_CHECKSUM := 5e3e393d4e366638048bbb10d6a269ea3f4e4cf2
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
8 $(PKG)_SUBDIR := SDL_image-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
9 $(PKG)_FILE := SDL_image-$($(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/projects/SDL_image/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 := sdl jpeg libpng tiff
163
e3eb8dfa71f5 translated package: sdl_image
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
e3eb8dfa71f5 translated package: sdl_image
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
6306
358d242b5875 * src/sdl_image.mk: disable updates on old package
John Donoghue <john.donoghue@ieee.org>
parents: 5757
diff changeset
14 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
358d242b5875 * src/sdl_image.mk: disable updates on old package
John Donoghue <john.donoghue@ieee.org>
parents: 5757
diff changeset
15 echo $($(PKG)_VERSION)
163
e3eb8dfa71f5 translated package: sdl_image
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 endef
e3eb8dfa71f5 translated package: sdl_image
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17
e3eb8dfa71f5 translated package: sdl_image
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 define $(PKG)_BUILD
2183
0a1c7cb195fa packages sdl_image vigra: use pkg-config for png and tiff
Mark Brand <mabrand@mabrand.nl>
parents: 759
diff changeset
19 $(SED) -i 's,^\(Requires:.*\),\1 libtiff-4 libpng,' '$(1)/SDL_image.pc.in'
163
e3eb8dfa71f5 translated package: sdl_image
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
21 $(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
22 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
23 --prefix='$(HOST_PREFIX)' \
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
24 --with-sdl-prefix='$(HOST_PREFIX)' \
163
e3eb8dfa71f5 translated package: sdl_image
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --disable-sdltest \
e3eb8dfa71f5 translated package: sdl_image
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --disable-jpg-shared \
e3eb8dfa71f5 translated package: sdl_image
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --disable-png-shared \
e3eb8dfa71f5 translated package: sdl_image
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --disable-tif-shared \
646
43205e8dd3e1 replace a dangling tab character
Volker Grabsch <vog@notjusthosting.com>
parents: 641
diff changeset
29 LIBS='-lz'
163
e3eb8dfa71f5 translated package: sdl_image
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
733
6f7cdcfc3279 bugfix and test program for package sdl_image
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
31
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
32 '$(MXE_CC)' \
733
6f7cdcfc3279 bugfix and test program for package sdl_image
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
33 -W -Wall -Werror -ansi -pedantic \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
34 '$(2).c' -o '$(HOST_BINDIR)/test-sdl_image.exe' \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
35 `'$(MXE_PKG_CONFIG)' SDL_image --cflags --libs`
163
e3eb8dfa71f5 translated package: sdl_image
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 endef