diff options
author | Tony Theodore <tonyt@logyst.com> | 2014-02-21 15:54:47 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2014-02-21 16:19:03 (GMT) |
commit | 0bbc1d18659f48e988680642802e1128850a0a84 (patch) | |
tree | 4469eda9bd80883de91762e5508e9665cf7cb11f /src/vamp-plugin-sdk.mk | |
parent | 2c7e51cb8317813b29837ce7213dd2b4af9256dc (diff) | |
download | mxe-0bbc1d18659f48e988680642802e1128850a0a84.zip mxe-0bbc1d18659f48e988680642802e1128850a0a84.tar.gz mxe-0bbc1d18659f48e988680642802e1128850a0a84.tar.bz2 |
package vamp-plugin-sdk: remove static patch and build using Makefile.mingw32
Diffstat (limited to 'src/vamp-plugin-sdk.mk')
-rw-r--r-- | src/vamp-plugin-sdk.mk | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/vamp-plugin-sdk.mk b/src/vamp-plugin-sdk.mk index b228712..089a0e5 100644 --- a/src/vamp-plugin-sdk.mk +++ b/src/vamp-plugin-sdk.mk @@ -11,13 +11,25 @@ $(PKG)_URL := http://code.soundsoftware.ac.uk/attachments/download/690/$(PK $(PKG)_DEPS := gcc zlib define $(PKG)_UPDATE - echo $($(PKG)_VERSION) + echo 'TODO: Updates for package vamp-plugin-sdk need to be written.' >&2; + echo $(vamp-plugin-sdk_VERSION) endef define $(PKG)_BUILD - cd '$(1)' && ./configure \ - --host='$(TARGET)' \ - --disable-shared \ - --prefix='$(PREFIX)/$(TARGET)' - $(MAKE) -C '$(1)' -j 1 install + cd '$(1)' && $(MAKE) -f build/Makefile.mingw32 \ + CXX='$(TARGET)-g++' \ + CC='$(TARGET)-gcc' \ + LD='$(TARGET)-ld' \ + AR='$(TARGET)-ar' \ + RANLIB='$(TARGET)-ranlib' \ + DYNAMIC_LDFLAGS='-static-libgcc -shared -Wl,-Bsymbolic' \ + sdk$(if $(BUILD_STATIC),static) + + for f in vamp vamp-sdk vamp-hostsdk; do \ + $(SED) 's,%PREFIX%,$(PREFIX)/$(TARGET),' "$(1)/pkgconfig/$$f.pc.in" \ + > "$(PREFIX)/$(TARGET)/lib/pkgconfig/$$f.pc"; \ + done + + cp -rv '$(1)/vamp' '$(1)/vamp-hostsdk' '$(1)/vamp-sdk' '$(PREFIX)/$(TARGET)/include/' + cp -rv '$(1)/'libvamp-*.$(LIB_SUFFIX) '$(PREFIX)/$(TARGET)/lib' endef |