annotate src/sox.mk @ 2469:51a4ed33302d

various packages: fix references to mingw-cross-env and doc/index.html
author Tony Theodore <tonyt@logyst.com>
date Wed, 02 May 2012 21:36:59 +1000
parents 110883446649
children 4d0f3a9da57e
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 :=
2468
110883446649 package sox: update and fix pkg-config and test program build
Tony Theodore <tonyt@logyst.com>
parents: 2467
diff changeset
7 $(PKG)_CHECKSUM := d809cab382c7a9d015491c69051a9d1c1a1a44f1
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
2468
110883446649 package sox: update and fix pkg-config and test program build
Tony Theodore <tonyt@logyst.com>
parents: 2467
diff changeset
11 $(PKG)_DEPS := gcc ffmpeg flac lame libgomp libmad libsndfile vorbis
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
12
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
13 define $(PKG)_UPDATE
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
14 wget -q -O- 'http://sourceforge.net/projects/sox/files/sox/' | \
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
15 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
16 head -1
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
17 endef
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
18
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
19 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
20 # 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
21 $(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
22 $(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
23 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
24 $(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
25
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
26 cd '$(1)' && ./configure \
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
27 --host='$(TARGET)' \
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
28 --prefix='$(PREFIX)/$(TARGET)' \
2468
110883446649 package sox: update and fix pkg-config and test program build
Tony Theodore <tonyt@logyst.com>
parents: 2467
diff changeset
29 --build="`config.guess`" \
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
30 --disable-shared
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
2468
110883446649 package sox: update and fix pkg-config and test program build
Tony Theodore <tonyt@logyst.com>
parents: 2467
diff changeset
35 '$(TARGET)-gcc' \
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
36 -W -Wall -Werror -ansi -pedantic \
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
37 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-sox.exe' \
2468
110883446649 package sox: update and fix pkg-config and test program build
Tony Theodore <tonyt@logyst.com>
parents: 2467
diff changeset
38 `'$(TARGET)-pkg-config' sox --cflags --libs`
2467
fca08ecb394f new package: sox
Robert Chéramy <robert@cheramy.net>
parents:
diff changeset
39 endef