annotate src/smpeg.mk @ 5579:2734b3818171

Avoid double-free with librsb (bug #58957). * src/librsb.mk: Add work-around to avoid double-free (provided by Michele Martone). * src/mingw-of-sparsersb-1-no-render.patch: Remove patch. * dist-files.mk: Remove file from list.
author Markus Mützel <markus.muetzel@gmx.de>
date Mon, 02 Nov 2020 08:55:18 +0100
parents 13be64f9f16d
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: 1761
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: 324
diff changeset
3
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
4 PKG := smpeg
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 := 0.4.5+cvs20030824
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
7 $(PKG)_CHECKSUM := d3460181f4b5e79b33f3bf4e9642a4fe6f98bc89
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
8 $(PKG)_SUBDIR := smpeg-$($(PKG)_VERSION).orig
324
beb10af0e886 improved coding style: use a consistent order of variables
Volker Grabsch <vog@notjusthosting.com>
parents: 321
diff changeset
9 $(PKG)_FILE := smpeg_$($(PKG)_VERSION).orig.tar.gz
1761
1f10c699d2aa improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 1311
diff changeset
10 $(PKG)_URL := http://ftp.debian.org/debian/pool/main/s/$(PKG)/$($(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
160
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
c910739ef7ed translated package: smpeg
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://packages.debian.org/unstable/source/smpeg' | \
160
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 $(SED) -n 's,.*smpeg_\([0-9][^>]*\)\.orig\.tar.*,\1,p' | \
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 head -1
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 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: 735
diff changeset
20 $(SED) -i 's,\(-lsmpeg\),\1 -lstdc++,' '$(1)/smpeg-config.in'
160
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 cd '$(1)' && ./configure \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
22 AR='$(MXE_AR)' \
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
23 NM='$(MXE_NM)' \
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) \
160
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --disable-debug \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
27 --prefix='$(HOST_PREFIX)' \
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
28 --with-sdl-prefix='$(HOST_PREFIX)' \
160
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --disable-sdltest \
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --disable-gtk-player \
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --disable-opengl-player \
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 CFLAGS='-ffriend-injection'
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
1311
dfc67c276c6b add test program for package smpeg
Volker Grabsch <vog@notjusthosting.com>
parents: 759
diff changeset
34
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
35 '$(MXE_CC)' \
1311
dfc67c276c6b add test program for package smpeg
Volker Grabsch <vog@notjusthosting.com>
parents: 759
diff changeset
36 -W -Wall -Werror -std=c99 -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
37 '$(2).c' -o '$(HOST_BINDIR)/test-smpeg.exe' \
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
38 `'$(HOST_BINDIR)/smpeg-config' --cflags --libs`
160
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 endef