forked from sox_ng/sox_ng
Since MXE updated LAME from 3.100 to 3.101, it fails to detect libmp3lame; it works at MXE commit a8c8e78 (just before LAME was updated from 3.100 to 3.101).
69 lines
2.2 KiB
Makefile
69 lines
2.2 KiB
Makefile
# This file is part of MXE. See LICENSE.md for licensing information.
|
|
|
|
PKG := sox_ng
|
|
$(PKG)_WEBSITE := https://codeberg.org/sox_ng/sox_ng
|
|
$(PKG)_DESCR := SoX
|
|
$(PKG)_IGNORE :=
|
|
$(PKG)_VERSION := 14.8.1
|
|
$(PKG)_CHECKSUM := 1dedd9ad574abc576bbda06743867fb778accf98a1eacde1a42913acbf072448
|
|
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
|
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
|
|
$(PKG)_URL := https://codeberg.org/sox_ng/$(PKG)/releases/download/$($(PKG)_SUBDIR)/$($(PKG)_FILE)
|
|
$(PKG)_DEPS := cc fftw file flac lame libid3tag libltdl libmad libpng \
|
|
libsndfile opencore-amr opusfile speex speexdsp twolame \
|
|
vorbis wavpack
|
|
|
|
define $(PKG)_UPDATE
|
|
echo 'TODO: write update script for $(PKG).' >&2
|
|
echo $($(PKG)_VERSION)
|
|
endef
|
|
|
|
define $(PKG)_BUILD
|
|
# set pkg-config cflags and libs
|
|
$(SED) -i 's,^\(Cflags:.*\),\1 -fopenmp,' '$(1)/sox_ng.pc.in'
|
|
$(SED) -i '/Libs.private/d' '$(1)/sox_ng.pc.in'
|
|
echo Libs.private: @MAGIC_LIBS@ \
|
|
`grep sox_ng_LDADD '$(1)/src/optional-fmts.am' | \
|
|
$(SED) 's, sox_ng_LDADD += ,,g' | tr -d '\n'` @LIBS@ >>'$(1)/sox_ng.pc.in'
|
|
|
|
cd '$(1)' && ./configure \
|
|
--host='$(TARGET)' \
|
|
--prefix='$(PREFIX)/$(TARGET)' \
|
|
--build="`config.guess`" \
|
|
--disable-shared \
|
|
--enable-static \
|
|
--disable-debug \
|
|
--with-libltdl \
|
|
--with-magic \
|
|
--with-png \
|
|
--with-ladspa \
|
|
--with-amrwb \
|
|
--with-amrnb \
|
|
--with-ffmpeg \
|
|
--with-fftw \
|
|
--with-flac \
|
|
--with-oggvorbis \
|
|
--with-opus \
|
|
--with-sndfile \
|
|
--with-wavpack \
|
|
--with-mad \
|
|
--without-id3tag \
|
|
--with-lame \
|
|
--with-twolame \
|
|
--with-waveaudio \
|
|
--without-alsa \
|
|
--without-ao \
|
|
--without-coreaudio \
|
|
--without-oss \
|
|
--without-pulseaudio \
|
|
--without-sndio \
|
|
--without-sunaudio \
|
|
CFLAGS='-fno-pie -O2' \
|
|
LDFLAGS='-fno-pie' \
|
|
LIBS='-lshlwapi -lgnurx'
|
|
|
|
$(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= EXTRA_PROGRAMS=
|
|
$(MAKE) -C '$(1)' -j 1 install
|
|
endef
|
|
|
|
$(PKG)_BUILD_SHARED =
|