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.
mxe/src/libbs2b.mk

29 lines
1.2 KiB

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := libbs2b
$(PKG)_WEBSITE := https://bs2b.sourceforge.io/
$(PKG)_DESCR := Bauer Stereophonic-to-Binaural library
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.1.0
$(PKG)_CHECKSUM := 4799974becdeeedf0db00115bc63f60ea3fe4b25f1dfdb6903505839a720e46f
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/bs2b/libbs2b/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := cc
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://sourceforge.net/projects/bs2b/files/libbs2b/' | \
$(SED) -n 's,.*<a href="/projects/bs2b/files/libbs2b/\([0-9][^"]*\)/".*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && autoreconf -fi
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
ac_cv_func_malloc_0_nonnull=yes
# The ac_cv_func_malloc_0_nonnull=yes is needed because the configure
# check tries to run a program.
$(MAKE) -C '$(1)' -j '$(JOBS)' LDFLAGS='-no-undefined' $(MXE_DISABLE_CRUFT)
$(MAKE) -C '$(1)' -j 1 install LDFLAGS='-no-undefined' $(MXE_DISABLE_CRUFT)
endef