View | Details | Raw Unified | Return to bug 171952
Collapse All | Expand All

(-)./Makefile (-41 / +47 lines)
Lines 6-69 Link Here
6
#
6
#
7
7
8
PORTNAME=	dvdauthor
8
PORTNAME=	dvdauthor
9
PORTVERSION=	0.7.0
9
PORTVERSION=	0.7.1
10
PORTREVISION=	3
11
CATEGORIES=	multimedia
10
CATEGORIES=	multimedia
12
MASTER_SITES=	SF
11
MASTER_SITES=	SF
13
12
14
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	nemysis@gmx.ch
15
COMMENT=	Makes a DVD file structure from one or more MPEG2 streams
14
COMMENT=	Makes a DVD file structure from one or more MPEG2 streams
16
15
17
LIB_DEPENDS=	dvdread.4:${PORTSDIR}/multimedia/libdvdread \
16
LICENSE=	GPLv2
18
		fribidi.3:${PORTSDIR}/converters/fribidi \
19
		xml2.5:${PORTSDIR}/textproc/libxml2 \
20
		freetype.9:${PORTSDIR}/print/freetype2
21
17
22
USE_BISON=	build
18
LIB_DEPENDS=	dvdread:${PORTSDIR}/multimedia/libdvdread \
23
USE_GMAKE=	yes
19
		fribidi:${PORTSDIR}/converters/fribidi \
20
		iconv:${PORTSDIR}/converters/libiconv \
21
		freetype:${PORTSDIR}/print/freetype2 \
22
		png15:${PORTSDIR}/graphics/png
23
24
WRKSRC=		${WRKDIR}/${PORTNAME}
25
26
USE_GNOME=	libxml2
24
GNU_CONFIGURE=	yes
27
GNU_CONFIGURE=	yes
25
CFLAGS+=	-I${LOCALBASE}/include
28
USE_GMAKE=	yes
26
LDFLAGS+=	-L${LOCALBASE}/lib
29
CFLAGS+=	-I${LOCALBASE}/include -L${LOCALBASE}/lib
27
WRKSRC=		${WRKDIR}/dvdauthor
28
MAN1=	dvdauthor.1 dvddirdel.1 dvdunauthor.1 mpeg2desc.1 spumux.1 spuunmux.1
29
30
30
.include <bsd.port.pre.mk>
31
DOCSRCDIR1=	${WRKSRC}
32
DOC_FILES1=	AUTHORS ChangeLog README TODO
31
33
32
.if exists(${LOCALBASE}/lib/libfreetype.so.9)
34
DOCSRCDIR2=	${WRKDIR}
33
WITH_FREETYPE=		yes
35
DOC_FILES2=	README.FreeBSD
34
.endif
36
35
.if exists(${LOCALBASE}/lib/libiconv.so)
37
MAN1=		dvdauthor.1 dvddirdel.1 dvdunauthor.1 mpeg2desc.1 spumux.1 spuunmux.1
36
WITH_ICONV=		yes
38
39
OPTIONS_DEFINE=	VIDEO-FORMAT IMAGEMAGICK
40
41
OPTIONS_SINGLE=	VIDEO-FORMAT
42
OPTIONS_SINGLE_VIDEO-FORMAT=	NTSC PAL
43
44
VIDEO-FORMAT_DESC=	Use default video format
45
NTSC_DESC=	Default video format NTSC
46
PAL_DESC=	Default video format PAL
47
48
SUB_FILES=	README.FreeBSD
49
50
.include <bsd.port.options.mk>
51
52
.if ${PORT_OPTIONS:MNTSC}
53
.if ${PORT_OPTIONS:MVIDEO-FORMAT}
54
CONFIGURE_ENV+=	--enable-default-video-format=NTSC
37
.endif
55
.endif
38
.if exists(${LOCALBASE}/lib/libMagickWand.so.5)
39
WITH_IMAGEMAGICK=	yes
40
.endif
56
.endif
41
57
42
.if defined(WITH_ICONV)
58
.if ${PORT_OPTIONS:MPAL}
43
USE_ICONV=	yes
59
.if ${PORT_OPTIONS:MVIDEO-FORMAT}
44
CFLAGS+=	-DICONV_CONV=yes
60
CONFIGURE_ENV+=	--enable-default-video-format=PAL
45
.endif
61
.endif
46
.if defined(WITH_IMAGEMAGICK)
47
LIB_DEPENDS+=	MagickWand.5:${PORTSDIR}/graphics/ImageMagick
48
.else
49
LIB_DEPENDS+=	png15:${PORTSDIR}/graphics/png
50
.endif
62
.endif
51
63
52
pre-everything::
64
.if ${PORT_OPTIONS:MIMAGEMAGICK}
53
.if !defined(WITH_ICONV)
65
LIB_DEPENDS+=	Magick:${PORTSDIR}/graphics/ImageMagick
54
	@${ECHO_MSG} "You can enable Iconv support by defining WITH_ICONV."
