You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
732B

  1. RACK_DIR ?= ../..
  2. SLUG = Fundamental
  3. VERSION = 0.6.0
  4. FLAGS += -Idep/include
  5. SOURCES += $(wildcard src/*.cpp)
  6. DISTRIBUTABLES += $(wildcard LICENSE*) res
  7. libsamplerate = dep/lib/libsamplerate.a
  8. OBJECTS += $(libsamplerate)
  9. include $(RACK_DIR)/plugin.mk
  10. # Dependencies
  11. $(shell mkdir -p dep)
  12. DEP_FLAGS += -fPIC
  13. DEP_LOCAL := dep
  14. DEPS += $(libsamplerate)
  15. include $(RACK_DIR)/dep.mk
  16. $(libsamplerate):
  17. cd dep && $(WGET) http://www.mega-nerd.com/SRC/libsamplerate-0.1.9.tar.gz
  18. cd dep && $(UNTAR) libsamplerate-0.1.9.tar.gz
  19. cd dep/libsamplerate-0.1.9 && patch -p0 < ../../libsamplerate_Makefile.in.diff
  20. cd dep/libsamplerate-0.1.9 && $(CONFIGURE)
  21. cd dep/libsamplerate-0.1.9 && $(MAKE)
  22. cd dep/libsamplerate-0.1.9 && $(MAKE) install