2467
|
1 # This file is part of mingw-cross-env. |
|
2 # See doc/index.html for further information. |
|
3 |
|
4 # sox |
|
5 PKG := sox |
|
6 $(PKG)_IGNORE := |
|
7 $(PKG)_VERSION := 14.3.2 |
|
8 $(PKG)_CHECKSUM := ad462114ff47b094078f18148bc9e29e31b42b92 |
|
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
|
10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz |
|
11 $(PKG)_WEBSITE := http://sox.sourceforge.net/ |
|
12 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE) |
|
13 $(PKG)_DEPS := gcc libmad lame vorbis ffmpeg flac |
|
14 |
|
15 define $(PKG)_UPDATE |
|
16 wget -q -O- 'http://sourceforge.net/projects/sox/files/sox/' | \ |
|
17 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ |
|
18 head -1 |
|
19 endef |
|
20 |
|
21 define $(PKG)_BUILD |
|
22 # wine confuses the cross-compiling detection, so set it explicitly |
|
23 $(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure' |
|
24 cd '$(1)' && ./configure \ |
|
25 --host='$(TARGET)' \ |
|
26 --prefix='$(PREFIX)/$(TARGET)' \ |
|
27 --disable-shared |
|
28 |
|
29 $(MAKE) -C '$(1)' -j '$(JOBS)' |
|
30 $(MAKE) -C '$(1)' -j 1 install |
|
31 |
|
32 '$(1)/libtool' --tag=CC --mode=link '$(TARGET)-gcc' -all-static \ |
|
33 -W -Wall -Werror -ansi -pedantic \ |
|
34 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-sox.exe' \ |
|
35 -lsox |
|
36 endef |