- Really respect FFMPEG_SUFFIX and thus fix build [1]
- Switch to out-of-source build Reported by: miwi [1]
This commit is contained in:
parent
f3b931dde5
commit
80b5857dd6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=315158
3 changed files with 13 additions and 3 deletions
|
@ -21,11 +21,20 @@ USE_GNOME= libxml2
|
|||
USE_PKGCONFIG= build
|
||||
USE_FAM= yes
|
||||
USE_LDCONFIG= yes
|
||||
USES= cmake
|
||||
USES= cmake:outsource
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
# supported versions: ffmpeg, ffmpeg1, ffmpeg-devel
|
||||
# corresponding FFMPEG_SUFFIX: '', '1', '-devel'
|
||||
FFMPEG_SUFFIX?= #
|
||||
CMAKE_ARGS+= -DFFMPEG_SUFFIX:STRING="${FFMPEG_SUFFIX}"
|
||||
|
||||
.if !empty(FFMPEG_SUFFIX)
|
||||
# Reorder include directories to allow build with multiple ffmpeg installed.
|
||||
# This patch must NOT be used, if ffmpeg headers are installed
|
||||
# directly to ${LOCALBASE}/include
|
||||
EXTRA_PATCHES+= ${FILESDIR}/extrapatch-libstreamanalyzer__plugins__endplugins__CMakeLists.txt
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${MKDIR} ${WRKSRC}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# Reorder include directories to fix build when multiple ffmpeg installed
|
||||
# Reorder include directories to allow build with multiple ffmpeg installed.
|
||||
# This patch must NOT be used, if FFMPEG_INCLUDE_DIRS == ${LOCALBASE}/include
|
||||
#
|
||||
--- ./libstreamanalyzer/plugins/endplugins/CMakeLists.txt.orig 2011-12-07 20:28:33.000000000 +0000
|
||||
+++ ./libstreamanalyzer/plugins/endplugins/CMakeLists.txt 2013-03-06 00:58:08.824363575 +0000
|
|
@ -23,7 +23,7 @@
|
|||
if (NOT FFMPEG_LIBRARIES)
|
||||
|
||||
+ # Look for ffmpeg1 by default. Use empty suffix for ffmpeg-0.7
|
||||
+ if (NOT FFMPEG_SUFFIX)
|
||||
+ if (NOT DEFINED FFMPEG_SUFFIX)
|
||||
+ set(FFMPEG_SUFFIX 1)
|
||||
+ endif ()
|
||||
+
|
||||
|
|
Loading…
Reference in a new issue