Date: Mon, 17 Mar 2008 15:20:04 GMT From: Yar Odin <yarodin@gmail.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/121724: [UPDATE] Update multimedia/avidemux2 to 2.4.1 Message-ID: <200803171520.m2HFK4Sw079158@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/121724; it has been noted by GNATS. From: Yar Odin <yarodin@gmail.com> To: bug-followup@freebsd.org, yarodin@gmail.com Cc: Subject: Re: ports/121724: [UPDATE] Update multimedia/avidemux2 to 2.4.1 Date: Mon, 17 Mar 2008 20:15:58 +0500 --Boundary-00=_uso3HwUBPD4Pwkd Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline New patch for port: 1) Fixed stalled depency - spider monkey 2) don't fix port Makefile header (maintainer change) --Boundary-00=_uso3HwUBPD4Pwkd Content-Type: text/plain; charset="us-ascii"; name="patch-avidemux2.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="patch-avidemux2.txt" =2D-- avidemux2.orig/Makefile 2008-03-13 19:28:26.000000000 +0500 +++ avidemux2/Makefile 2008-03-17 20:03:30.000000000 +0500 @@ -6,124 +6,296 @@ # =20 PORTNAME=3D avidemux2 =2DPORTVERSION=3D 2.3.0 =2DPORTREVISION=3D 5 +PORTVERSION=3D 2.4.1 CATEGORIES=3D multimedia MASTER_SITES=3D http://fixounet.free.fr/avidemux/ \ =2D ${MASTER_SITE_BERLIOS} + ${MASTER_SITE_BERLIOS} \ + ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR=3D avidemux DISTNAME=3D avidemux_${PORTVERSION} =20 MAINTAINER=3D amistry@am-productions.biz COMMENT=3D Simple GUI based video editor =20 =2DPATCH_DEPENDS=3D ${ACLOCAL}:${PORTSDIR}/devel/automake19 =2DBUILD_DEPENDS=3D spidermonkey>=3D1.5_3:${PORTSDIR}/lang/spidermonkey +BUILD_DEPENDS=3D cmake:${PORTSDIR}/devel/cmake LIB_DEPENDS=3D mp3lame:${PORTSDIR}/audio/lame \ mad:${PORTSDIR}/audio/libmad \ + a52:${PORTSDIR}/audio/liba52 \ + png:${PORTSDIR}/graphics/png/ \ js:${PORTSDIR}/lang/spidermonkey \ =2D xml2:${PORTSDIR}/textproc/libxml2 + xml2:${PORTSDIR}/textproc/libxml2 \ + execinfo:${PORTSDIR}/devel/libexecinfo + +CMAKE_ARGS=3D -DCMAKE_BUILD_TYPE:STRING=3DRelease \ + -DCMAKE_THREAD_LIBS:STRING=3D"${PTHREAD_LIBS}" \ + -DCMAKE_USE_PTHREADS:BOOL=3DON \ + -DCMAKE_C_COMPILER:STRING=3D'${CC}' \ + -DCMAKE_CXX_COMPILER:STRING=3D${CXX} \ + -DCMAKE_CXX_FLAGS:STRING=3D"${CXXFLAGS} \ + -I${LOCALBASE}/include -I/usr/include -I${X11BASE}/include \ + -L${LOCALBASE}/lib -L/usr/include -L${X11BASE}/lib ${PTHREAD_LIBS}" \ + -DCMAKE_C_FLAGS:STRING=3D"${CFLAGS} \ + -I${LOCALBASE}/include -I/usr/include -I${X11BASE}/include \ + -L${LOCALBASE}/lib -L/usr/include -L${X11BASE}/lib ${PTHREAD_LIBS}" + +USE_QT_VER=3D 4 +QT_COMPONENTS=3D =20 =2DUSE_AUTOTOOLS=3D automake:19:env autoconf:261:env libtool:15 aclocal:19:= env =2DUSE_GETTEXT=3D yes =2DUSE_X_PREFIX=3D yes =2DUSE_GNOME=3D gnomeprefix gnomehack gtk20 =2DWANT_SDL=3D yes =2DCONFIGURE_ENV=3D CPPFLAGS=3D"-I${LOCALBASE}/include -I${X11BASE}/include= \ =2D -I${LOCALBASE}/include/a52dec" \ =2D LIBFLAGS=3D"-L${LOCALBASE}/lib -L${X11BASE}/lib" \ =2D LDFLAGS=3D"-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}" \ =2D PTHREAD_LIBS=3D${PTHREAD_LIBS} \ =2D PTHREAD_CFLAGS=3D${PTHREAD_CFLAGS} =2DCONFIGURE_ARGS=3D --disable-warnings \ =2D --with-jsapi-include=3D${LOCALBASE}/include USE_GMAKE=3D yes =2DDESKTOP_ENTRIES=3D Avidemux "Simple video editor" "" "avidemux2" "" false =2DOPTIONS=3D OPTIMIZED_CFLAGS "build with -O3 for lavcodec" off \ =2D FAAC "FAAC (mpeg4/aac encoder)" off \ =2D FAAD "FAAD (mpeg4/aac decoder)" off \ =2D X264 "H.264 encoding" off \ =2D A52 "A52 audio" off \ =2D XVID "Xvid video" off \ =2D SDL "SDL audio/video framework" off \ =2D VORBIS "OGG/Vorbis audio support" off +USE_ICONV=3D yes +WANT_GNOME=3D yes +WANT_SDL=3D yes + +CONFLICTS=3D avidemux2-2.[123567890].* + +OPTIONS=3D GTK "GTK+ GUI" on \ + QT "QT4 GUI (Experimental)" off \ + OSS "OSS audio device" on \ + ARTS "ARTS audio device" on \ + ESD "ESOUND audio device" on \ + JACK "JACK audio device" on \ + FREETYPE "TrueType font rendering engine" on \ + FONTCONFIG "Font configuration API for X" on \ + NLS "Native languages support" on \ + SAMPLERATE "Sample Rate Converter for audio" on \ + XVIDEO "X Video Extension library" on \ + OPTIMIZED_CFLAGS "build with -O3 for lavcodec" on \ + FAAC "FAAC (mpeg4/aac encoder)" on \ + FAAD "FAAD (mpeg4/aac decoder)" on \ + X264 "H.264 encoding" on \ + XVID "Xvid video" on \ + SDL "SDL audio/video framework" on \ + DCA "DTS Coherent Acoustics decoder" on \ + AMRNB "3GPP AMR Speech Codec" on \ + VORBIS "OGG/Vorbis audio support" on =20 .include <bsd.port.pre.mk> =20 =2D#.if ${HAVE_SDL:Msdl}!=3D"" =2D#WITH_SDL=3D yes =2D#.endif +APP_NAME_CLI=3D avidemux2_cli =20 =2D.if exists(${LOCALBASE}/lib/libvorbis.so) =2DWITH_VORBIS=3D yes =2D.endif +# We haven't ALSA (Never) & Aften (Yet) on FreeBSD +CMAKE_ARGS+=3D -DNO_ALSA=3D1 -DNO_Aften=3D1 =20 =2D.if exists(${LOCALBASE}/lib/libx264.so) =2DWITH_X264=3D yes +.if defined(WITHOUT_GTK) +CMAKE_ARGS+=3D -DNO_GTK=3D1 +.else +USE_XLIB=3D yes +USE_GNOME+=3D gnomeprefix gnomehack gtk20 +APP_NAME_GTK=3D avidemux2_gtk .endif =20 =2D.if exists(${LOCALBASE}/lib/libfaac.so) =2DWITH_FAAC=3D yes +.if defined(WITHOUT_QT) +CMAKE_ARGS+=3D -DNO_QT=3D1 +.else +USE_XLIB=3D yes +BUILD_DEPENDS+=3D moc:${PORTSDIR}/devel/qt4-moc \ + qmake:${PORTSDIR}/devel/qmake4 \ + rcc:${PORTSDIR}/devel/qt4-rcc \ + uic:${PORTSDIR}/devel/qt4-uic +LIB_DEPENDS+=3D QtCore:${PORTSDIR}/devel/qt4-corelib +QT_COMPONENTS=3D gui moc qmake rcc uic +QT_PREFIX=3D ${LOCALBASE} +MOC=3D ${QT_PREFIX}/bin/moc4 +UIC=3D ${QT_PREFIX}/bin/uic4 +QMAKE=3D ${QT_PREFIX}/bin/qmake-qt4 +QMAKESPEC=3D ${QT_PREFIX}/share/qt4/mkspecs/freebsd-g++ +ENV+=3D QMAKESPEC=3D"${QMAKESPEC}" +APP_NAME_QT=3D avidemux2_qt4 .endif =20 =2D.if exists(${LOCALBASE}/lib/libfaad.so) =2DWITH_FAAD=3D yes +.if defined(WITHOUT_OSS) +CMAKE_ARGS+=3D -DNO_OSS=3D1 .endif =20 =2D.if exists(${LOCALBASE}/lib/liba52.so) =2DWITH_A52=3D yes +.if defined(WITHOUT_ARTS) +CMAKE_ARGS+=3D -DNO_ARTS=3D1 .endif =20 =2D.if exists(${LOCALBASE}/lib/libxvidcore.so) =2DWITH_XVID=3D yes +.if defined(WITHOUT_ESD) +CMAKE_ARGS+=3D -DNO_Esd=3D1 .endif =20 =2D.if defined(WITH_XVID) =2DLIB_DEPENDS+=3D xvidcore:${PORTSDIR}/multimedia/xvid =2DCONFIGURE_ARGS+=3D --with-xvid-as-decoder +.if defined(WITHOUT_JACK) +CMAKE_ARGS+=3D -DNO_Jack=3D1 .endif =20 =2D.if defined(WITH_A52) =2DLIB_DEPENDS+=3D a52:${PORTSDIR}/audio/liba52 +.if defined(WITHOUT_FREETYPE) +CMAKE_ARGS+=3D -DNO_FREETYPE=3D1 +.else +LIB_DEPENDS+=3D freetype:${PORTSDIR}/print/freetype2 .endif =20 =2D.if defined(WITH_SDL) =2DUSE_SDL+=3D sdl +.if defined(WITHOUT_FONTCONFIG) +CMAKE_ARGS+=3D -DNO_FontConfig=3D1 +.else +LIB_DEPENDS+=3D fontconfig:${PORTSDIR}/x11-fonts/fontconfig .endif =20 =2D.if defined(WITH_FAAC) +.if defined(WITHOUT_NLS) +CMAKE_ARGS+=3D -DNO_NLS=3D1 +PLIST_SUB+=3D NLS=3D"@comment " +.else +USE_GETTEXT=3D yes +PLIST_SUB+=3D NLS=3D"" +PLIST_FILES+=3D %%NLS%%share/locale/pt_BR/LC_MESSAGES/avidemux.mo \ + %%NLS%%share/locale/es/LC_MESSAGES/avidemux.mo \ + %%NLS%%share/locale/fr/LC_MESSAGES/avidemux.mo \ + %%NLS%%share/locale/it/LC_MESSAGES/avidemux.mo \ + %%NLS%%share/locale/sr@latin/LC_MESSAGES/avidemux.mo \ + %%NLS%%share/locale/ca/LC_MESSAGES/avidemux.mo \ + %%NLS%%share/locale/sr/LC_MESSAGES/avidemux.mo \ + %%NLS%%share/locale/tr/LC_MESSAGES/avidemux.mo \ + %%NLS%%share/locale/ru/LC_MESSAGES/avidemux.mo \ + %%NLS%%share/locale/cs/LC_MESSAGES/avidemux.mo \ + %%NLS%%share/locale/de/LC_MESSAGES/avidemux.mo \ + %%NLS%%share/locale/ja/LC_MESSAGES/avidemux.mo \ + %%NLS%%share/locale/el/LC_MESSAGES/avidemux.mo \ + %%NLS%%share/locale/klingon/LC_MESSAGES/avidemux.mo \ + "@unexec ${RMDIR} %D/share/locale/klingon/LC_MESSAGES 2>/dev/null || ${T= RUE}" \ + "@unexec ${RMDIR} %D/share/locale/klingon 2>/dev/null || ${TRUE}" +.endif + +.if defined(WITHOUT_SAMPLERATE) +CMAKE_ARGS+=3D -DNO_libsamplerate=3D1 +.else +LIB_DEPENDS+=3D samplerate:${PORTSDIR}/audio/libsamplerate +.endif + +.if defined(WITHOUT_XVIDEO) +CMAKE_ARGS+=3D -DNO_Xvideo=3D1 +.else +LIB_DEPENDS+=3D Xv:${PORTSDIR}/x11/libXv +.endif + +.if defined(WITHOUT_FAAC) +CMAKE_ARGS+=3D -DNO_FAAC=3D1 +.else LIB_DEPENDS+=3D faac:${PORTSDIR}/audio/faac .endif =20 =2D.if defined(WITH_FAAD) +.if defined(WITHOUT_FAAD) +CMAKE_ARGS+=3D -DNO_FAAD=3D1 -DNO_NeAAC=3D1 +.else LIB_DEPENDS+=3D faad:${PORTSDIR}/audio/faad .endif =20 =2D.if defined(WITH_X264) +.if defined(WITHOUT_X264) +CMAKE_ARGS+=3D -DNO_x264=3D1 +.else LIB_DEPENDS+=3D x264:${PORTSDIR}/multimedia/x264 .endif =20 =2D.if defined(WITH_VORBIS) +.if defined(WITHOUT_XVID) +CMAKE_ARGS+=3D -DNO_Xvid=3D1 +.else +LIB_DEPENDS+=3D xvidcore:${PORTSDIR}/multimedia/xvid +.endif + +.if defined(WITHOUT_SDL) +CMAKE_ARGS+=3D -DNO_SDL=3D1 +.else +USE_SDL+=3D sdl +.endif + +.if defined(WITHOUT_VORBIS) +CMAKE_ARGS+=3D -DNO_Vorbis=3D1 +.else LIB_DEPENDS+=3D vorbis:${PORTSDIR}/audio/libvorbis .endif =20 +.if defined(WITHOUT_DCA) +CMAKE_ARGS+=3D -DNO_libdca=3D1 +.else +LIB_DEPENDS+=3D dca:${PORTSDIR}/multimedia/libdca +.endif + +.if defined(WITHOUT_AMRNB) +CMAKE_ARGS+=3D -DNO_AMRNB=3D1 +.else +LIB_DEPENDS+=3D dca:${PORTSDIR}/multimedia/libdca +.endif + post-extract: @${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//' \ =2D ${WRKSRC}/avidemux/ADM_mplex/ADM_mplexout.cpp + ${WRKSRC}/avidemux/ADM_libraries/ADM_mplex/ADM_mplexout.cpp =20 =2Dpre-build: =2D @${FIND} ${WRKSRC} -type f -print0 | \ =2D ${XARGS} -x -n 10 -0 ${TOUCH} +do-configure: + @cd ${WRKSRC} && ${SETENV} ${ENV} ${LOCALBASE}/bin/cmake ${CMAKE_ARGS} . =20 post-patch: @${TOUCH} ${WRKSRC}/* =2D @${REINPLACE_CMD} 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure $= {WRKSRC}/*/*/Makefile =2D @${REINPLACE_CMD} 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/avidemux/ADM_la= vcodec/*.c =2D @${REINPLACE_CMD} 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/avidemux/ADM_la= vcodec/*/*.c =2D @${REINPLACE_CMD} 's|ADM_LOCALEDIR=3D$${datadir}/locale|ADM_LOCALEDIR= =3D${PREFIX}/share/locale|' ${WRKSRC}/configure =2D @${REINPLACE_CMD} "s|-O2|${CFLAGS}|" ${WRKSRC}/configure + @${REINPLACE_CMD} 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/*/*/Makefile + @${REINPLACE_CMD} 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/avidemux/ADM_libr= aries/ADM_lavcodec/*.c + @${REINPLACE_CMD} 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/avidemux/ADM_libr= aries/ADM_lavcodec/*/*.c + @${CP} ${PORTSDIR}/multimedia/avidemux2/files/execinfo.cpp ${WRKSRC}/cmak= e_compile_check/ .if !defined(WITH_OPTIMIZED_CFLAGS) =2D @${REINPLACE_CMD} "s|-O3|${CFLAGS}|" ${WRKSRC}/avidemux/ADM_lavcodec/Ma= kefile.am + @${REINPLACE_CMD} "s|-O3|${CFLAGS}|" ${WRKSRC}/avidemux/ADM_libraries/ADM= _lavcodec/Makefile.am +.endif + +post-install: + + @if ${TEST} -f ${WRKSRC}/avidemux/avidemux2_cli ; then \ + ${ECHO_CMD} "bin/avidemux2_cli" >> ${TMPPLIST}; \ + fi + +.if (defined(WITH_GTK)) || (defined(WITH_QT)) + @${MKDIR} ${LOCALBASE}/share/avidemux2 + @${CP} ${WRKSRC}/avidemux_icon.png ${LOCALBASE}/share/avidemux2/avidemux2= =2Epng +.endif + +.if (defined(WITH_GTK) && defined(WITH_QT)) + @if ${TEST} -f ${WRKSRC}/avidemux/avidemux2_gtk ; then \ + ${CP} ${PORTSDIR}/multimedia/avidemux2/files/avidemux.desktop ${LOCALBASE= }/share/applications/avidemux.desktop; \ + ${REINPLACE_CMD} -i '' -e 's|%%PREFIX%%|${PREFIX}|g' ${LOCALBASE}/share/a= pplications/avidemux.desktop; \ + ${REINPLACE_CMD} -i '' -e 's|%%APP_NAME%%|${APP_NAME_GTK}|g' ${LOCALBASE}= /share/applications/avidemux.desktop; \ + ${REINPLACE_CMD} -i '' -e 's|%%API%%|-gtk|g' ${LOCALBASE}/share/applicati= ons/avidemux.desktop; \ + ${ECHO_CMD} "share/applications/avidemux.desktop" >> ${TMPPLIST}; \ + ${ECHO_CMD} "bin/avidemux2_gtk" >> ${TMPPLIST}; \ + else \ + ${REINPLACE_CMD} -i '' -e 's|-qt||g' ${LOCALBASE}/share/applications/avid= emuxqt.desktop; \ + fi + @if ${TEST} -f ${WRKSRC}/avidemux/avidemux2_qt4; then \ + ${CP} ${PORTSDIR}/multimedia/avidemux2/files/avidemux.desktop ${LOCALBASE= }/share/applications/avidemuxqt.desktop; \ + ${REINPLACE_CMD} -i '' -e 's|%%PREFIX%%|${PREFIX}|g' ${LOCALBASE}/share/a= pplications/avidemuxqt.desktop; \ + ${REINPLACE_CMD} -i '' -e 's|%%APP_NAME%%|${APP_NAME_QT}|g' ${LOCALBASE}/= share/applications/avidemuxqt.desktop; \ + ${REINPLACE_CMD} -i '' -e 's|%%API%%|-qt|g' ${LOCALBASE}/share/applicatio= ns/avidemuxqt.desktop; \ + ${ECHO_CMD} "share/applications/avidemuxqt.desktop" >> ${TMPPLIST}; \ + ${ECHO_CMD} "bin/avidemux2_qt4" >> ${TMPPLIST}; \ + else \ + ${REINPLACE_CMD} -i '' -e 's|-gtk||g' ${LOCALBASE}/share/applications/avi= demux.desktop; \ + fi +.endif + +.if (defined(WITH_GTK) && defined(WITHOUT_QT)) + @if ${TEST} -f ${WRKSRC}/avidemux/avidemux2_gtk ; then \ + ${ECHO_CMD} "bin/avidemux2_gtk" >> ${TMPPLIST}; \ + ${ECHO_CMD} "share/applications/avidemux.desktop" >> ${TMPPLIST}; \ + ${CP} ${PORTSDIR}/multimedia/avidemux2/files/avidemux.desktop ${LOCALBASE= }/share/applications/avidemux.desktop; \ + ${REINPLACE_CMD} -i '' -e 's|%%PREFIX%%|${PREFIX}|g' ${LOCALBASE}/share/a= pplications/avidemux.desktop; \ + ${REINPLACE_CMD} -i '' -e 's|%%APP_NAME%%|${APP_NAME_GTK}|g' ${LOCALBASE}= /share/applications/avidemux.desktop; \ + ${REINPLACE_CMD} -i '' -e 's|%%API%%||g' ${LOCALBASE}/share/applications/= avidemux.desktop; \ + fi +.endif + +.if (defined(WITH_QT) && defined(WITHOUT_GTK)) + @if ${TEST} -f ${WRKSRC}/avidemux/avidemux2_qt4 ; then \ + ${ECHO_CMD} "bin/avidemux2_qt4" >> ${TMPPLIST}; \ + ${ECHO_CMD} "share/applications/avidemux.desktop" >> ${TMPPLIST}; \ + ${CP} ${PORTSDIR}/multimedia/avidemux2/files/avidemux.desktop ${LOCALBASE= }/share/applications/avidemux.desktop; \ + ${REINPLACE_CMD} -i '' -e 's|%%PREFIX%%|${PREFIX}|g' ${LOCALBASE}/share/a= pplications/avidemux.desktop; \ + ${REINPLACE_CMD} -i '' -e 's|%%APP_NAME%%|${APP_NAME_QT}|g' ${LOCALBASE}/= share/applications/avidemux.desktop; \ + ${REINPLACE_CMD} -i '' -e 's|%%API%%||g' ${LOCALBASE}/share/applications/= avidemux.desktop; \ + fi +.endif + +.if (defined(WITH_GTK)) || (defined(WITH_QT)) + @if ${TEST} -f ${WRKSRC}/avidemux/avidemux2_gtk || ${TEST} -f ${WRKSRC}/a= videmux/avidemux2_qt4; then \ + ${ECHO_CMD} "share/avidemux2/avidemux2.png" >> ${TMPPLIST}; \ + ${ECHO_CMD} "@unexec ${RMDIR} %D/share/avidemux2 2>/dev/null || ${TRUE}" = >>${TMPPLIST}; \ + ${ECHO_CMD} "@exec %D/bin/update-desktop-database 2>/dev/null || ${TRUE}"= >>${TMPPLIST}; \ + ${ECHO_CMD} "@unexec %D/bin/update-desktop-database 2>/dev/null || ${TRUE= }" >>${TMPPLIST}; \ + update-desktop-database; \ + fi .endif =20 .include <bsd.port.post.mk> =2D-- avidemux2.orig/distinfo 2006-12-02 21:52:54.000000000 +0500 +++ avidemux2/distinfo 2008-03-09 18:39:08.000000000 +0500 @@ -1,3 +1,3 @@ =2DMD5 (avidemux_2.3.0.tar.gz) =3D 14c58c14fc9757d36e4d72498431da42 =2DSHA256 (avidemux_2.3.0.tar.gz) =3D ef083ab24e3ec612b10c8a0163845ff680fea= 845d5eade21d60d47e843b4c623 =2DSIZE (avidemux_2.3.0.tar.gz) =3D 4750919 +MD5 (avidemux_2.4.1.tar.gz) =3D 2d972f6b8795c891dd6e0ebe5035852a +SHA256 (avidemux_2.4.1.tar.gz) =3D f3c7ada9da6cd65ce840127dfa7062a7004af0a= 44a2e3a474ff153b0e7d50b51 +SIZE (avidemux_2.4.1.tar.gz) =3D 5788014 =2D-- avidemux2.orig/files/avidemux.desktop 1970-01-01 05:00:00.000000000 += 0500 +++ avidemux2/files/avidemux.desktop 2008-01-08 14:55:15.000000000 +0500 @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=3DUTF-8 +Name=3DAvidemux2%%API%% +GenericName[ru]=3D=D0=92=D0=B8=D0=B4=D0=B5=D0=BE=D1=80=D0=B5=D0=B4=D0=B0= =D0=BA=D1=82=D0=BE=D1=80 +Comment=3DVideo Editor +Comment[ru]=3D=D0=92=D0=B8=D0=B4=D0=B5=D0=BE=D1=80=D0=B5=D0=B4=D0=B0=D0=BA= =D1=82=D0=BE=D1=80 +Exec=3D%%PREFIX%%/bin/%%APP_NAME%% +MimeType=3Dvideo/mpeg;video/quicktime;video/x-msvideo;video/x-anim;audio/x= =2Dmp3;audio/x-mp2; +Icon=3D%%PREFIX%%/share/avidemux2/avidemux2.png +Terminal=3Dfalse +Type=3DApplication +Categories=3DApplication;AudioVideo;AudioVideoEditing; =2D-- avidemux2.orig/files/execinfo.cpp 1970-01-01 05:00:00.000000000 +0500 +++ avidemux2/files/execinfo.cpp 2008-01-06 22:26:58.000000000 +0500 @@ -0,0 +1,37 @@ +#include <execinfo.h> +#include <stdio.h> +#include <stdlib.h> + =20 +/* Obtain a backtrace and print it to stdout. */ +void +print_trace (void) +{ + void *array[10]; + size_t size; + char **strings; + size_t i; + =20 + size =3D backtrace (array, 10); + strings =3D backtrace_symbols (array, size); +=20 + printf ("Obtained %zd stack frames.\n", size); + =20 + for (i =3D 0; i < size; i++) + printf ("%s\n", strings[i]); + =20 + free (strings); +} + =20 +/* A dummy function to make the backtrace more interesting. */ +void +dummy_function (void) +{ + print_trace (); +} + =20 +int +main (void) +{ + dummy_function (); + return 0; +} =2D-- avidemux2.orig/files/patch-ADM_lavformat.cpp 1970-01-01 05:00:00.0000= 00000 +0500 +++ avidemux2/files/patch-ADM_lavformat.cpp 2008-03-15 11:58:14.000000000 += 0500 @@ -0,0 +1,14 @@ +--- avidemux/ADM_libraries/ADM_lavformat/ADM_lavformat.cpp.orig 2008-01-13= 20:56:28.000000000 +0500 ++++ avidemux/ADM_libraries/ADM_lavformat/ADM_lavformat.cpp 2008-03-15 11:5= 5:28.000000000 +0500 +@@ -362,8 +362,10 @@ + break; + } + case 29970: +- c->time_base=3Dfps30; ++ { ++ c->time_base=3Dfps30; + break; ++ } + default: + { + if(_type=3D=3DMUXER_MP4 || _type=3D=3DMUXER_P= SP || _type=3D=3DMUXER_FLV || _type=3D=3DMUXER_MATROSKA) =2D-- avidemux2.orig/files/patch-ConfigureChecks.cmake 1970-01-01 05:00:00.= 000000000 +0500 +++ avidemux2/files/patch-ConfigureChecks.cmake 2008-03-09 18:52:11.0000000= 00 +0500 @@ -0,0 +1,59 @@ +--- ConfigureChecks.cmake.orig 2008-03-09 18:47:46.000000000 +0500 ++++ ConfigureChecks.cmake 2008-03-09 18:51:57.000000000 +0500 +@@ -220,6 +220,43 @@ + ENDIF (NO_NLS) +=20 + ######################################## ++# Execinfo ++######################################## ++MESSAGE(STATUS "<Checking execinfo>") ++MESSAGE(STATUS "<******************************>") ++ ++FIND_PATH(LIBEXECINFO_H_DIR execinfo.h $ENV{CXXFLAGS}) ++MESSAGE(STATUS "libexecinfo Header Path: ${LIBEXECINFO_H_DIR}") ++ ++IF (NOT LIBEXECINFO_H_DIR STREQUAL "LIBEXECINFO_H-NOTFOUND") ++ FIND_LIBRARY(LIBEXECINFO_LIB_DIR execinfo $ENV{CXXFLAGS}) ++ MESSAGE(STATUS "libexecinfo Library Path: ${LIBEXECINFO_LIB_DIR}") ++ ++ # Try linking without -lexecinfo ++ ADM_COMPILE(execinfo.cpp -I${LIBEXECINFO_H_DIR} "" WITHOUT_LIBEXE= CINFO outputWithoutLibexecinfo) ++ ++ IF (WITHOUT_LIBEXECINFO) ++ SET(HAVE_EXECINFO 1) ++ MESSAGE(STATUS "OK, No lib needed (${ADM_EXECINFO_LIB})") ++ ELSE (WITHOUT_LIBEXECINFO) ++ ADM_COMPILE(execinfo.cpp -I${LIBEXECINFO_H_DIR} "-lexecinf= o" WITH_LIBEXECINFO outputWithLibexecinfo) ++ ++ IF (WITH_LIBEXECINFO) ++ SET(HAVE_EXECINFO 1) ++ MESSAGE(STATUS "OK, libexecinfo needed") ++ ELSE (WITH_LIBEXECINFO) ++ MESSAGE(STATUS "Does not work, without ${outp= utWithoutLibexecinfo}") ++ MESSAGE(STATUS "Does not work, with ${outputW= ithLibexecinfo}") ++ ENDIF (WITH_LIBEXECINFO) ++ ENDIF (WITHOUT_LIBEXECINFO) ++ ENDIF (NOT LIBEXECINFO_H_DIR STREQUAL "LIBEXECINFO_H-NOTFOUND") ++ ++ IF (HAVE_EXECINFO) ++ SET(CMAKE_CLINK_FLAGS "${LDFLAGS} -lexecinfo") ++ SET(CMAKE_CXX_LINK_FLAGS "${LDFLAGS} -lexecinfo") ++ ENDIF(HAVE_EXECINFO) ++ ++######################################## + # Locale + ######################################## + SET(ADM_LOCALE "${CMAKE_INSTALL_PREFIX}/share/locale") +@@ -468,7 +505,11 @@ + IF (USE_LATE_BINDING) + CHECK_INCLUDE_FILES(dts.h USE_LIBDCA) + ELSE (USE_LATE_BINDING) +- ADM_CHECK_HL(libdca dts.h dts dts_init USE_LIBDCA) ++ IF (ADM_BSD_FAMILY) ++ ADM_CHECK_HL(libdca dts.h dts dca_init USE_LIBDCA) ++ ELSE (ADM_BSD_FAMILY) ++ ADM_CHECK_HL(libdca dts.h dts dts_init USE_LIBDCA) ++ ENDIF (ADM_BSD_FAMILY) + ENDIF (USE_LATE_BINDING) +=20 + SET(CMAKE_REQUIRED_LIBRARIES) =2D-- avidemux2.orig/files/patch-avidemux_ADM_lavformat_ADM_lavformat.cpp 2= 007-05-30 13:43:39.000000000 +0600 +++ avidemux2/files/patch-avidemux_ADM_lavformat_ADM_lavformat.cpp 1970-01-= 01 05:00:00.000000000 +0500 @@ -1,28 +0,0 @@ =2D--- avidemux/ADM_lavformat/ADM_lavformat.cpp.orig Mon May 28 10:32:13 20= 07 =2D+++ avidemux/ADM_lavformat/ADM_lavformat.cpp Mon May 28 10:33:09 2007 =2D@@ -260,10 +260,12 @@ =2D switch(_fps1000) =2D { =2D case 25000: =2D+ { =2D c->time_base=3D (AVRational){1001,25025}; =2D //c->frame_rate =3D 25025; =20 =2D //c->frame_rate_base =3D 1001;=09 =2D break; =2D+ } =2D case 23976: =2D /* =2D c->frame_rate =3D 24000; =20 =2D@@ -276,10 +278,12 @@ =2D break; =2D } =2D case 29970: =2D+ { =2D c->time_base=3D (AVRational){1001,30000}; =2D //c->frame_rate =3D 30000; =20 =2D //c->frame_rate_base =3D 1001;=09 =2D break; =2D+ } =2D default: =2D if(_type=3D=3DMUXER_MP4 || _type=3D=3DMUXER_PSP) =2D { =2D-- avidemux2.orig/pkg-plist 2007-05-20 02:17:04.000000000 +0600 +++ avidemux2/pkg-plist 1970-01-01 05:00:00.000000000 +0500 @@ -1,8 +0,0 @@ =2Dbin/avidemux2 =2Dshare/locale/es/LC_MESSAGES/avidemux.mo =2Dshare/locale/fr/LC_MESSAGES/avidemux.mo =2Dshare/locale/ru/LC_MESSAGES/avidemux.mo =2Dshare/locale/cs/LC_MESSAGES/avidemux.mo =2Dshare/locale/klingon/LC_MESSAGES/avidemux.mo =2D@dirrmtry share/locale/klingon/LC_MESSAGES =2D@dirrmtry share/locale/klingon --Boundary-00=_uso3HwUBPD4Pwkd--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803171520.m2HFK4Sw079158>