mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +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:
parent
7e01d5dc02
commit
de595bdfcc
@ -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
|
||||
|
11
audio/essentia/files/patch-wscript
Normal file
11
audio/essentia/files/patch-wscript
Normal 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
|
Loading…
Reference in New Issue
Block a user