annotate src/sox.mk @ 7207:9ed6500e56d3 default tip @

maint: Merge release to default.
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 17 May 2024 20:16:41 +0200
parents 3307ec11073e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2469
51a4ed33302d various packages: fix references to mingw-cross-env and doc/index.html
Tony Theodore <tonyt@logyst.com>
parents: 2468
diff changeset
1 # This file is part of MXE.
51a4ed33302d various packages: fix references to mingw-cross-env and doc/index.html
Tony Theodore <tonyt@logyst.com>
parents: 2468
diff changeset
2 # See index.html for further information.
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
3
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
4 # sox
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
5 PKG := sox
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
6 $(PKG)_IGNORE :=
3480
13be64f9f16d move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents: 3048
diff changeset
7 $(PKG)_VERSION := 14.4.0
2468
110883446649 package sox: update and fix pkg-config and test program build
Tony Theodore <tonyt@logyst.com>
parents: 2467
diff changeset
8 $(PKG)_CHECKSUM := d809cab382c7a9d015491c69051a9d1c1a1a44f1
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
11 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
5201
3307ec11073e skip libgomp dependency if using native gcc
John W. Eaton <jwe@octave.org>
parents: 4601
diff changeset
12 $(PKG)_DEPS := ffmpeg flac lame libmad libsndfile vorbis
3307ec11073e skip libgomp dependency if using native gcc
John W. Eaton <jwe@octave.org>
parents: 4601
diff changeset
13 ifeq ($(USE_SYSTEM_GCC),no)
3307ec11073e skip libgomp dependency if using native gcc
John W. Eaton <jwe@octave.org>
parents: 4601
diff changeset
14 $(PKG)_DEPS += libgomp
3307ec11073e skip libgomp dependency if using native gcc
John W. Eaton <jwe@octave.org>
parents: 4601
diff changeset
15 endif
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
16
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
17 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2469
diff changeset
18 $(WGET) -q -O- 'http://sourceforge.net/projects/sox/files/sox/' | \
4601
dc3eb553f5e9 update UPDATE rule for sourceforge projects with version directories
John D
parents: 3480
diff changeset
19 $(SED) -n 's,.*tr title="\([0-9][^"]*\)".*,\1,p' | \
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
20 head -1
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
21 endef
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
22
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
23 define $(PKG)_BUILD
2468
110883446649 package sox: update and fix pkg-config and test program build
Tony Theodore <tonyt@logyst.com>
parents: 2467
diff changeset
24 # set pkg-config cflags and libs
110883446649 package sox: update and fix pkg-config and test program build
Tony Theodore <tonyt@logyst.com>
parents: 2467
diff changeset
25 $(SED) -i 's,^\(Cflags:.*\),\1 -fopenmp,' '$(1)/sox.pc.in'
110883446649 package sox: update and fix pkg-config and test program build
Tony Theodore <tonyt@logyst.com>
parents: 2467
diff changeset
26 $(SED) -i '/Libs.private/d' '$(1)/sox.pc.in'
110883446649 package sox: update and fix pkg-config and test program build
Tony Theodore <tonyt@logyst.com>
parents: 2467
diff changeset
27 echo Libs.private: `grep sox_LDADD '$(1)/src/optional-fmts.am' | \
110883446649 package sox: update and fix pkg-config and test program build
Tony Theodore <tonyt@logyst.com>
parents: 2467
diff changeset
28 $(SED) 's, sox_LDADD += ,,g' | tr -d '\n'` >>'$(1)/sox.pc.in'
110883446649 package sox: update and fix pkg-config and test program build
Tony Theodore <tonyt@logyst.com>
parents: 2467
diff changeset
29
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
30 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
31 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
32 --prefix='$(HOST_PREFIX)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
33 $(ENABLE_SHARED_OR_STATIC)
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
34
2468
110883446649 package sox: update and fix pkg-config and test program build
Tony Theodore <tonyt@logyst.com>
parents: 2467
diff changeset
35 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= EXTRA_PROGRAMS=
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
36 $(MAKE) -C '$(1)' -j 1 install
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
37
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
38 '$(MXE_CC)' \
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
39 -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
40 '$(2).c' -o '$(HOST_BINDIR)/test-sox.exe' \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
41 `'$(MXE_PKG_CONFIG)' sox --cflags --libs`
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
42 endef