diff options
author | Tony Theodore <tonyt@logyst.com> | 2012-05-02 11:13:49 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2012-05-02 11:13:49 (GMT) |
commit | 225212c5e1548e4853912db44810e95c825314dd (patch) | |
tree | d1ff850e396962268f84685cf6143396cf7c6432 /src/sox.mk | |
parent | d3aa8cfff80b0450cef2abae4552fa95a77a3e08 (diff) | |
download | mxe-225212c5e1548e4853912db44810e95c825314dd.zip mxe-225212c5e1548e4853912db44810e95c825314dd.tar.gz mxe-225212c5e1548e4853912db44810e95c825314dd.tar.bz2 |
package sox: update and fix pkg-config and test program build
Diffstat (limited to 'src/sox.mk')
-rw-r--r-- | src/sox.mk | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -4,13 +4,11 @@ # sox PKG := sox $(PKG)_IGNORE := -$(PKG)_VERSION := 14.3.2 -$(PKG)_CHECKSUM := ad462114ff47b094078f18148bc9e29e31b42b92 +$(PKG)_CHECKSUM := d809cab382c7a9d015491c69051a9d1c1a1a44f1 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz -$(PKG)_WEBSITE := http://sox.sourceforge.net/ $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE) -$(PKG)_DEPS := gcc libmad lame vorbis ffmpeg flac +$(PKG)_DEPS := gcc ffmpeg flac lame libgomp libmad libsndfile vorbis define $(PKG)_UPDATE wget -q -O- 'http://sourceforge.net/projects/sox/files/sox/' | \ @@ -19,18 +17,23 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - # wine confuses the cross-compiling detection, so set it explicitly - $(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure' + # set pkg-config cflags and libs + $(SED) -i 's,^\(Cflags:.*\),\1 -fopenmp,' '$(1)/sox.pc.in' + $(SED) -i '/Libs.private/d' '$(1)/sox.pc.in' + echo Libs.private: `grep sox_LDADD '$(1)/src/optional-fmts.am' | \ + $(SED) 's, sox_LDADD += ,,g' | tr -d '\n'` >>'$(1)/sox.pc.in' + cd '$(1)' && ./configure \ --host='$(TARGET)' \ --prefix='$(PREFIX)/$(TARGET)' \ + --build="`config.guess`" \ --disable-shared - $(MAKE) -C '$(1)' -j '$(JOBS)' + $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= EXTRA_PROGRAMS= $(MAKE) -C '$(1)' -j 1 install - '$(1)/libtool' --tag=CC --mode=link '$(TARGET)-gcc' -all-static \ + '$(TARGET)-gcc' \ -W -Wall -Werror -ansi -pedantic \ '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-sox.exe' \ - -lsox + `'$(TARGET)-pkg-config' sox --cflags --libs` endef |