view src/portaudio.mk @ 5775:0c4e2d53981c

gcc: Update to version 10.3.0 * src/build-gcc.mk, src/native-gcc.mk: Update version and checksum.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 05 Jun 2021 16:47:23 +0200
parents ab8e5b32691d
children 117991e4ce12
line wrap: on
line source

# This file is part of MXE.
# See index.html for further information.

PKG             := portaudio
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 190700_20210406
$(PKG)_CHECKSUM := b7e9b9c53d993f6d110487ef56a3d4529d21b2f1
$(PKG)_SUBDIR   := portaudio
$(PKG)_FILE     := pa_stable_v$($(PKG)_VERSION).tgz
$(PKG)_URL      := http://files.portaudio.com/archives/$($(PKG)_FILE)
$(PKG)_DEPS     := 

$(PKG)_SYSDEP_OPTIONS :=
ifeq ($(MXE_SYSTEM),mingw)
  $(PKG)_SYSDEP_OPTIONS += \
        --with-host_os=mingw \
        --with-winapi=wmme,directx \
        --with-dxdir=$(HOST_PREFIX)
endif

define $(PKG)_UPDATE
    $(WGET) -q -O- 'http://files.portaudio.com/download.html' | \
    $(SED) -n 's,.*pa_stable_v\([0-9][^>]*\)\.tgz.*,\1,p' | \
    head -1
endef

define $(PKG)_BUILD
    cd '$(1)' && autoconf
    # libtool looks for a pei* format when linking shared libs
    # apparently there's no real difference b/w pei and pe
    # so we set the libtool cache variables
    # https://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/libpei.h?annotate=1.25&cvsroot=src
    cd '$(1)' && ./configure \
        $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
        --prefix='$(HOST_PREFIX)' \
        $(ENABLE_SHARED_OR_STATIC) \
        $($(PKG)_SYSDEP_OPTIONS) \
        ac_cv_path_AR=$(MXE_AR) \
        $(if $(filter $(BUILD_SHARED),yes),\
            lt_cv_deplibs_check_method='file_magic file format (pe-i386|pe-x86-64)' \
            lt_cv_file_magic_cmd='$$OBJDUMP -f')
    $(MAKE) -C '$(1)' -j '$(JOBS)' $(if $(filter $(BUILD_STATIC),yes),SHARED_FLAGS=) TESTS=
    $(MAKE) -C '$(1)' -j 1 install

endef