diff options
author | edwin <edwin@FreeBSD.org> | 2005-12-26 08:05:59 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2005-12-26 08:05:59 +0800 |
commit | 0647d56929d467166e662f4f988a2c21e232b76d (patch) | |
tree | d06bf9e9083c121fef7ea1b4d93144e285f05aed /multimedia | |
parent | 6c262bfdd8cdb124f1a9308c152d530973c9e91c (diff) | |
download | freebsd-ports-graphics-0647d56929d467166e662f4f988a2c21e232b76d.tar.gz freebsd-ports-graphics-0647d56929d467166e662f4f988a2c21e232b76d.tar.zst freebsd-ports-graphics-0647d56929d467166e662f4f988a2c21e232b76d.zip |
[NEW PORT] multimedia/k9copy A DVD-9 to DVD-5 shrinking application for KDE
XK9Copy is a small utility which allows the copy of DVD on Linux.
The DVD video stream is compressed by the program Vamps.
1. Copy without menus :
In this case, dvdauthor is used to create a new DVD structure. It is possible
to choose the order in which the video sequences are played.
2. Copy with menus :
As dvdauthor does not make it possible to integrate the original menus,
K9Copy reproduces the original structure of the DVD. The navigation packs as
well as IFO files are modified to point on the compressed MPEG stream.
Features
* The video stream is compressed to make the DVD fit on 4.7 Gb recordable DVD
* DVD Burning
* Creation of ISO images
* Possibility of selecting the audio tracks and subtitles to be copied
* Title preview (video only)
* Possibility of preserving the original menus
WWW: http://k9copy.free.fr
PR: ports/90795
Submitted by: Alexander V. Ribchansky <triosoft@triosoft.com.ua>
Diffstat (limited to 'multimedia')
21 files changed, 371 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile index 8c0fdfee171..abfa4e566d0 100644 --- a/multimedia/Makefile +++ b/multimedia/Makefile @@ -67,6 +67,7 @@ SUBDIR += hayes SUBDIR += istanbul SUBDIR += jahshaka + SUBDIR += k9copy SUBDIR += kaffeine SUBDIR += kaffeine-mozilla SUBDIR += kbtv diff --git a/multimedia/k9copy-kde4/Makefile b/multimedia/k9copy-kde4/Makefile new file mode 100644 index 00000000000..7492ee94b22 --- /dev/null +++ b/multimedia/k9copy-kde4/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: k9copy +# Date created: 19 Dec 2005 +# Whom: Alexander V. Ribchansky <triosoft@triosoft.com.ua> +# +# $FreeBSD$ + +PORTNAME= k9copy +PORTVERSION= 1.0.1 +CATEGORIES= multimedia kde +MASTER_SITES= http://k9copy.free.fr/ + +MAINTAINER= triosoft@triosoft.com.ua +COMMENT= A DVD-9 to DVD-5 shrinking application for KDE + +LIB_DEPENDS= dvdread.3:${PORTSDIR}/multimedia/libdvdread +RUN_DEPENDS= growisofs:${PORTSDIR}/sysutils/dvd+rw-tools \ + dvdauthor:${PORTSDIR}/multimedia/dvdauthor + +USE_KDELIBS_VER=3 +USE_REINPLACE= yes +USE_GMAKE= yes +GNU_CONFIGURE= yes +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}b + +post-patch: + @${REINPLACE_CMD} -e 's,-O2,,g ; \ + s,-lpthread,${PTHREAD_LIBS},g' ${WRKSRC}/${CONFIGURE_SCRIPT} + @${REINPLACE_CMD} -e \ + 's,$$(LIB_KDEUI),$$(LIB_KDEUI) $$(LIBPTHREAD) -lcam,g' \ + ${WRKSRC}/src/Makefile.in + +.include <bsd.port.mk> diff --git a/multimedia/k9copy-kde4/distinfo b/multimedia/k9copy-kde4/distinfo new file mode 100644 index 00000000000..f3d366ce05d --- /dev/null +++ b/multimedia/k9copy-kde4/distinfo @@ -0,0 +1,3 @@ +MD5 (k9copy-1.0.1.tar.gz) = cc13f799a13784f7c9aaa2d40d608b0b +SHA256 (k9copy-1.0.1.tar.gz) = 1111de1f6cee40f17e3a341f656b046f2a63a5b9debb68c9660c17d217d080bb +SIZE (k9copy-1.0.1.tar.gz) = 1206622 diff --git a/multimedia/k9copy-kde4/files/patch-src_K9copy.desktop b/multimedia/k9copy-kde4/files/patch-src_K9copy.desktop new file mode 100644 index 00000000000..cba2f03de53 --- /dev/null +++ b/multimedia/k9copy-kde4/files/patch-src_K9copy.desktop @@ -0,0 +1,10 @@ +--- src/K9copy.desktop.orig Tue Dec 20 16:03:59 2005 ++++ src/K9copy.desktop Tue Dec 20 16:04:12 2005 +@@ -3,6 +3,6 @@ + Name=k9copy + Exec=k9copy -caption "%c" %i %m %u + Comment= +-Icon=/home/jmp/dev/k9copy/src/k9copy.png ++Icon=k9copy + MimeTypes= + Terminal=false diff --git a/multimedia/k9copy-kde4/files/patch-src_Makefile.in b/multimedia/k9copy-kde4/files/patch-src_Makefile.in new file mode 100644 index 00000000000..efa15fa1984 --- /dev/null +++ b/multimedia/k9copy-kde4/files/patch-src_Makefile.in @@ -0,0 +1,11 @@ +--- src/Makefile.in.orig Tue Dec 20 16:07:46 2005 ++++ src/Makefile.in Tue Dec 20 16:09:14 2005 +@@ -459,7 +459,7 @@ + shellrcdir = $(kde_datadir)/k9copy + shellrc_DATA = k9copyui.rc + applnkApplication_DATA = K9copy.desktop +-applnkApplicationdir = $(kde_appsdir)/Application ++applnkApplicationdir = $(kde_appsdir)/Multimedia + AM_CXXFLAGS = -O2 -g3 + #>- all: all-am + #>+ 1 diff --git a/multimedia/k9copy-kde4/files/patch-src_kcddrive.cpp b/multimedia/k9copy-kde4/files/patch-src_kcddrive.cpp new file mode 100644 index 00000000000..a05b47882f7 --- /dev/null +++ b/multimedia/k9copy-kde4/files/patch-src_kcddrive.cpp @@ -0,0 +1,30 @@ +--- src/kcddrive.cpp.orig Thu Dec 15 16:49:47 2005 ++++ src/kcddrive.cpp Thu Dec 15 16:49:47 2005 +@@ -27,8 +27,10 @@ + #include <sys/stat.h> + #include <sys/ioctl.h> + #include <fcntl.h> ++/* + #include <scsi/scsi.h> + #include <scsi/sg.h> ++*/ + #include <unistd.h> + + #include <qfile.h> +@@ -177,7 +179,7 @@ + return 0; + } + +- if (ioctl (fd, SCSI_IOCTL_GET_BUS_NUMBER, &bus) < 0) { ++/* if (ioctl (fd, SCSI_IOCTL_GET_BUS_NUMBER, &bus) < 0) { + close (fd); + return 0; + } +@@ -185,6 +187,7 @@ + close(fd); + return 0; + } ++*/ + id = m_idlun.mux4 & 0xFF; + lun = (m_idlun.mux4 >> 8) & 0xFF; + diff --git a/multimedia/k9copy-kde4/files/patch-src_kdvd.cpp b/multimedia/k9copy-kde4/files/patch-src_kdvd.cpp new file mode 100644 index 00000000000..096884ad948 --- /dev/null +++ b/multimedia/k9copy-kde4/files/patch-src_kdvd.cpp @@ -0,0 +1,34 @@ +--- src/kdvd.cpp.orig Sun Dec 18 23:50:47 2005 ++++ src/kdvd.cpp Mon Dec 19 00:19:47 2005 +@@ -409,7 +409,7 @@ + return -1; + } + +- if ( fseek(filehandle, 32808, SEEK_SET )) { ++ if ( fseek(filehandle, 32768, SEEK_SET )) { + fclose(filehandle); + c.sprintf(tr2i18n("Couldn't seek in %s for title\n"), dvd_device); + setError(c); +@@ -417,14 +417,20 @@ + return -1; + } + +- if ( 32 != (i = fread(title, 1, 32, filehandle)) ) { ++ { ++ #define DVD_SEC_SIZ 2048 ++ char tempBuf[ DVD_SEC_SIZ ]; ++ if ( DVD_SEC_SIZ != fread(tempBuf, 1, DVD_SEC_SIZ, filehandle) ) { + fclose(filehandle); + c=tr2i18n("Couldn't read enough bytes for title.\n"); + setError(c); + strcpy(title, "unknown"); + return -1; + } +- ++ snprintf( title, 32, "%s", tempBuf + 40 ); ++ i=32; ++ } ++ + fclose (filehandle); + + title[32] = '\0'; diff --git a/multimedia/k9copy-kde4/files/patch-src_kifo.cpp b/multimedia/k9copy-kde4/files/patch-src_kifo.cpp new file mode 100644 index 00000000000..251fbd0ce2c --- /dev/null +++ b/multimedia/k9copy-kde4/files/patch-src_kifo.cpp @@ -0,0 +1,12 @@ +--- src/kifo.cpp.orig Sun Dec 18 23:40:34 2005 ++++ src/kifo.cpp Sun Dec 18 23:40:52 2005 +@@ -21,6 +21,9 @@ + #include <dvdread/dvd_reader.h> + #include <dvdread/ifo_read.h> + #include <dvdread/ifo_print.h> ++#ifdef __FreeBSD__ ++#include <osreldate.h> ++#endif + #include "bswap.h" + + #ifndef DVD_BLOCK_LEN diff --git a/multimedia/k9copy-kde4/files/patch-vamps_Makefile.in b/multimedia/k9copy-kde4/files/patch-vamps_Makefile.in new file mode 100644 index 00000000000..914d0180426 --- /dev/null +++ b/multimedia/k9copy-kde4/files/patch-vamps_Makefile.in @@ -0,0 +1,11 @@ +--- vamps/Makefile.in.orig Tue Dec 20 15:26:47 2005 ++++ vamps/Makefile.in Tue Dec 20 15:30:34 2005 +@@ -329,7 +329,7 @@ + xdg_directorydir = @xdg_directorydir@ + xdg_menudir = @xdg_menudir@ + #>- METASOURCES = AUTO +-usrbindir = /usr/bin ++usrbindir = ${prefix}/bin + k9vamps_LDADD = -lpthread -lm + k9vamps_SOURCES = requant.h vamps.cpp putvlc.h getvlc.h requant.cpp + k9playcell_LDADD = -ldvdread diff --git a/multimedia/k9copy-kde4/pkg-descr b/multimedia/k9copy-kde4/pkg-descr new file mode 100644 index 00000000000..63014874a1c --- /dev/null +++ b/multimedia/k9copy-kde4/pkg-descr @@ -0,0 +1,24 @@ +From K9copy website: + +K9Copy is a small utility which allows the copy of DVD on Linux. +The DVD video stream is compressed by the program Vamps. + +1. Copy without menus : +In this case, dvdauthor is used to create a new DVD structure. It is possible +to choose the order in which the video sequences are played. +2. Copy with menus : +As dvdauthor does not make it possible to integrate the original menus, +K9Copy reproduces the original structure of the DVD. The navigation packs as +well as IFO files are modified to point on the compressed MPEG stream. + +Features +* The video stream is compressed to make the DVD fit on 4.7 Gb recordable DVD +* DVD Burning +* Creation of ISO images +* Possibility of selecting the audio tracks and subtitles to be copied +* Title preview (video only) +* Possibility of preserving the original menus + +WWW: http://k9copy.free.fr + +- Alexander V. Ribchnaky triosoft@triosoft.com.ua diff --git a/multimedia/k9copy-kde4/pkg-plist b/multimedia/k9copy-kde4/pkg-plist new file mode 100644 index 00000000000..55e686a955e --- /dev/null +++ b/multimedia/k9copy-kde4/pkg-plist @@ -0,0 +1,18 @@ +bin/k9copy +bin/k9playcell +bin/k9vamps +share/applnk/Multimedia/K9copy.desktop +share/apps/k9copy/k9copyui.rc +share/doc/HTML/en/k9copy/index.cache.bz2 +share/doc/HTML/en/k9copy/index.docbook +share/doc/HTML/en/k9copy/common +share/icons/hicolor/16x16/apps/k9copy.png +share/icons/hicolor/32x32/apps/k9copy.png +share/icons/hicolor/48x48/apps/k9copy.png +share/locale/en_GB/LC_MESSAGES/k9copy.mo +share/locale/es/LC_MESSAGES/k9copy.mo +share/locale/fr/LC_MESSAGES/k9copy.mo +share/locale/hu/LC_MESSAGES/k9copy.mo +share/locale/it/LC_MESSAGES/k9copy.mo +@dirrm share/doc/HTML/en/k9copy +@dirrm share/apps/k9copy diff --git a/multimedia/k9copy/Makefile b/multimedia/k9copy/Makefile new file mode 100644 index 00000000000..7492ee94b22 --- /dev/null +++ b/multimedia/k9copy/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: k9copy +# Date created: 19 Dec 2005 +# Whom: Alexander V. Ribchansky <triosoft@triosoft.com.ua> +# +# $FreeBSD$ + +PORTNAME= k9copy +PORTVERSION= 1.0.1 +CATEGORIES= multimedia kde +MASTER_SITES= http://k9copy.free.fr/ + +MAINTAINER= triosoft@triosoft.com.ua +COMMENT= A DVD-9 to DVD-5 shrinking application for KDE + +LIB_DEPENDS= dvdread.3:${PORTSDIR}/multimedia/libdvdread +RUN_DEPENDS= growisofs:${PORTSDIR}/sysutils/dvd+rw-tools \ + dvdauthor:${PORTSDIR}/multimedia/dvdauthor + +USE_KDELIBS_VER=3 +USE_REINPLACE= yes +USE_GMAKE= yes +GNU_CONFIGURE= yes +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}b + +post-patch: + @${REINPLACE_CMD} -e 's,-O2,,g ; \ + s,-lpthread,${PTHREAD_LIBS},g' ${WRKSRC}/${CONFIGURE_SCRIPT} + @${REINPLACE_CMD} -e \ + 's,$$(LIB_KDEUI),$$(LIB_KDEUI) $$(LIBPTHREAD) -lcam,g' \ + ${WRKSRC}/src/Makefile.in + +.include <bsd.port.mk> diff --git a/multimedia/k9copy/distinfo b/multimedia/k9copy/distinfo new file mode 100644 index 00000000000..f3d366ce05d --- /dev/null +++ b/multimedia/k9copy/distinfo @@ -0,0 +1,3 @@ +MD5 (k9copy-1.0.1.tar.gz) = cc13f799a13784f7c9aaa2d40d608b0b +SHA256 (k9copy-1.0.1.tar.gz) = 1111de1f6cee40f17e3a341f656b046f2a63a5b9debb68c9660c17d217d080bb +SIZE (k9copy-1.0.1.tar.gz) = 1206622 diff --git a/multimedia/k9copy/files/patch-src_K9copy.desktop b/multimedia/k9copy/files/patch-src_K9copy.desktop new file mode 100644 index 00000000000..cba2f03de53 --- /dev/null +++ b/multimedia/k9copy/files/patch-src_K9copy.desktop @@ -0,0 +1,10 @@ +--- src/K9copy.desktop.orig Tue Dec 20 16:03:59 2005 ++++ src/K9copy.desktop Tue Dec 20 16:04:12 2005 +@@ -3,6 +3,6 @@ + Name=k9copy + Exec=k9copy -caption "%c" %i %m %u + Comment= +-Icon=/home/jmp/dev/k9copy/src/k9copy.png ++Icon=k9copy + MimeTypes= + Terminal=false diff --git a/multimedia/k9copy/files/patch-src_Makefile.in b/multimedia/k9copy/files/patch-src_Makefile.in new file mode 100644 index 00000000000..efa15fa1984 --- /dev/null +++ b/multimedia/k9copy/files/patch-src_Makefile.in @@ -0,0 +1,11 @@ +--- src/Makefile.in.orig Tue Dec 20 16:07:46 2005 ++++ src/Makefile.in Tue Dec 20 16:09:14 2005 +@@ -459,7 +459,7 @@ + shellrcdir = $(kde_datadir)/k9copy + shellrc_DATA = k9copyui.rc + applnkApplication_DATA = K9copy.desktop +-applnkApplicationdir = $(kde_appsdir)/Application ++applnkApplicationdir = $(kde_appsdir)/Multimedia + AM_CXXFLAGS = -O2 -g3 + #>- all: all-am + #>+ 1 diff --git a/multimedia/k9copy/files/patch-src_kcddrive.cpp b/multimedia/k9copy/files/patch-src_kcddrive.cpp new file mode 100644 index 00000000000..a05b47882f7 --- /dev/null +++ b/multimedia/k9copy/files/patch-src_kcddrive.cpp @@ -0,0 +1,30 @@ +--- src/kcddrive.cpp.orig Thu Dec 15 16:49:47 2005 ++++ src/kcddrive.cpp Thu Dec 15 16:49:47 2005 +@@ -27,8 +27,10 @@ + #include <sys/stat.h> + #include <sys/ioctl.h> + #include <fcntl.h> ++/* + #include <scsi/scsi.h> + #include <scsi/sg.h> ++*/ + #include <unistd.h> + + #include <qfile.h> +@@ -177,7 +179,7 @@ + return 0; + } + +- if (ioctl (fd, SCSI_IOCTL_GET_BUS_NUMBER, &bus) < 0) { ++/* if (ioctl (fd, SCSI_IOCTL_GET_BUS_NUMBER, &bus) < 0) { + close (fd); + return 0; + } +@@ -185,6 +187,7 @@ + close(fd); + return 0; + } ++*/ + id = m_idlun.mux4 & 0xFF; + lun = (m_idlun.mux4 >> 8) & 0xFF; + diff --git a/multimedia/k9copy/files/patch-src_kdvd.cpp b/multimedia/k9copy/files/patch-src_kdvd.cpp new file mode 100644 index 00000000000..096884ad948 --- /dev/null +++ b/multimedia/k9copy/files/patch-src_kdvd.cpp @@ -0,0 +1,34 @@ +--- src/kdvd.cpp.orig Sun Dec 18 23:50:47 2005 ++++ src/kdvd.cpp Mon Dec 19 00:19:47 2005 +@@ -409,7 +409,7 @@ + return -1; + } + +- if ( fseek(filehandle, 32808, SEEK_SET )) { ++ if ( fseek(filehandle, 32768, SEEK_SET )) { + fclose(filehandle); + c.sprintf(tr2i18n("Couldn't seek in %s for title\n"), dvd_device); + setError(c); +@@ -417,14 +417,20 @@ + return -1; + } + +- if ( 32 != (i = fread(title, 1, 32, filehandle)) ) { ++ { ++ #define DVD_SEC_SIZ 2048 ++ char tempBuf[ DVD_SEC_SIZ ]; ++ if ( DVD_SEC_SIZ != fread(tempBuf, 1, DVD_SEC_SIZ, filehandle) ) { + fclose(filehandle); + c=tr2i18n("Couldn't read enough bytes for title.\n"); + setError(c); + strcpy(title, "unknown"); + return -1; + } +- ++ snprintf( title, 32, "%s", tempBuf + 40 ); ++ i=32; ++ } ++ + fclose (filehandle); + + title[32] = '\0'; diff --git a/multimedia/k9copy/files/patch-src_kifo.cpp b/multimedia/k9copy/files/patch-src_kifo.cpp new file mode 100644 index 00000000000..251fbd0ce2c --- /dev/null +++ b/multimedia/k9copy/files/patch-src_kifo.cpp @@ -0,0 +1,12 @@ +--- src/kifo.cpp.orig Sun Dec 18 23:40:34 2005 ++++ src/kifo.cpp Sun Dec 18 23:40:52 2005 +@@ -21,6 +21,9 @@ + #include <dvdread/dvd_reader.h> + #include <dvdread/ifo_read.h> + #include <dvdread/ifo_print.h> ++#ifdef __FreeBSD__ ++#include <osreldate.h> ++#endif + #include "bswap.h" + + #ifndef DVD_BLOCK_LEN diff --git a/multimedia/k9copy/files/patch-vamps_Makefile.in b/multimedia/k9copy/files/patch-vamps_Makefile.in new file mode 100644 index 00000000000..914d0180426 --- /dev/null +++ b/multimedia/k9copy/files/patch-vamps_Makefile.in @@ -0,0 +1,11 @@ +--- vamps/Makefile.in.orig Tue Dec 20 15:26:47 2005 ++++ vamps/Makefile.in Tue Dec 20 15:30:34 2005 +@@ -329,7 +329,7 @@ + xdg_directorydir = @xdg_directorydir@ + xdg_menudir = @xdg_menudir@ + #>- METASOURCES = AUTO +-usrbindir = /usr/bin ++usrbindir = ${prefix}/bin + k9vamps_LDADD = -lpthread -lm + k9vamps_SOURCES = requant.h vamps.cpp putvlc.h getvlc.h requant.cpp + k9playcell_LDADD = -ldvdread diff --git a/multimedia/k9copy/pkg-descr b/multimedia/k9copy/pkg-descr new file mode 100644 index 00000000000..63014874a1c --- /dev/null +++ b/multimedia/k9copy/pkg-descr @@ -0,0 +1,24 @@ +From K9copy website: + +K9Copy is a small utility which allows the copy of DVD on Linux. +The DVD video stream is compressed by the program Vamps. + +1. Copy without menus : +In this case, dvdauthor is used to create a new DVD structure. It is possible +to choose the order in which the video sequences are played. +2. Copy with menus : +As dvdauthor does not make it possible to integrate the original menus, +K9Copy reproduces the original structure of the DVD. The navigation packs as +well as IFO files are modified to point on the compressed MPEG stream. + +Features +* The video stream is compressed to make the DVD fit on 4.7 Gb recordable DVD +* DVD Burning +* Creation of ISO images +* Possibility of selecting the audio tracks and subtitles to be copied +* Title preview (video only) +* Possibility of preserving the original menus + +WWW: http://k9copy.free.fr + +- Alexander V. Ribchnaky triosoft@triosoft.com.ua diff --git a/multimedia/k9copy/pkg-plist b/multimedia/k9copy/pkg-plist new file mode 100644 index 00000000000..55e686a955e --- /dev/null +++ b/multimedia/k9copy/pkg-plist @@ -0,0 +1,18 @@ +bin/k9copy +bin/k9playcell +bin/k9vamps +share/applnk/Multimedia/K9copy.desktop +share/apps/k9copy/k9copyui.rc +share/doc/HTML/en/k9copy/index.cache.bz2 +share/doc/HTML/en/k9copy/index.docbook +share/doc/HTML/en/k9copy/common +share/icons/hicolor/16x16/apps/k9copy.png +share/icons/hicolor/32x32/apps/k9copy.png +share/icons/hicolor/48x48/apps/k9copy.png +share/locale/en_GB/LC_MESSAGES/k9copy.mo +share/locale/es/LC_MESSAGES/k9copy.mo +share/locale/fr/LC_MESSAGES/k9copy.mo +share/locale/hu/LC_MESSAGES/k9copy.mo +share/locale/it/LC_MESSAGES/k9copy.mo +@dirrm share/doc/HTML/en/k9copy +@dirrm share/apps/k9copy |