Mercurial > mxe-octave
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 |
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 | 3 |
4 # sox | |
5 PKG := sox | |
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 | 8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz | |
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 | 12 |
13 define $(PKG)_UPDATE | |
14 wget -q -O- 'http://sourceforge.net/projects/sox/files/sox/' | \ | |
15 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ | |
16 head -1 | |
17 endef | |
18 | |
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 | 26 cd '$(1)' && ./configure \ |
27 --host='$(TARGET)' \ | |
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 | 30 --disable-shared |
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 | 33 $(MAKE) -C '$(1)' -j 1 install |
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 | 36 -W -Wall -Werror -ansi -pedantic \ |
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 | 39 endef |