Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Oct 2013 22:39:08 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r329841 - in head/audio/cuberok: . files
Message-ID:  <201310082239.r98Md8YQ013893@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Tue Oct  8 22:39:08 2013
New Revision: 329841
URL: http://svnweb.freebsd.org/changeset/ports/329841

Log:
  audio/cuberok: link using ffmpeg0
  
  - Link using ffmpeg0
  
  Approved by:	portmgr (bapt, implicit)

Modified:
  head/audio/cuberok/Makefile
  head/audio/cuberok/files/patch-src-player_ffmpeg.h

Modified: head/audio/cuberok/Makefile
==============================================================================
--- head/audio/cuberok/Makefile	Tue Oct  8 22:36:41 2013	(r329840)
+++ head/audio/cuberok/Makefile	Tue Oct  8 22:39:08 2013	(r329841)
@@ -12,10 +12,10 @@ COMMENT=	A music player and a collection
 
 BUILD_DEPENDS=	audiere-config:${PORTSDIR}/audio/audiere \
 		${LOCALBASE}/lib/libdumb.a:${PORTSDIR}/audio/dumb
-LIB_DEPENDS=	avcodec:${PORTSDIR}/multimedia/ffmpeg \
-		avformat:${PORTSDIR}/multimedia/ffmpeg \
-		avutil:${PORTSDIR}/multimedia/ffmpeg \
-		tag:${PORTSDIR}/audio/taglib
+LIB_DEPENDS=	libavcodec0.so:${PORTSDIR}/multimedia/ffmpeg0 \
+		libavformat0.so:${PORTSDIR}/multimedia/ffmpeg0 \
+		libavutil0.so:${PORTSDIR}/multimedia/ffmpeg0 \
+		libtag.so:${PORTSDIR}/audio/taglib
 
 USE_LDCONFIG=	yes
 USE_QT4=	gui xml qmake_build uic_build moc_build rcc_build \
@@ -27,6 +27,14 @@ QMAKEFLAGS+=	"CONFIG+=player_phonon"
 MAKE_ENV+=	INSTALL_ROOT=${PREFIX}
 QMAKEPRO=	Cuberok.pro
 
+post-patch:
+	@${REINPLACE_CMD} \
+		-e 's,libavcodec,libavcodec0,g' \
+		-e 's,libavutil,libavutil0,g' \
+		-e 's,libavformat,libavformat0,g' \
+		${WRKSRC}/Cuberok.pro \
+		${WRKSRC}/plugins/player_ffmpeg/player_ffmpeg.pro
+
 do-configure:
 	cd ${WRKSRC} && ${REINPLACE_CMD} -e 's/lib64/lib/g' \
 		plugins/plugins_path-x86*

Modified: head/audio/cuberok/files/patch-src-player_ffmpeg.h
==============================================================================
--- head/audio/cuberok/files/patch-src-player_ffmpeg.h	Tue Oct  8 22:36:41 2013	(r329840)
+++ head/audio/cuberok/files/patch-src-player_ffmpeg.h	Tue Oct  8 22:39:08 2013	(r329841)
@@ -1,13 +1,16 @@
---- src/player_ffmpeg.h.orig	2009-07-10 14:14:03.000000000 +0800
-+++ src/player_ffmpeg.h	2010-05-10 21:49:51.000000000 +0800
-@@ -27,8 +27,8 @@
+--- src/player_ffmpeg.h.orig	2009-07-10 03:14:03.000000000 -0300
++++ src/player_ffmpeg.h	2013-10-08 19:36:06.326157022 -0300
+@@ -23,13 +23,8 @@
+ #include <QtCore>
+ #include "player.h"
+ extern "C" {
+-#ifdef WIN32
  #include <libavcodec/avcodec.h>
  #include <libavformat/avformat.h>
- #else
+-#else
 -#include <avcodec.h>
 -#include <avformat.h>
-+#include <ffmpeg/avcodec.h>
-+#include <ffmpeg/avformat.h>
- #endif
+-#endif
  }
  
+ class PlayThread : public QThread



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