audio/libsndfile: Update to upstream version 1.2.0, support mp3

PR:		268621
Reported by:	diizzy
Reviewed by:	riggs
This commit is contained in:
Daniel Engberg 2023-01-09 07:48:21 +01:00 committed by Thomas Zander
parent 2685b0f5bf
commit 4128f4c976
No known key found for this signature in database
GPG Key ID: 856D8ED47C7EAFA5
3 changed files with 14 additions and 15 deletions

View File

@ -1,12 +1,8 @@
PORTNAME= libsndfile
DISTVERSION= 1.0.31
PORTREVISION= 2
DISTVERSION= 1.2.0
CATEGORIES= audio
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/
PATCH_SITES= https://github.com/${PORTNAME}/${PORTNAME}/commit/
PATCHFILES= cc342f9e45315f9f3de12ae493bc6b3a2bd0a0b1.patch:-p1
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Reading and writing files containing sampled sound (like WAV or AIFF)
WWW= http://www.mega-nerd.com/libsndfile/
@ -14,8 +10,8 @@ WWW= http://www.mega-nerd.com/libsndfile/
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cmake cpe localbase pkgconfig python:build,test shebangfix \
tar:bz2
USES= cmake cpe localbase pathfix pkgconfig python:build,test \
shebangfix tar:xz
SHEBANG_FILES= programs/test-sndfile-metadata-set.py \
src/binheader_writef_check.py \
src/create_symbols_file.py
@ -32,21 +28,26 @@ CMAKE_ARGS= -DCMAKE_DISABLE_FIND_PACKAGE_ALSA:BOOL=True \
OPTIONS_DEFINE= DOCS EXTERNAL MANPAGES STATIC TEST
OPTIONS_SUB= yes
OPTIONS_DEFAULT= EXTERNAL
EXTERNAL_DESC= Enable FLAC, Ogg Vorbis, Opus support
EXTERNAL_DESC= Enable FLAC, MP3, Ogg Vorbis, Opus support
TEST_DESC= Build tests (forces static library only)
TEST_IMPLIES= STATIC
EXTERNAL_LIB_DEPENDS= libFLAC.so:audio/flac \
libmp3lame.so:audio/lame \
libmpg123.so:audio/mpg123 \
libogg.so:audio/libogg \
libopus.so:audio/opus \
libvorbis.so:audio/libvorbis
EXTERNAL_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_mp3lame:BOOL=True \
-DCMAKE_DISABLE_FIND_PACKAGE_Mpg123:BOOL=True \
MANPAGES_CMAKE_BOOL= INSTALL_MANPAGES
STATIC_CMAKE_OFF= -DBUILD_SHARED_LIBS:BOOL=ON
TEST_CMAKE_BOOL= BUILD_TESTING
.include <bsd.port.options.mk>
# Disables external libs except mp3, as this is handled
# differently in the cmake files
.if ! ${PORT_OPTIONS:MEXTERNAL}
EXTRA_PATCHES= ${FILESDIR}/extrapatch-cmake_SndFileChecks.cmake-disableexternallibs
.endif

View File

@ -1,5 +1,3 @@
TIMESTAMP = 1632130804
SHA256 (libsndfile-1.0.31.tar.bz2) = a8cfb1c09ea6e90eff4ca87322d4168cdbe5035cb48717b40bf77e751cc02163
SIZE (libsndfile-1.0.31.tar.bz2) = 875335
SHA256 (cc342f9e45315f9f3de12ae493bc6b3a2bd0a0b1.patch) = 51607b67698d0427ef03488c1486e40a0da61e91f6404fa876c1776b197b9c44
SIZE (cc342f9e45315f9f3de12ae493bc6b3a2bd0a0b1.patch) = 793
TIMESTAMP = 1672007310
SHA256 (libsndfile-1.2.0.tar.xz) = 0e30e7072f83dc84863e2e55f299175c7e04a5902ae79cfb99d4249ee8f6d60a
SIZE (libsndfile-1.2.0.tar.xz) = 730268

View File

@ -17,7 +17,7 @@ lib/cmake/SndFile/SndFileTargets.cmake
%%STATIC%%lib/libsndfile.a
%%NO_STATIC%%lib/libsndfile.so
%%NO_STATIC%%lib/libsndfile.so.1
%%NO_STATIC%%lib/libsndfile.so.1.0.31
%%NO_STATIC%%lib/libsndfile.so.1.0.35
libdata/pkgconfig/sndfile.pc
%%MANPAGES%%share/man/man1/sndfile-cmp.1.gz
%%MANPAGES%%share/man/man1/sndfile-concat.1.gz