1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

audio/essentia: Move to FFmpeg 4

Fails to build with FFmpeg 6

PR:		261302
Reported by:	antoine (via exp-run)
Approved by:	portmgr (blanket, build fix)
Sponsored by:	Blinkinblox
This commit is contained in:
Daniel Engberg 2023-04-27 11:15:52 +02:00
parent 7e01d5dc02
commit de595bdfcc
2 changed files with 16 additions and 1 deletions

View File

@ -13,13 +13,17 @@ LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/COPYING.txt
BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:math/fftw3
LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \
LIB_DEPENDS= libavcodec.so.58:multimedia/ffmpeg4 \
libchromaprint.so:audio/chromaprint \
libfftw3f.so:math/fftw3-float \
libsamplerate.so:audio/libsamplerate \
libtag.so:audio/taglib \
libyaml.so:textproc/libyaml
CFLAGS+= -I${LOCALBASE}/ffmpeg4/include
CONFIGURE_ENV+= PKG_CONFIG_PATH="${LOCALBASE}/ffmpeg4/libdata/pkgconfig"
MAKE_ENV+= PKG_CONFIG_PATH="${LOCALBASE}/ffmpeg4/libdata/pkgconfig"
USES= compiler:c++11-lib eigen:3 pkgconfig waf
USE_GITHUB= yes

View File

@ -0,0 +1,11 @@
--- wscript.orig 2022-11-03 19:50:02 UTC
+++ wscript
@@ -148,6 +148,8 @@ def configure(ctx):
elif ctx.options.MODE == 'release':
print ('→ Building in release mode')
ctx.env.CXXFLAGS += ['-O2'] # '-march=native' ] # '-msse3', '-mfpmath=sse' ]
+ ctx.env.LINKFLAGS += ['-L/usr/local/ffmpeg4/lib']
+ ctx.env.LDFLAGS += ['-L/usr/local/ffmpeg4/lib']
elif ctx.options.MODE == 'default':
pass