diff options
author | pav <pav@FreeBSD.org> | 2004-08-21 00:50:14 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-08-21 00:50:14 +0800 |
commit | 47f7e450b368fb04dd7a8618ab8020061aec2043 (patch) | |
tree | e15480bce69b28fb7e4b51c69aa76a302fe78418 /multimedia | |
parent | b0af412e1a6208a8b24e97fb67fb4dd9874d287f (diff) | |
download | freebsd-ports-gnome-47f7e450b368fb04dd7a8618ab8020061aec2043.tar.gz freebsd-ports-gnome-47f7e450b368fb04dd7a8618ab8020061aec2043.tar.zst freebsd-ports-gnome-47f7e450b368fb04dd7a8618ab8020061aec2043.zip |
Add dvdstyler, a crossplatform GUI frontend to the dvd authoring and
recording programs.
PR: ports/70094
Submitted by: Michael Johnson <ahze@ahze.net>
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/Makefile | 1 | ||||
-rw-r--r-- | multimedia/dvdstyler/Makefile | 70 | ||||
-rw-r--r-- | multimedia/dvdstyler/distinfo | 2 | ||||
-rw-r--r-- | multimedia/dvdstyler/files/patch-src::MainWin.cpp | 11 | ||||
-rw-r--r-- | multimedia/dvdstyler/files/patch-src::MenuBox.cpp | 38 | ||||
-rw-r--r-- | multimedia/dvdstyler/files/patch-wxVillaLib::Thumbnails.cpp | 11 | ||||
-rw-r--r-- | multimedia/dvdstyler/pkg-descr | 14 | ||||
-rw-r--r-- | multimedia/dvdstyler/pkg-plist | 45 |
8 files changed, 192 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile index 0d501741bbea..19ee27d26f78 100644 --- a/multimedia/Makefile +++ b/multimedia/Makefile @@ -17,6 +17,7 @@ SUBDIR += dv2jpg SUBDIR += dvdauthor SUBDIR += dvdrip + SUBDIR += dvdstyler SUBDIR += dvts SUBDIR += emovix SUBDIR += enjoympeg diff --git a/multimedia/dvdstyler/Makefile b/multimedia/dvdstyler/Makefile new file mode 100644 index 000000000000..a4ab14e5c2b1 --- /dev/null +++ b/multimedia/dvdstyler/Makefile @@ -0,0 +1,70 @@ +# New ports collection makefile for: dvdstyler +# Date created: 2004-07-30 +# Whom: Michael Johnson <ahze@ahze.net> +# +# $FreeBSD$ +# + +PORTNAME= dvdstyler +PORTVERSION= 1.06 +CATEGORIES= multimedia +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= dvdstyler +DISTNAME= DVDStyler-${PORTVERSION} + +MAINTAINER= ahze@ahze.net +COMMENT= WXGTK2 front end to dvd recoding and authoring programs + +BUILD_DEPENDS= dvdauthor:${PORTSDIR}/multimedia/dvdauthor \ + mpgcat:${PORTSDIR}/multimedia/mpgtx \ + growisofs:${PORTSDIR}/sysutils/dvd+rw-tools +LIB_DEPENDS= netpbm.1:${PORTSDIR}/graphics/netpbm \ + lavfile-1.6.2:${PORTSDIR}/multimedia/mjpegtools \ + wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2 +RUN_DEPENDS= ${BUILD_DEPENDS} + +USE_X_PREFIX= yes +USE_REINPLACE= yes +USE_INC_LIBTOOL_VER=15 +USE_GMAKE= yes + +CONFIGURE_ARGS= --with-wx-config=wxgtk2-2.4-config +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" + +.include <bsd.port.pre.mk> + +.if defined(WITH_DVD_DEVICE) +DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE} +.else +.if ${OSVERSION} < 500000 +DEFAULT_DVD_DEVICE=/dev/acd0c +.else +DEFAULT_DVD_DEVICE=/dev/acd0 +.endif +.endif + +pre-everything:: +.if !defined(WITH_DVD_DEVICE) + @${ECHO_MSG} "===>" + @${ECHO_MSG} "===> The default DVD device is ${DEFAULT_DVD_DEVICE}" + @${ECHO_MSG} "===> Define WITH_DVD_DEVICE if you want to change the default" + @${ECHO_MSG} "===> For example, 'make WITH_DVD_DEVICE=\"/dev/somedevice\"'" +.endif +.if !defined(WITH_OPTIMIZED_CFLAGS) + @${ECHO_MSG} "===>" + @${ECHO_MSG} "===> Define WITH_OPTIMIZED_CFLAGS to enable optimized cflags" +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|$$prefix/dvdstyler|${DATADIR}|' \ + ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|mp2 AUTHORS COPYING INSTALL README ChangeLog|mp2|' \ + ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \ + ${WRKSRC}/src/Config.h +.if !defined(WITH_OPTIMIZED_CFLAGS) + @${REINPLACE_CMD} -e 's|-O3||' \ + ${WRKSRC}/configure +.endif + +.include <bsd.port.post.mk> diff --git a/multimedia/dvdstyler/distinfo b/multimedia/dvdstyler/distinfo new file mode 100644 index 000000000000..cdb51bf899d5 --- /dev/null +++ b/multimedia/dvdstyler/distinfo @@ -0,0 +1,2 @@ +MD5 (DVDStyler-1.06.tar.gz) = 26c6a3f518cbf08d3bf1dd57394fc004 +SIZE (DVDStyler-1.06.tar.gz) = 598974 diff --git a/multimedia/dvdstyler/files/patch-src::MainWin.cpp b/multimedia/dvdstyler/files/patch-src::MainWin.cpp new file mode 100644 index 000000000000..4b77f7b82373 --- /dev/null +++ b/multimedia/dvdstyler/files/patch-src::MainWin.cpp @@ -0,0 +1,11 @@ +--- src/MainWin.cpp.orig Tue Aug 3 16:02:33 2004 ++++ src/MainWin.cpp Fri Aug 6 19:43:32 2004 +@@ -403,7 +403,7 @@ + else + d = m_menuBox->GetScaleValue()*100; + //st = wxString::Format(_T("%0.2f"), d); if (d == (int) d) +- st = wxString::Format(_T("%d"), (int)round(d)); ++ st = wxString::Format(_T("%d"), rint(d)); + m_scaleCB->SetValue(st + _T("%")); + } + diff --git a/multimedia/dvdstyler/files/patch-src::MenuBox.cpp b/multimedia/dvdstyler/files/patch-src::MenuBox.cpp new file mode 100644 index 000000000000..768dd64f0c2d --- /dev/null +++ b/multimedia/dvdstyler/files/patch-src::MenuBox.cpp @@ -0,0 +1,38 @@ +--- src/MenuBox.cpp.orig Fri Aug 6 19:32:13 2004 ++++ src/MenuBox.cpp Fri Aug 6 19:41:00 2004 +@@ -15,7 +15,7 @@ + #include "MPEG.h" + #include <wxVillaLib/ImageProc.h> + #include <wxVillaLib/utils.h> +-#include "math.h" ++#include <math.h> + #include <wx/dnd.h> + #include <wx/utils.h> + +@@ -374,11 +374,11 @@ + + void MenuBox::MoveObject(int& x, int& y) + { +- x = (int) round(x/m_scale); +- y = (int) round(y/m_scale); ++ x = rint(x/m_scale); ++ y = rint(y/m_scale); + MoveObjectInt(x,y); +- x = (int) round(x*m_scale); +- y = (int) round(y*m_scale); ++ x = rint(x*m_scale); ++ y = rint(y*m_scale); + } + + void MenuBox::MoveObjectInt(int& x, int& y) +@@ -411,8 +411,8 @@ + + void MenuBox::ResizeObject(int x, int y, TransformType transformType) + { +- x = (int) round(x/m_scale); +- y = (int) round(y/m_scale); ++ x = rint(x/m_scale); ++ y = rint(y/m_scale); + ResizeObjectInt(x, y, transformType); + } + diff --git a/multimedia/dvdstyler/files/patch-wxVillaLib::Thumbnails.cpp b/multimedia/dvdstyler/files/patch-wxVillaLib::Thumbnails.cpp new file mode 100644 index 000000000000..a1bbefd9553e --- /dev/null +++ b/multimedia/dvdstyler/files/patch-wxVillaLib::Thumbnails.cpp @@ -0,0 +1,11 @@ +--- wxVillaLib/Thumbnails.cpp.orig Thu Aug 5 06:15:33 2004 ++++ wxVillaLib/Thumbnails.cpp Thu Aug 5 06:17:33 2004 +@@ -202,7 +202,7 @@ + wxString fname = wxFindFirstFile(m_dir + wxFILE_SEP_PATH + _T("*")); + while (!fname.IsEmpty()) + { +- wxString caption = m_showFileNames?fname.AfterLast(wxFILE_SEP_PATH):wxT(""); ++ wxString caption = m_showFileNames? (const char *)fname.AfterLast(wxFILE_SEP_PATH):wxT(""); + if ((m_filter & wxTHUMB_FILTER_VIDEOS && + (fname.AfterLast('.').Lower() == _T("mpg") || + fname.AfterLast('.').Lower() == _T("mpeg") || diff --git a/multimedia/dvdstyler/pkg-descr b/multimedia/dvdstyler/pkg-descr new file mode 100644 index 000000000000..bac5d3be06cc --- /dev/null +++ b/multimedia/dvdstyler/pkg-descr @@ -0,0 +1,14 @@ +DVDStyler is a crossplatform GUI frontend to the dvd authoring and +recording programs. + +The main DVDStyler features are: + o drag and drop MPEG files directly + o import image file for background + o create NTSC/PAL menu + o place text and images anywhere on the menu screen + o change font/color + o put basic text buttons, change font/color and background color + o set chapters for each movie + o change post command for each movie + +WWW: http://dvdstyler.sourceforge.net/ diff --git a/multimedia/dvdstyler/pkg-plist b/multimedia/dvdstyler/pkg-plist new file mode 100644 index 000000000000..1defa04823e1 --- /dev/null +++ b/multimedia/dvdstyler/pkg-plist @@ -0,0 +1,45 @@ +bin/dvdstyler +share/dvdstyler/backgrounds/autobahn.jpg +share/dvdstyler/backgrounds/bi_domrep.jpg +share/dvdstyler/backgrounds/blue.jpg +share/dvdstyler/backgrounds/creta.jpg +share/dvdstyler/backgrounds/darkblue.jpg +share/dvdstyler/backgrounds/kiel_kanal.jpg +share/dvdstyler/backgrounds/lightblue.jpg +share/dvdstyler/backgrounds/swans.jpg +share/dvdstyler/bin/dvdstyler +share/dvdstyler/bin/rc/dvdstyler.png +share/dvdstyler/bin/rc/files.png +share/dvdstyler/bin/rc/folder1.png +share/dvdstyler/bin/rc/folder2.png +share/dvdstyler/bin/rc/logo.png +share/dvdstyler/bin/rc/logo_big.png +share/dvdstyler/bin/rc/minus.png +share/dvdstyler/bin/rc/move.cur +share/dvdstyler/bin/rc/nesw.cur +share/dvdstyler/bin/rc/new.png +share/dvdstyler/bin/rc/nwse.cur +share/dvdstyler/bin/rc/open.png +share/dvdstyler/bin/rc/plus.png +share/dvdstyler/bin/rc/run.png +share/dvdstyler/bin/rc/save.png +share/dvdstyler/buttons/simple.xml +share/dvdstyler/locale/de/LC_MESSAGES/dvdstyler.mo +share/dvdstyler/locale/es/LC_MESSAGES/dvdstyler.mo +share/dvdstyler/locale/it/LC_MESSAGES/dvdstyler.mo +share/dvdstyler/locale/ru/LC_MESSAGES/dvdstyler.mo +share/dvdstyler/silence.mp2 +@dirrm share/dvdstyler/locale/ru/LC_MESSAGES +@dirrm share/dvdstyler/locale/ru +@dirrm share/dvdstyler/locale/it/LC_MESSAGES +@dirrm share/dvdstyler/locale/it +@dirrm share/dvdstyler/locale/de/LC_MESSAGES +@dirrm share/dvdstyler/locale/de +@dirrm share/dvdstyler/locale/es/LC_MESSAGES +@dirrm share/dvdstyler/locale/es +@dirrm share/dvdstyler/locale +@dirrm share/dvdstyler/buttons +@dirrm share/dvdstyler/bin/rc +@dirrm share/dvdstyler/bin +@dirrm share/dvdstyler/backgrounds +@dirrm share/dvdstyler |