From 77479e7fde41bb40e822d611ba93938fbee00348 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 5 Sep 2018 22:59:07 -0400 Subject: [PATCH] Hack to avoid ./configure in libsamplerate --- Makefile | 16 +++----- config.h | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 116 insertions(+), 11 deletions(-) create mode 100644 config.h diff --git a/Makefile b/Makefile index 95fe648..504b74e 100644 --- a/Makefile +++ b/Makefile @@ -4,23 +4,17 @@ VERSION = 0.6.1 FLAGS += -Idep/include SOURCES += $(wildcard src/*.cpp) +SOURCES += $(wildcard libsamplerate-0.1.9/src/*.c) DISTRIBUTABLES += $(wildcard LICENSE*) res -# Static libs -libsamplerate := dep/lib/libsamplerate.a -OBJECTS += $(libsamplerate) - -# Dependencies -DEP_LOCAL := dep +libsamplerate := libsamplerate-0.1.9 DEPS += $(libsamplerate) $(libsamplerate): mkdir -p dep - cd dep && $(WGET) http://www.mega-nerd.com/SRC/libsamplerate-0.1.9.tar.gz - cd dep && $(UNTAR) libsamplerate-0.1.9.tar.gz - cd dep/libsamplerate-0.1.9 && $(CONFIGURE) - cd dep/libsamplerate-0.1.9/src && $(MAKE) - cd dep/libsamplerate-0.1.9/src && $(MAKE) install + $(WGET) "http://www.mega-nerd.com/SRC/libsamplerate-0.1.9.tar.gz" + $(UNTAR) libsamplerate-0.1.9.tar.gz + cp config.h libsamplerate-0.1.9/src/ include $(RACK_DIR)/plugin.mk diff --git a/config.h b/config.h new file mode 100644 index 0000000..cd317a4 --- /dev/null +++ b/config.h @@ -0,0 +1,111 @@ + +/* Set to 1 if the compile is GNU GCC. */ +#define COMPILER_IS_GCC 0 + +/* Target processor clips on negative float to int conversion. */ +#define CPU_CLIPS_NEGATIVE 0 + +/* Target processor clips on positive float to int conversion. */ +#define CPU_CLIPS_POSITIVE 0 + +/* Target processor is big endian. */ +#define CPU_IS_BIG_ENDIAN 0 + +/* Target processor is little endian. */ +#define CPU_IS_LITTLE_ENDIAN 1 + +/* Define to 1 if you have the `calloc' function. */ +#define HAVE_CALLOC 1 + +/* Define to 1 if you have the `ceil' function. */ +#define HAVE_CEIL 1 + +/* Define to 1 if you have the `floor' function. */ +#define HAVE_FLOOR 1 + +/* Define to 1 if you have the `fmod' function. */ +#define HAVE_FMOD 1 + +/* Define to 1 if you have the `free' function. */ +#define HAVE_FREE 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the `m' library (-lm). */ +#define HAVE_LIBM 1 + +/* Define if you have C99's lrint function. */ +#define HAVE_LRINT 1 + +/* Define if you have C99's lrintf function. */ +#define HAVE_LRINTF 1 + +/* Define to 1 if you have the `malloc' function. */ +#define HAVE_MALLOC 1 + +/* Define to 1 if you have the `memcpy' function. */ +#define HAVE_MEMCPY 1 + +/* Define to 1 if you have the `memmove' function. */ +#define HAVE_MEMMOVE 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Set to 1 if you have libsndfile. */ +#define HAVE_SNDFILE 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to the sub-directory where libtool stores uninstalled libraries. */ +#define LT_OBJDIR ".libs/" + +/* Name of package */ +#define PACKAGE "libsamplerate" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "erikd@mega-nerd.com" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "libsamplerate" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "libsamplerate 0.1.9" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "libsamplerate" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "http://www.mega-nerd.com/libsamplerate/" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "0.1.9" + +/* The size of `double', as computed by sizeof. */ +#define SIZEOF_DOUBLE 8 + +/* The size of `float', as computed by sizeof. */ +#define SIZEOF_FLOAT 4 + +/* The size of `int', as computed by sizeof. */ +#define SIZEOF_INT 4 + +/* The size of `long', as computed by sizeof. */ +#define SIZEOF_LONG 8 + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Version number of package */ +#define VERSION "0.1.9"