Skip to content

Commit

Permalink
MFH: r408848
Browse files Browse the repository at this point in the history
Fix dependencies: x265, opus, twolame, fribidi

x265 was not correctly detected due to link attempt to libdl.
Also avidemux now automatically detects the presence of opus,
twolame and fribidi during configure and builds additional
plugins for them.
This changeset introduces new OPTIONS FRIBIDI OPUS TWOLAME
(all non-default) and fixes plugins pkg-plist.
Bump PORTREVISION for avidemux-*

PR:		206945
Submitted by:	mi
Reviewed by:	riggs
Approved by:	ports-secteam (feld)
  • Loading branch information
ephemeralriggs committed Feb 14, 2016
1 parent 2d9fcae commit a5fef02
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
3 changes: 3 additions & 0 deletions multimedia/avidemux-plugins/pkg-plist
Expand Up @@ -2,6 +2,7 @@ lib/ADM_plugins6/audioDecoder/libADM_ad_Mad.so
lib/ADM_plugins6/audioDecoder/libADM_ad_a52.so
lib/ADM_plugins6/audioDecoder/libADM_ad_dca.so
lib/ADM_plugins6/audioDecoder/libADM_ad_lav.so
%%OPUS%%lib/ADM_plugins6/audioDecoder/libADM_ad_opus.so
lib/ADM_plugins6/audioDecoder/libADM_ad_ulaw.so
lib/ADM_plugins6/audioDecoder/libADM_ad_ms_adpcm.so
lib/ADM_plugins6/audioDecoder/libADM_ad_ima_adpcm.so
Expand All @@ -12,6 +13,7 @@ lib/ADM_plugins6/audioEncoders/libADM_ae_lav_ac3.so
lib/ADM_plugins6/audioEncoders/libADM_ae_lav_mp2.so
lib/ADM_plugins6/audioEncoders/libADM_ae_lav_aac.so
lib/ADM_plugins6/audioEncoders/libADM_ae_pcm.so
%%TWOLAME%%lib/ADM_plugins6/audioEncoders/libADM_ae_twolame.so
lib/ADM_plugins6/videoEncoders/libADM_ve_yv12.so
lib/ADM_plugins6/videoEncoders/libADM_ve_png.so
lib/ADM_plugins6/videoEncoders/libADM_ve_jpeg.so
Expand All @@ -37,6 +39,7 @@ lib/ADM_plugins6/videoFilters/libADM_vf_gauss.so
lib/ADM_plugins6/videoFilters/libADM_vf_median.so
lib/ADM_plugins6/videoFilters/libADM_vf_sharpen.so
lib/ADM_plugins6/videoFilters/libADM_vf_separateField.so
%%FRIBIDI%%%%FREETYPE%%lib/ADM_plugins6/videoFilters/libADM_vf_ssa.so
lib/ADM_plugins6/videoFilters/libADM_vf_mergeField.so
lib/ADM_plugins6/videoFilters/libADM_vf_FluxSmooth.so
lib/ADM_plugins6/videoFilters/libADM_hf_hflip.so
Expand Down
11 changes: 10 additions & 1 deletion multimedia/avidemux/Makefile.common
@@ -1,5 +1,6 @@
# $FreeBSD$

PORTREVISION?= 1
AVIDEMUX_VERSION= 2.6.11
MASTER_SITES= \
SF/avidemux/avidemux/${PORTVERSION}
Expand Down Expand Up @@ -33,12 +34,20 @@ CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin

OPTIONS_DEFINE= QT4 CLI FREETYPE FONTCONFIG OSS ESOUND JACK \
PULSEAUDIO XVIDEO FAAC \
PULSEAUDIO XVIDEO FAAC FRIBIDI OPUS TWOLAME \
FAAD X264 X265 VPX XVID SDL AMR VORBIS NLS LAME VAAPI VDPAU
OPTIONS_DEFAULT= QT4 FREETYPE FONTCONFIG OSS XVIDEO VPX XVID \
SDL FAAD VORBIS
OPTIONS_SUB= yes
CLI_DESC= Build CLI tool

FRIBIDI_CMAKE_OFF= -DFRIDIBI:BOOL=OFF
FRIBIDI_LIB_DEPENDS= libfribidi.so:${PORTSDIR}/converters/fribidi
OPUS_CMAKE_OFF= -DOPUS:BOOL=OFF
OPUS_LIB_DEPENDS= libopus.so:${PORTSDIR}/audio/opus
TWOLAME_CMAKE_OFF= -DTWOLAME:BOOL=OFF
TWOLAME_LIB_DEPENDS= libtwolame.so:${PORTSDIR}/audio/twolame

.if !defined(PACKAGE_BUILDING)
OPTIONS_DEFAULT+= LAME FAAC AMR X264
.endif
Expand Down
12 changes: 12 additions & 0 deletions multimedia/avidemux/files/patch-cmake_admCheckX265.cmake
@@ -0,0 +1,12 @@
--- cmake/admCheckX265.cmake.orig 2016-01-29 08:47:25 UTC
+++ cmake/admCheckX265.cmake
@@ -19,9 +19,6 @@ MACRO(checkX265)
MESSAGE("WARNING: x265 core version is too old. At least version 9 is required.")
SET(X265_FOUND 0)
ELSE (x265_version LESS 9)
- IF(NOT WIN32)
- SET(DL dl)
- ENDIF(NOT WIN32)
FIND_HEADER_AND_LIB(X265 x265.h x265 x265_encoder_open_${x265_version} ${DL})
ENDIF (x265_version LESS 9)
ELSE (_X265_FOUND AND _X265_CONFIG_FOUND)

0 comments on commit a5fef02

Please sign in to comment.