summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2017-11-04 21:40:15 +1100
committerDamien Zammit <damien@zamaudio.com>2017-11-04 21:40:15 +1100
commitf670b7236bc96262c64052f6f7c559da214556fb (patch)
tree228b4c6e2b02be6a9d5cb9f35840f58e5c6b9aef
parent07036920483c331674acc862c611947405b810d4 (diff)
ZamVerb: Tweak deps for windows builds
-rw-r--r--.travis.yml9
-rw-r--r--Makefile6
-rw-r--r--lib/zita-convolver-3.1.0/zita-convolver.h7
-rw-r--r--plugins/Makefile.mk2
4 files changed, 12 insertions, 12 deletions
diff --git a/.travis.yml b/.travis.yml
index f088cff..dd67c14 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,12 +15,13 @@ before_install:
- sudo apt-get update -qq -y
- wget http://zamaudio.com/mbox2/apple-macports-fftw-3_3.3.5-1_all.deb
- wget http://zamaudio.com/mbox2/apple-macports-libsamplerate_0.1.9-1_all.deb
+- wget http://zamaudio.com/mbox2/mingw64-x-fftw-3_3.3.3-3_all.deb
+- wget http://zamaudio.com/mbox2/mingw64-x-libsamplerate_0.1.9-1_all.deb
- wget http://ppa.launchpad.net/kxstudio-team/builds/ubuntu/pool/main/a/apple-macports-liblo/apple-macports-liblo_0.26-1_all.deb
- wget http://ppa.launchpad.net/kxstudio-team/builds/ubuntu/pool/main/a/apple-x86-gcc/apple-x86-gcc_4.2.1~5646-1kxstudio2_amd64.deb
- wget http://ppa.launchpad.net/kxstudio-team/builds/ubuntu/pool/main/a/apple-x86-odcctools/apple-x86-odcctools_758.159-0kxstudio2_amd64.deb
- wget -c https://launchpad.net/~flosoft/+archive/ubuntu/cross-apple/+files/apple-uni-sdk-10.5_20110407-0.flosoft1_amd64.deb --no-check-certificate
- wget http://ppa.launchpad.net/kxstudio-team/builds/ubuntu/pool/main/a/apple-x86-setup/apple-x86-setup_2_amd64.deb
-- wget https://launchpad.net/~kxstudio-team/+archive/ubuntu/builds/+files/mingw64-x-libsamplerate_0.1.8-1kxstudio1_all.deb
- sudo dpkg -i apple-x86-odcctools_758.159-0kxstudio2_amd64.deb
- sudo dpkg -i apple-x86-gcc_4.2.1~5646-1kxstudio2_amd64.deb
- sudo dpkg -i apple-uni-sdk-10.5_20110407-0.flosoft1_amd64.deb
@@ -32,8 +33,8 @@ before_install:
- sudo apt-get install mingw64-x-binutils -y
- sudo apt-get install mingw64-x-pkgconfig -y
- sudo apt-get install mingw64-x-liblo -y
-- sudo apt-get install mingw64-x-fftw3 -y
-- sudo dpkg -i mingw64-x-libsamplerate_0.1.8-1kxstudio1_all.deb
+- sudo dpkg -i mingw64-fftw-3_3.3.3-3_all.deb
+- sudo dpkg -i mingw64-x-libsamplerate_0.1.9-1_all.deb
- sudo apt-get install g++-4.8 -y
- sudo apt-get install binutils -y
- sudo apt-get install pkg-config -y
@@ -78,6 +79,7 @@ script:
- export CXXFLAGS="-m32 -I/opt/mingw64/x86_64-w64-mingw32/include -I/opt/mingw64/include"
- export CFLAGS="-m32 -I/opt/mingw64/x86_64-w64-mingw32/include -I/opt/mingw64/include"
- export LDFLAGS=-m32
+- export PKG_CONFIG_PATH=/opt/mingw64/lib32/pkgconfig
- export CC=x86_64-w64-mingw32-gcc
- export CXX=x86_64-w64-mingw32-g++
- export AR=x86_64-w64-mingw32-ar
@@ -90,6 +92,7 @@ script:
- export CXXFLAGS="-I/opt/mingw64/x86_64-w64-mingw32/include -I/opt/mingw64/include"
- export CFLAGS="-I/opt/mingw64/x86_64-w64-mingw32/include -I/opt/mingw64/include"
- export LDFLAGS=
+- export PKG_CONFIG_PATH=/opt/mingw64/lib/pkgconfig
- make clean
- touch dpf/utils/lv2_ttl_generator.exe
- chmod a+x dpf/utils/lv2_ttl_generator.exe
diff --git a/Makefile b/Makefile
index 9ad91e0..fb34ada 100644
--- a/Makefile
+++ b/Makefile
@@ -5,11 +5,7 @@ BINDIR ?= bin
NAME = zam-plugins
VERSION = $(shell cat .version)
-PLUGINS=ZamComp ZamCompX2 ZaMultiComp ZamTube ZamEQ2 ZamAutoSat ZamGEQ31 ZaMultiCompX2 ZamGate ZamGateX2 ZamHeadX2 ZaMaximX2 ZamDelay ZamDynamicEQ ZamPhono
-
-ifneq ($(WIN32),true)
-PLUGINS += ZamVerb
-endif
+PLUGINS=ZamComp ZamCompX2 ZaMultiComp ZamTube ZamEQ2 ZamAutoSat ZamGEQ31 ZaMultiCompX2 ZamGate ZamGateX2 ZamHeadX2 ZaMaximX2 ZamDelay ZamDynamicEQ ZamPhono ZamVerb
include Makefile.mk
diff --git a/lib/zita-convolver-3.1.0/zita-convolver.h b/lib/zita-convolver-3.1.0/zita-convolver.h
index 68662cc..37f4d03 100644
--- a/lib/zita-convolver-3.1.0/zita-convolver.h
+++ b/lib/zita-convolver-3.1.0/zita-convolver.h
@@ -44,11 +44,12 @@ extern int zita_convolver_minor_version (void);
#endif
-#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__GNU__)
+#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__GNU__) || defined(__WIN32__)
// NOTE: __FreeBSD_kernel__ and __GNU__ were added by the Debian maintainers
// (the latter for the HURD version of Debian). Things are reported to work
// with some applications but probably have not been tested in depth.
+// __WIN32__ was added by DZ for MingW
#include <semaphore.h>
@@ -76,8 +77,8 @@ private:
#endif
-// ADDED BY DZ TO MAKE IT COMPILE FOR 10.5
-#ifdef __APPLE__
+// ADDED BY DZ TO MAKE IT COMPILE FOR OSX 10.5 or Windows
+#if defined(__APPLE__) || defined(__WIN32__)
inline int posix_memalign(void **memptr, size_t alignment, size_t size)
{
*memptr = malloc(size);
diff --git a/plugins/Makefile.mk b/plugins/Makefile.mk
index a0bceb0..ad5af58 100644
--- a/plugins/Makefile.mk
+++ b/plugins/Makefile.mk
@@ -27,7 +27,7 @@ LINK_FLAGS += $(shell pkg-config --libs fftw3f samplerate)
LINK_FLAGS += -lpthread
endif
-ifeq ($(MACOS),true)
+ifneq ($(LINUX),true)
LINK_FLAGS += $(shell pkg-config --libs --static fftw3f samplerate)
LINK_FLAGS += -lpthread
endif