summaryrefslogtreecommitdiffstats
path: root/src/rubberband.mk
blob: f4c8c3abcc0bbd351ca99fbb56c1c4431c6adbb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# This file is part of MXE. See LICENSE.md for licensing information.

PKG             := rubberband
$(PKG)_WEBSITE  := http://breakfastquay.com/rubberband/
$(PKG)_DESCR    := Rubberband
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 1.8.1
$(PKG)_CHECKSUM := ff0c63b0b5ce41f937a8a3bc560f27918c5fe0b90c6bc1cb70829b86ada82b75
$(PKG)_SUBDIR   := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE     := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL      := http://code.breakfastquay.com/attachments/download/34/$(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_DEPS     := gcc fftw libsamplerate libsndfile pthreads vamp-plugin-sdk

define $(PKG)_UPDATE
    echo 'TODO: Updates for package rubberband need to be written.' >&2;
    echo $(rubberband_VERSION)
endef

define $(PKG)_BUILD
    cd '$(1)' && ./configure \
        $(MXE_CONFIGURE_OPTS)
    $(MAKE) -j $(JOBS) -C '$(1)' -j '$(JOBS)' \
        AR='$(TARGET)-ar' \
        RANLIB='$(TARGET)-ranlib' \
        DYNAMIC_EXTENSION='.dll' \
        DYNAMIC_FULL_VERSION= \
        DYNAMIC_ABI_VERSION= \
        lib \
        $(if $(BUILD_STATIC),static,dynamic vamp)

    $(INSTALL) -d '$(PREFIX)/$(TARGET)/include/$(PKG)'
    $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/vamp'
    $(INSTALL) -m644 '$(1)/$(PKG)/'*.h '$(PREFIX)/$(TARGET)/include/$(PKG)'
    $(INSTALL) -m644 '$(1)/lib/'*.$(LIB_SUFFIX) '$(PREFIX)/$(TARGET)/$(if $(BUILD_STATIC),lib,bin)'
    $(INSTALL) -m644 '$(1)/vamp/vamp-rubberband.cat' '$(PREFIX)/$(TARGET)/lib/vamp'
    $(SED) 's,%PREFIX%,$(PREFIX)/$(TARGET),' '$(1)/$(PKG).pc.in' \
        > '$(PREFIX)/$(TARGET)/lib/pkgconfig/$(PKG).pc'
endef