55
	@${ECHO_MSG}
56
.endif
57
.if !defined(WITH_IMAGEMAGICK)
58
	@${ECHO_MSG} "You can enable ImageMagick support by defining WITH_IMAGEMAGICK."
59
	@${ECHO_MSG}
60
.endif
66
.endif
61
67
62
post-install:
68
post-install:
63
.if !defined(NOPORTDOCS)
69
.if ${PORT_OPTIONS:MDOCS}
64
	${MKDIR} ${PREFIX}/share/doc/dvdauthor
70
	${MKDIR} ${DOCSDIR}
65
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dvdauthor
71
	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
66
	${INSTALL_DATA} ${FILESDIR}/README.FreeBSD ${PREFIX}/share/doc/dvdauthor
72
	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR}
67
.endif
73
.endif
68
74
69
.include <bsd.port.post.mk>
75
.include <bsd.port.mk>
(-)./distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (dvdauthor-0.7.0.tar.gz) = aea6af7b99eba38ffa9dc5ad1521c2cc652e043cea0e7482e239d2a3fc2f34d0
1
SHA256 (dvdauthor-0.7.1.tar.gz) = 501fb11b09c6eb9c5a229dcb400bd81e408cc78d34eab6749970685023c51fe9
2
SIZE (dvdauthor-0.7.0.tar.gz) = 414191
2
SIZE (dvdauthor-0.7.1.tar.gz) = 421324
(-)./files/README.FreeBSD (-43 lines)
Lines 1-43 Link Here
1
To create mpeg files suitable for a DVD, you can use the
2
multimedia/transcode port.
3
4
To encode video, use the following:
5
	transcode -i .... -y mpeg2enc,null -w 9500 -F '8,-q6 -N -P' -o output
6
7
This creates output.m2v, MPEG2 video at 9500Kbps (peak bitrate).
8
Please refer to the man page of mpeg2desc for various encoder options
9
(to be put after "-F '8,"), and to the MJPEG Tools Howto for useful
10
hints.
11
12
You can add "-J yuvdenoise" to reduce video noise before encoding,
13
this yields very substantial gains in required bit rate.
14
15
For audio:
16
	transcode -i .... -y null,toolame -E 48000 -b 224 -o output
17
This creates output.mp2, MPEG 1 Layer II audio, 48KHz, bitrate 224Kbps.
18
19
Then multiplex the streams:
20
	mplex -f 8 -o output.mpeg output.m2v output.mp2
21
22
You can then use the resulting output.mpeg file with dvdauthor.
23
24
Alternatively, you can use the bbmpeg codec which is faster but not
25
as good in terms of quality, especially at low birates:
26
	transcode -i .... -y mpeg -F d -E 48000 -b 224 -o output
27
	tcmplex -i output.m2v -p output.mpa -m d -o output.mpeg
28
29
Once your DVD is ready, you can use sysutils/dvd+rw-tools to burn
30
it, or burncd(8) if it is a DVD+RW or DVD-RW.
31
32
	Pierre Beyssac (pb@freebsd.org)
33
34
Recommended reading:
35
- mjpegtools home page
36
	http://mjpeg.sourceforge.net/
37
- mjpegtools howto
38
	https://sourceforge.net/docman/display_doc.php?docid=3456&group_id=5776
39
- transcode examples
40
	http://www.theorie.physik.uni-goettingen.de/~ostreich/transcode/html/index.html
