1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

audio/cuberok: link using ffmpeg0

- Link using ffmpeg0

Approved by:	portmgr (bapt, implicit)
This commit is contained in:
William Grzybowski 2013-10-08 22:39:08 +00:00
parent 42459d44e4
commit 0dc807f50a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=329841
2 changed files with 22 additions and 11 deletions

View File

@ -12,10 +12,10 @@ COMMENT= A music player and a collection manager based on Qt4
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*

View File

@ -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