annotate src/sox.mk @ 4601:dc3eb553f5e9

update UPDATE rule for sourceforge projects with version directories * src/cppunit.mk, src/cunit.mk, src/expat.mk, src/freeimage.mk, src/freetype.mk, src/gnuplot.mk, src/graphicsmagick.mk, src/hunspell.mk, src/id3lib.mk, src/lcms.mk, src/libircclient.mk, src/liblo.mk, src/libmad.mk, src/libmng.mk, src/libmodplug.mk, src/libusb.mk, src/matio.mk, src/pcre.mk, src/pdcurses.mk, src/pfstools.mk, src/plotmm.mk, src/qjson.mk, src/qwt.mk, src/qwtplot3d.mk, src/sdl_pango.mk, src/sox.mk, src/tinyxml.mk, src/xmlwrapp.mk: update UPDATE rule for sourceforge projects with version directories * src/llvm.mk: update use wget not WGE so get uncompressed file)
author John D
date Mon, 29 Jan 2018 11:57:20 -0500
parents 13be64f9f16d
children 3307ec11073e
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)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
12 $(PKG)_DEPS := ffmpeg flac lame libgomp libmad libsndfile vorbis
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
13
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
14 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2469
diff changeset
15 $(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
16 $(SED) -n 's,.*tr title="\([0-9][^"]*\)".*,\1,p' | \
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
17 head -1
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
18 endef
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
19
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
20 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
21 # 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
22 $(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
23 $(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
24 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
25 $(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
26
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
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) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
29 --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
30 $(ENABLE_SHARED_OR_STATIC)
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
31
2468
110883446649 package sox: update and fix pkg-config and test program build
Tony Theodore <tonyt@logyst.com>
parents: 2467
diff changeset
32 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= EXTRA_PROGRAMS=
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
33 $(MAKE) -C '$(1)' -j 1 install
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
34
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
35 '$(MXE_CC)' \
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
36 -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
37 '$(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
38 `'$(MXE_PKG_CONFIG)' sox --cflags --libs`
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
39 endef