Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Feb 2016 07:43:40 +0000 (UTC)
From:      Thomas Zander <riggs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r408848 - in head/multimedia: avidemux avidemux-plugins avidemux/files
Message-ID:  <201602140743.u1E7hexc049211@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: riggs
Date: Sun Feb 14 07:43:40 2016
New Revision: 408848
URL: https://svnweb.freebsd.org/changeset/ports/408848

Log:
  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
  MFH:		2016Q1

Added:
  head/multimedia/avidemux/files/patch-cmake_admCheckX265.cmake   (contents, props changed)
Modified:
  head/multimedia/avidemux-plugins/pkg-plist
  head/multimedia/avidemux/Makefile.common

Modified: head/multimedia/avidemux-plugins/pkg-plist
==============================================================================
--- head/multimedia/avidemux-plugins/pkg-plist	Sun Feb 14 06:18:09 2016	(r408847)
+++ head/multimedia/avidemux-plugins/pkg-plist	Sun Feb 14 07:43:40 2016	(r408848)
@@ -2,6 +2,7 @@ lib/ADM_plugins6/audioDecoder/libADM_ad_
 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
@@ -12,6 +13,7 @@ lib/ADM_plugins6/audioEncoders/libADM_ae
 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
@@ -37,6 +39,7 @@ lib/ADM_plugins6/videoFilters/libADM_vf_
 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

Modified: head/multimedia/avidemux/Makefile.common
==============================================================================
--- head/multimedia/avidemux/Makefile.common	Sun Feb 14 06:18:09 2016	(r408847)
+++ head/multimedia/avidemux/Makefile.common	Sun Feb 14 07:43:40 2016	(r408848)
@@ -1,5 +1,6 @@
 # $FreeBSD$
 
+PORTREVISION?=	1
 AVIDEMUX_VERSION=	2.6.11
 MASTER_SITES=	\
 		SF/avidemux/avidemux/${PORTVERSION}
@@ -32,12 +33,20 @@ CONFIGURE_ENV+=	COMPILER_PATH=${LOCALBAS
 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

Added: head/multimedia/avidemux/files/patch-cmake_admCheckX265.cmake
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/avidemux/files/patch-cmake_admCheckX265.cmake	Sun Feb 14 07:43:40 2016	(r408848)
@@ -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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602140743.u1E7hexc049211>