annotate src/libsndfile.mk @ 5545:78a98ff1efd8

configure.ac: Default USE_SYSTEM_OCTAVE to MXE_NATIVE_BUILD (bug #49503).
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 02 Oct 2020 13:54:27 +0200
parents ca9fbba3a9bb
children a7e3baa1e86e
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: 1933
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.
514
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := libsndfile
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
4392
84c0a1f07ed4 libsndfile: update to 1.0.28
John D
parents: 4165
diff changeset
6 $(PKG)_VERSION := 1.0.28
84c0a1f07ed4 libsndfile: update to 1.0.28
John D
parents: 4165
diff changeset
7 $(PKG)_CHECKSUM := 85aa967e19f6b9bf975601d79669025e5f8bc77d
514
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_SUBDIR := libsndfile-$($(PKG)_VERSION)
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_FILE := libsndfile-$($(PKG)_VERSION).tar.gz
607
0e4f707cd651 update version of packages geos, libgcrypt, libsndfile, pango and xmlwrapp
Volker Grabsch <vog@notjusthosting.com>
parents: 514
diff changeset
10 $(PKG)_URL := http://www.mega-nerd.com/libsndfile/files/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
11 $(PKG)_DEPS := sqlite flac ogg vorbis
514
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
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://www.mega-nerd.com/libsndfile/' | \
514
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 grep '<META NAME="Version"' | \
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 $(SED) -n 's,.*CONTENT="libsndfile-\([0-9][^"]*\)">.*,\1,p' | \
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 head -1
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 endef
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19
5437
ca9fbba3a9bb * src/libsndfile.mk: disable docs, use DESTDIR, enable stacksmash in mingw
John Donoghue <john.donoghue@ieee.org>
parents: 5401
diff changeset
20 $(PKG)_EXTRA_CONFIGURE_OPTIONS :=
ca9fbba3a9bb * src/libsndfile.mk: disable docs, use DESTDIR, enable stacksmash in mingw
John Donoghue <john.donoghue@ieee.org>
parents: 5401
diff changeset
21 ifneq ($(filter mingw msvc,$(MXE_SYSTEM)),)
ca9fbba3a9bb * src/libsndfile.mk: disable docs, use DESTDIR, enable stacksmash in mingw
John Donoghue <john.donoghue@ieee.org>
parents: 5401
diff changeset
22 $(PKG)_EXTRA_CONFIGURE_OPTIONS += --enable-stack-smash-protection
ca9fbba3a9bb * src/libsndfile.mk: disable docs, use DESTDIR, enable stacksmash in mingw
John Donoghue <john.donoghue@ieee.org>
parents: 5401
diff changeset
23 endif
ca9fbba3a9bb * src/libsndfile.mk: disable docs, use DESTDIR, enable stacksmash in mingw
John Donoghue <john.donoghue@ieee.org>
parents: 5401
diff changeset
24
514
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 define $(PKG)_BUILD
3776
5fd074e27f85 audio: updates for libsound, portaudio
John Donoghue <john.donoghue@ieee.org>
parents: 3480
diff changeset
26 cd '$(1)' && autoreconf -fi -IM4
514
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
28 $(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
29 $(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
30 --prefix='$(HOST_PREFIX)' \
5437
ca9fbba3a9bb * src/libsndfile.mk: disable docs, use DESTDIR, enable stacksmash in mingw
John Donoghue <john.donoghue@ieee.org>
parents: 5401
diff changeset
31 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
514
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 --enable-sqlite \
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 --enable-external-libs \
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 --disable-octave \
5437
ca9fbba3a9bb * src/libsndfile.mk: disable docs, use DESTDIR, enable stacksmash in mingw
John Donoghue <john.donoghue@ieee.org>
parents: 5401
diff changeset
35 --disable-alsa \
ca9fbba3a9bb * src/libsndfile.mk: disable docs, use DESTDIR, enable stacksmash in mingw
John Donoghue <john.donoghue@ieee.org>
parents: 5401
diff changeset
36 --disable-full-suite \
ca9fbba3a9bb * src/libsndfile.mk: disable docs, use DESTDIR, enable stacksmash in mingw
John Donoghue <john.donoghue@ieee.org>
parents: 5401
diff changeset
37 $($(PKG)_EXTRA_CONFIGURE_OPTIONS)
ca9fbba3a9bb * src/libsndfile.mk: disable docs, use DESTDIR, enable stacksmash in mingw
John Donoghue <john.donoghue@ieee.org>
parents: 5401
diff changeset
38 $(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS)
ca9fbba3a9bb * src/libsndfile.mk: disable docs, use DESTDIR, enable stacksmash in mingw
John Donoghue <john.donoghue@ieee.org>
parents: 5401
diff changeset
39 $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS) DESTDIR='$(3)'
514
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 endef