41
- "some thoughts on DVD authoring"
42
	http://www.tappin.me.uk/Linux/dvd.html
43
(-)./files/README.FreeBSD.in (+43 lines)
Line 0 Link Here
1
To create mpeg files suitable for a DVD, you can use the
2
multimedia/transcode port.
3
4
To encode video, use the following:
5
	transcode -i .... -y mpeg2enc,null -w 9500 -F '8,-q6 -N -P' -o output
6
7
This creates output.m2v, MPEG2 video at 9500Kbps (peak bitrate).
8
Please refer to the man page of mpeg2desc for various encoder options
9
(to be put after "-F '8,"), and to the MJPEG Tools Howto for useful
10
hints.
11
12
You can add "-J yuvdenoise" to reduce video noise before encoding,
13
this yields very substantial gains in required bit rate.
14
15
For audio:
16
	transcode -i .... -y null,toolame -E 48000 -b 224 -o output
17
This creates output.mp2, MPEG 1 Layer II audio, 48KHz, bitrate 224Kbps.
18
19
Then multiplex the streams:
20
	mplex -f 8 -o output.mpeg output.m2v output.mp2
21
22
You can then use the resulting output.mpeg file with dvdauthor.
23
24
Alternatively, you can use the bbmpeg codec which is faster but not
25
as good in terms of quality, especially at low birates:
26
	transcode -i .... -y mpeg -F d -E 48000 -b 224 -o output
27
	tcmplex -i output.m2v -p output.mpa -m d -o output.mpeg
28
29
Once your DVD is ready, you can use sysutils/dvd+rw-tools to burn
30
it, or burncd(8) if it is a DVD+RW or DVD-RW.
31
32
	Pierre Beyssac (pb@freebsd.org)
33
34
Recommended reading:
35
- mjpegtools home page
36
	http://mjpeg.sourceforge.net/
37
- mjpegtools howto
38
	https://sourceforge.net/docman/display_doc.php?docid=3456&group_id=5776
39
- transcode examples
40
	http://www.theorie.physik.uni-goettingen.de/~ostreich/transcode/html/index.html
41
- "some thoughts on DVD authoring"
42
	http://www.tappin.me.uk/Linux/dvd.html
43
(-)./files/patch-spuunmux.c (-19 lines)
Lines 1-19 Link Here
1
--- src/spuunmux.c.orig	2010-05-10 09:27:55.000000000 +0200
2
+++ src/spuunmux.c	2012-04-27 10:44:31.000000000 +0200
3
@@ -39,6 +39,7 @@
4
 #include <netinet/in.h>
5
 
6
 #include <png.h>
7
+#include <zlib.h>
8
 
9
 #include "rgb.h"
10
 #include "common.h"
11
@@ -610,7 +611,7 @@
12
         png_destroy_write_struct(&png_ptr, (png_infopp)NULL);
13
         return -1;
14
       } /*if*/
15
-    if (setjmp(png_ptr->jmpbuf))
16
+    if (setjmp(png_jmpbuf(png_ptr)))
17
       {
18
         png_destroy_write_struct(&png_ptr, &info_ptr);
19
         fclose(fp);
(-)./pkg-plist (-3 / +7 lines)
Lines 4-12 Link Here
4
bin/mpeg2desc
4
bin/mpeg2desc
5
bin/spumux
5
bin/spumux
6
bin/spuunmux
6
bin/spuunmux
7
share/dvdauthor/dvdauthor.xsd
7
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
8
share/dvdauthor/spumux.xsd
8
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
9
@dirrm share/dvdauthor
10
%%PORTDOCS%%%%DOCSDIR%%/README
9
%%PORTDOCS%%%%DOCSDIR%%/README
11
%%PORTDOCS%%%%DOCSDIR%%/README.FreeBSD
10
%%PORTDOCS%%%%DOCSDIR%%/README.FreeBSD
11
%%PORTDOCS%%%%DOCSDIR%%/TODO
12
%%DATADIR%%/common.xsd
13
%%DATADIR%%/dvdauthor.xsd
14
%%DATADIR%%/spumux.xsd
15
@dirrm %%DATADIR%%
12
%%PORTDOCS%%@dirrm %%DOCSDIR%%
16
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 171952