ports/185032: commit references a PR
dfilter service
dfilter at FreeBSD.ORG
Sat Jan 25 23:50:01 UTC 2014
The following reply was made to PR ports/185032; it has been noted by GNATS.
From: dfilter at FreeBSD.ORG (dfilter service)
To: bug-followup at FreeBSD.org
Cc:
Subject: Re: ports/185032: commit references a PR
Date: Sat, 25 Jan 2014 23:45:25 +0000 (UTC)
Author: rakuco
Date: Sat Jan 25 23:45:17 2014
New Revision: 341140
URL: http://svnweb.freebsd.org/changeset/ports/341140
QAT: https://qat.redports.org/buildarchive/r341140/
Log:
MFH: r341132
- Fix the build with clang and 10+'s ld(1).
On the clang side, there's a non-void function missing a return statement
and some wrong QString-to-char* casts that had to be fixed.
On the linker side, r253839 made our ld stricter, so we had to add some
shared libraries that we use since they are not being pulled in indirectly
anymore.
Based on a patch by Jan Henrik Sylvester <me at janh.de> [1].
- Set LICENSE
- Support staging.
- Remove LATEST_LINK, it is deprecated.
- Use the new OPTIONS helpers for conditional RUN_DEPENDS.
PR: ports/185032 [1]
Submitted by: Jan Henrik Sylvester <me at janh.de> [1]
Approved by: maintainer timeout (37 days)
Approved by: portmgr (antoine)
Added:
branches/2014Q1/multimedia/k9copy-kde4/files/patch-src_mpeg2_kdecmpeg2.cpp
- copied unchanged from r341132, head/multimedia/k9copy-kde4/files/patch-src_mpeg2_kdecmpeg2.cpp
Modified:
branches/2014Q1/multimedia/k9copy-kde4/Makefile
branches/2014Q1/multimedia/k9copy-kde4/files/patch-CMakeLists.txt
branches/2014Q1/multimedia/k9copy-kde4/files/patch-src-xine-k9xineplayer.cpp
Directory Properties:
branches/2014Q1/ (props changed)
Modified: branches/2014Q1/multimedia/k9copy-kde4/Makefile
==============================================================================
--- branches/2014Q1/multimedia/k9copy-kde4/Makefile Sat Jan 25 23:44:40 2014 (r341139)
+++ branches/2014Q1/multimedia/k9copy-kde4/Makefile Sat Jan 25 23:45:17 2014 (r341140)
@@ -11,6 +11,8 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-Sou
MAINTAINER= egoliveira at gmail.com
COMMENT= DVD-9 to DVD-5 shrinking application for KDE
+LICENSE= GPLv2
+
LIB_DEPENDS= libxine.so:${PORTSDIR}/multimedia/libxine \
libmpeg2.so:${PORTSDIR}/multimedia/libmpeg2 \
libavcodec0.so:${PORTSDIR}/multimedia/ffmpeg0
@@ -19,8 +21,6 @@ USES= cmake gettext
USE_KDE4= kdeprefix kdelibs automoc4
USE_QT4= moc_build qmake_build rcc_build uic_build
-LATEST_LINK= ${PORTNAME}-kde4
-
CFLAGS= -I${LOCALBASE}/include/ffmpeg0
CPPFLAGS= -I${LOCALBASE}/include/ffmpeg0
CXXFLAGS= -I${LOCALBASE}/include/ffmpeg0
@@ -30,20 +30,9 @@ MENCODER_DESC= MEncoder support
MPLAYER_DESC= MPlayer support
DVDAUTHOR_DESC= DVD Author support
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MMENCODER}
-RUN_DEPENDS+= mencoder:${PORTSDIR}/multimedia/mencoder
-.endif
-
-.if ${PORT_OPTIONS:MMPLAYER}
-RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
-.endif
-
-.if ${PORT_OPTIONS:MDVDAUTHOR}
-RUN_DEPENDS+= dvdauthor:${PORTSDIR}/multimedia/dvdauthor
-.endif
+MENCODER_RUN_DEPENDS= mencoder:${PORTSDIR}/multimedia/mencoder
+MPLAYER_RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer
+DVDAUTHOR_RUN_DEPENDS= dvdauthor:${PORTSDIR}/multimedia/dvdauthor
post-patch:
@${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' ${WRKSRC}/cmake/*.cmake
Modified: branches/2014Q1/multimedia/k9copy-kde4/files/patch-CMakeLists.txt
==============================================================================
--- branches/2014Q1/multimedia/k9copy-kde4/files/patch-CMakeLists.txt Sat Jan 25 23:44:40 2014 (r341139)
+++ branches/2014Q1/multimedia/k9copy-kde4/files/patch-CMakeLists.txt Sat Jan 25 23:45:17 2014 (r341140)
@@ -29,10 +29,10 @@
kde4_add_executable(k9xineplayer ${k9xineplayer_SRCS})
-target_link_libraries(k9copy k9copylib ${KDE4_KDEUI_LIBS} ${KDE4_KDE3SUPPORT_LIBS} -lphonon )
-+target_link_libraries(k9copy k9copylib ${KDE4_KDEUI_LIBS} ${KDE4_KDE3SUPPORT_LIBS} ${PHONON_LIBRARY} )
++target_link_libraries(k9copy k9copylib ${KDE4_KDEUI_LIBS} ${KDE4_KDE3SUPPORT_LIBS} ${KDE4_SOLID_LIBS} ${PHONON_LIBRARY} )
target_link_libraries(k9play k9copylib ${KDE4_KDEUI_LIBS} ${KDE4_KDE3SUPPORT_LIBS} )
-target_link_libraries(k9xineplayer ${KDE4_KDEUI_LIBS} ${KDE4_KDE3SUPPORT_LIBS} -lxine )
-+target_link_libraries(k9xineplayer ${KDE4_KDEUI_LIBS} ${KDE4_KDE3SUPPORT_LIBS} ${XINE_LIBRARY} )
++target_link_libraries(k9xineplayer ${KDE4_KDEUI_LIBS} ${KDE4_KDE3SUPPORT_LIBS} ${XINE_LIBRARY} ${X11_LIBRARIES} )
install(TARGETS k9copy DESTINATION ${BIN_INSTALL_DIR} )
Modified: branches/2014Q1/multimedia/k9copy-kde4/files/patch-src-xine-k9xineplayer.cpp
==============================================================================
--- branches/2014Q1/multimedia/k9copy-kde4/files/patch-src-xine-k9xineplayer.cpp Sat Jan 25 23:44:40 2014 (r341139)
+++ branches/2014Q1/multimedia/k9copy-kde4/files/patch-src-xine-k9xineplayer.cpp Sat Jan 25 23:45:17 2014 (r341140)
@@ -1,6 +1,15 @@
---- src/xine/k9xineplayer.cpp.orig
-+++ src/xine/k9xineplayer.cpp
-@@ -260,8 +260,10 @@ void k9xinePlayer::init(WId _wid) {
+--- src/xine/k9xineplayer.cpp.orig 2009-12-06 10:13:37.000000000 +0000
++++ src/xine/k9xineplayer.cpp 2013-12-06 15:34:35.000000000 +0000
+@@ -251,7 +251,7 @@
+
+ if ((vo_port = xine_open_video_driver(xine,
+ m_vo.toAscii(), XINE_VISUAL_TYPE_X11, (void *) &vis)) == NULL) {
+- printf("I'm unable to initialize '%s' video driver. Giving up.\n", m_vo.toAscii());
++ printf("I'm unable to initialize '%s' video driver. Giving up.\n", m_vo.toAscii().constData());
+ return ;
+ }
+
+@@ -260,8 +260,10 @@
event_queue = xine_event_new_queue(stream);
xine_event_create_listener_thread(event_queue, event_listener, this);
@@ -13,7 +22,16 @@
m_execute=true;
}
-@@ -284,7 +286,8 @@ void k9xinePlayer::quit() {
+@@ -270,7 +272,7 @@
+ running=false;
+ m_title="";
+ if ((!xine_open(stream, m_mrl.toUtf8())) || (!xine_play(stream, 0, 0))) {
+- printf("Unable to open mrl '%s'\n", m_mrl.toUtf8());
++ printf("Unable to open mrl '%s'\n", m_mrl.toUtf8().constData());
+ return ;
+ }
+ QTimer::singleShot (500, this, SLOT (updatePosition ()));
+@@ -284,7 +286,8 @@
void k9xinePlayer::update() {
if (stream && !running ) {
if (m_mutex.tryLock()) {
Copied: branches/2014Q1/multimedia/k9copy-kde4/files/patch-src_mpeg2_kdecmpeg2.cpp (from r341132, head/multimedia/k9copy-kde4/files/patch-src_mpeg2_kdecmpeg2.cpp)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ branches/2014Q1/multimedia/k9copy-kde4/files/patch-src_mpeg2_kdecmpeg2.cpp Sat Jan 25 23:45:17 2014 (r341140, copy of r341132, head/multimedia/k9copy-kde4/files/patch-src_mpeg2_kdecmpeg2.cpp)
@@ -0,0 +1,10 @@
+--- src/mpeg2/kdecmpeg2.cpp.orig 2009-12-06 10:13:36.000000000 +0000
++++ src/mpeg2/kdecmpeg2.cpp 2013-12-06 15:00:15.000000000 +0000
+@@ -286,6 +286,7 @@
+ }
+ }
+ }
++ return 0;
+ }
+
+ void kDecMPEG2::sync() {
_______________________________________________
svn-ports-all at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe at freebsd.org"
More information about the freebsd-ports-bugs
mailing list