Index: head/multimedia/dvbcut/Makefile =================================================================== --- head/multimedia/dvbcut/Makefile (revision 426090) +++ head/multimedia/dvbcut/Makefile (revision 426091) @@ -1,55 +1,60 @@ # Created by: se@FreeBSD.org # $FreeBSD$ PORTNAME= dvbcut -PORTVERSION= 0.6.2.a1 -PORTREVISION= 4 +PORTVERSION= 0.7.0 CATEGORIES= multimedia MAINTAINER= se@FreeBSD.org COMMENT= Qt application for cutting of MPEG PS and MPEG TS streams (DVB) LICENSE= GPLv2 BUILD_DEPENDS= mplayer:multimedia/mplayer \ ffmpeg:multimedia/ffmpeg LIB_DEPENDS= liba52.so:audio/liba52 \ libao.so:audio/libao \ libmad.so:audio/libmad \ libavutil.so:multimedia/ffmpeg RUN_DEPENDS:= ${BUILD_DEPENDS} USE_GITHUB= yes -GH_ACCOUNT= nextghost -GH_PROJECT= dvbcut-qt4 -GH_TAGNAME= 81c31ed +GH_ACCOUNT= bernhardu +GH_PROJECT= dvbcut-deb +GH_TAGNAME= 381549c -USES= desktop-file-utils pkgconfig qmake shared-mime-info -USE_QT4= corelib gui xml linguisttools_build moc_build rcc_build \ - uic_build +USES= qmake:outsource pkgconfig desktop-file-utils shared-mime-info CXXFLAGS+= -I${LOCALBASE}/include \ -I${LOCALBASE}/include/libavcodec \ -I${LOCALBASE}/include/libavformat \ - -I${LOCALBASE}/include/libswscale + -I${LOCALBASE}/include/libswscale \ + -D DVBCUT_VERSION=$(PORTVERSION) -post-configure: - @${REINPLACE_CMD} -e '/CXX.*moc_progress/s/ -o / -O0 -o /' ${WRKSRC}/src/Makefile +QMAKE_SOURCE_PATH=${WRKSRC}/src +QMAKE_ARGS= LRELEASE="${LRELEASE}" +OPTIONS_RADIO= QT +OPTIONS_RADIO_QT= QT4 QT5 +OPTIONS_DEFAULT= QT4 + +QT4_USE= QT4=corelib,gui,xml,qt3support,linguisttools_build,moc_build,rcc_build,uic_build +QT5_USE= QT5=core,gui,widgets,xml,buildtools_build,linguisttools_build GL=gl + post-build: @${SED} -e 's;@prefix@;${PREFIX};' \ < ${WRKSRC}/dvbcut.desktop.in \ > ${WRKSRC}/dvbcut.desktop do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/bin/dvbcut ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKDIR}/.build/dvbcut ${STAGEDIR}${PREFIX}/bin/ ${INSTALL_MAN} ${WRKSRC}/dvbcut.1 ${STAGEDIR}${MANPREFIX}/man/man1/ ${MKDIR} ${STAGEDIR}${PREFIX}/share/applications ${INSTALL_DATA} ${WRKSRC}/dvbcut.desktop ${STAGEDIR}${PREFIX}/share/applications/ ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/dvbcut ${INSTALL_DATA} ${WRKSRC}/dvbcut.svg ${STAGEDIR}${PREFIX}/share/icons/dvbcut/ ${INSTALL_DATA} ${WRKSRC}/icons/* ${STAGEDIR}${PREFIX}/share/icons/dvbcut/ ${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages ${INSTALL_DATA} ${WRKSRC}/dvbcut.xml ${STAGEDIR}${PREFIX}/share/mime/packages/ .include Index: head/multimedia/dvbcut/distinfo =================================================================== --- head/multimedia/dvbcut/distinfo (revision 426090) +++ head/multimedia/dvbcut/distinfo (revision 426091) @@ -1,2 +1,3 @@ -SHA256 (nextghost-dvbcut-qt4-0.6.2.a1-81c31ed_GH0.tar.gz) = 4bc54dfa29bdb1aa54cf0969da60d0372fbdd5f7a5e63a2620fc81596ce4dcf5 -SIZE (nextghost-dvbcut-qt4-0.6.2.a1-81c31ed_GH0.tar.gz) = 1122176 +TIMESTAMP = 1478854634 +SHA256 (bernhardu-dvbcut-deb-0.7.0-381549c_GH0.tar.gz) = 176104ec3edb438161e96b21f04057670c23611f938baac510b6e4fc4a976298 +SIZE (bernhardu-dvbcut-deb-0.7.0-381549c_GH0.tar.gz) = 183544 Index: head/multimedia/dvbcut/files/patch-src.pro =================================================================== --- head/multimedia/dvbcut/files/patch-src.pro (revision 426090) +++ head/multimedia/dvbcut/files/patch-src.pro (nonexistent) @@ -1,20 +0,0 @@ ---- src/src.pro.orig 2013-06-16 09:57:51 UTC -+++ src/src.pro -@@ -12,6 +12,8 @@ QT += xml - system(pkg-config --exists libavcodec) { - message(Building with external FFMPEG) - PKGCONFIG += libavformat libavcodec libavutil -+ QMAKE_CXXFLAGS += -DHAVE_LIB_A52 -+ LIBS += -la52 - - system(pkg-config --exists libswscale) { - message(Building with libswscale support) -@@ -70,7 +72,7 @@ verinfo.commands = ../setversion.sh $$SO - - QMAKE_EXTRA_TARGETS += verinfo - --qtPrepareTool(LRELEASE, lrelease) -+qtPrepareTool(LRELEASE, lrelease-qt4) - - l10n.commands = $$LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT} - l10n.input = TRANSLATIONS Property changes on: head/multimedia/dvbcut/files/patch-src.pro ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/multimedia/dvbcut/files/patch-lavfmuxer.cpp =================================================================== --- head/multimedia/dvbcut/files/patch-lavfmuxer.cpp (revision 426090) +++ head/multimedia/dvbcut/files/patch-lavfmuxer.cpp (nonexistent) @@ -1,13 +0,0 @@ ---- src/lavfmuxer.cpp.orig 2013-06-16 09:57:51 UTC -+++ src/lavfmuxer.cpp -@@ -40,6 +40,10 @@ extern "C" { - #define CODEC_TYPE_AUDIO AVMEDIA_TYPE_AUDIO - #endif - -+#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE -+#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio -+#endif -+ - lavfmuxer::lavfmuxer(const char *format, uint32_t audiostreammask, mpgfile &mpg, const char *filename) - : muxer(), avfc(0), fileopened(false) - { Property changes on: head/multimedia/dvbcut/files/patch-lavfmuxer.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/multimedia/dvbcut/files/patch-avframe.cpp =================================================================== --- head/multimedia/dvbcut/files/patch-avframe.cpp (revision 426090) +++ head/multimedia/dvbcut/files/patch-avframe.cpp (revision 426091) @@ -1,10 +1,11 @@ ---- src/avframe.cpp.orig 2013-06-16 09:57:51 UTC +--- src/avframe.cpp.orig 2016-06-23 12:34:35 UTC +++ src/avframe.cpp -@@ -22,6 +22,7 @@ - #include - #include - #include -+#include - #include "avframe.h" +@@ -52,7 +52,7 @@ avframe::avframe(AVFrame *src, AVCodecCo + tobefreed = (uint8_t *)malloc(avpicture_get_size(ctx->pix_fmt, ctx->width, ctx->height)); - #ifdef HAVE_LIB_SWSCALE + avpicture_fill((AVPicture *)f, +- (u_int8_t*)tobefreed, ++ (uint8_t*)tobefreed, + ctx->pix_fmt,ctx->width,ctx->height); + + av_picture_copy((AVPicture *)f, (const AVPicture *) src, Index: head/multimedia/dvbcut/files/patch-defines.h =================================================================== --- head/multimedia/dvbcut/files/patch-defines.h (revision 426090) +++ head/multimedia/dvbcut/files/patch-defines.h (revision 426091) @@ -1,14 +1,14 @@ ---- src/defines.h.orig 2013-06-16 09:57:51 UTC +--- src/defines.h.orig 2016-06-23 12:34:35 UTC +++ src/defines.h @@ -42,6 +42,11 @@ static inline int videostream(int s=0) #endif } +#ifdef __FreeBSD__ +#define __bswap_32(x) __bswap32(x) +#define __bswap_16(x) __bswap16(x) +#endif + #if __BYTE_ORDER == __LITTLE_ENDIAN #define mbo32(x) \ ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ Index: head/multimedia/dvbcut/files/patch-dvbcut.cpp =================================================================== --- head/multimedia/dvbcut/files/patch-dvbcut.cpp (nonexistent) +++ head/multimedia/dvbcut/files/patch-dvbcut.cpp (revision 426091) @@ -0,0 +1,11 @@ +--- src/dvbcut.cpp.orig 2016-06-23 12:34:35 UTC ++++ src/dvbcut.cpp +@@ -1232,7 +1232,7 @@ void dvbcut::playPlay() + arguments << "-geometry" << QString().sprintf("%dx%d+0+0",int(ui->imagedisplay->width()),int(ui->imagedisplay->height())); + + if (currentaudiotrack>=0 && currentaudiotrackgetaudiostreams()) { +- arguments << "-aid" << QString().sprintf("0x%x",int(currentaudiotrack)); ++ arguments << "-aid" << QString().sprintf("0x%x", int(mpg->mplayeraudioid(currentaudiotrack))); + } + + // for now, pass all filenames from the current one up to the last one Property changes on: head/multimedia/dvbcut/files/patch-dvbcut.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/dvbcut/files/patch-dvbcut.h =================================================================== --- head/multimedia/dvbcut/files/patch-dvbcut.h (nonexistent) +++ head/multimedia/dvbcut/files/patch-dvbcut.h (revision 426091) @@ -0,0 +1,19 @@ +--- src/dvbcut.h.orig 2016-06-23 12:34:35 UTC ++++ src/dvbcut.h +@@ -22,11 +22,14 @@ + #define _DVBCUT_DVBCUT_H + + #if !defined(DVBCUT_VERSION) +-#define DVBCUT_VERSION "git" ++#define DVBCUT_VERSION git + #endif + ++#define STRINGIFY(x) STRINGIFY1(x) ++#define STRINGIFY1(x) #x ++ + #ifndef VERSION_STRING +-#define VERSION_STRING "dvbcut-" DVBCUT_VERSION ++#define VERSION_STRING "dvbcut-" STRINGIFY(DVBCUT_VERSION) + #endif + + #include Property changes on: head/multimedia/dvbcut/files/patch-dvbcut.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/dvbcut/files/patch-index.h =================================================================== --- head/multimedia/dvbcut/files/patch-index.h (revision 426090) +++ head/multimedia/dvbcut/files/patch-index.h (revision 426091) @@ -1,10 +1,12 @@ ---- src/index.h.orig 2013-06-16 09:57:51 UTC +--- src/index.h.orig 2016-06-23 12:34:35 UTC +++ src/index.h -@@ -22,7 +22,6 @@ +@@ -22,7 +22,9 @@ #define _DVBCUT_INDEX_H #include --#include ++#ifndef __FreeBSD__ + #include ++#endif #include #include #include "types.h" Index: head/multimedia/dvbcut/files/patch-main.cpp =================================================================== --- head/multimedia/dvbcut/files/patch-main.cpp (nonexistent) +++ head/multimedia/dvbcut/files/patch-main.cpp (revision 426091) @@ -0,0 +1,11 @@ +--- src/main.cpp.orig 2016-06-23 12:34:35 UTC ++++ src/main.cpp +@@ -52,7 +52,7 @@ static char *argv0; + void + usage_exit(int rv=1) { + fprintf(stderr, +- "Usage ("VERSION_STRING"):\n" ++ "Usage (" VERSION_STRING "):\n" + " %s -generateidx [-idx ] [ ...]\n" + " %s -batch [ OPTIONS ] | ...\n\n" + "OPTIONS: -cut 4:3|16:9|TS|TS2|, -exp ,\n" Property changes on: head/multimedia/dvbcut/files/patch-main.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/dvbcut/pkg-plist =================================================================== --- head/multimedia/dvbcut/pkg-plist (revision 426090) +++ head/multimedia/dvbcut/pkg-plist (revision 426091) @@ -1,13 +1,15 @@ +@comment %%QT_BINDIR%%/dvbcut bin/dvbcut share/applications/dvbcut.desktop share/mime/packages/dvbcut.xml +share/icons/dvbcut/icons.qrc share/icons/dvbcut/bookmark.png share/icons/dvbcut/chapter.svgz share/icons/dvbcut/dvbcut.svg share/icons/dvbcut/play.svgz share/icons/dvbcut/stop.png share/icons/dvbcut/play.png share/icons/dvbcut/bookmark.svgz share/icons/dvbcut/chapter.png share/icons/dvbcut/stop.svgz man/man1/dvbcut.1.gz