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

(-)./Makefile (-71 / +65 lines)
Lines 1-59 Link Here
1
# New ports collection makefile for: handbrake
1
# New ports collection makefile for: handbrake
2
# Date created:        19 November 2004
2
# Date created:		19 November 2004
3
# Whom:                Andrew Thompson <andy@fud.org.nz>
3
# Whom:				Andrew Thompson <andy@fud.org.nz>
4
#
4
#
5
# $FreeBSD: ports/multimedia/handbrake/Makefile,v 1.24 2008/07/17 21:06:10 erwin Exp $
5
# $FreeBSD: ports/multimedia/handbrake/Makefile,v 1.24 2008/07/17 21:06:10 erwin Exp $
6
#
6
#
7
7
8
PORTNAME=	handbrake
8
PORTNAME=		handbrake
9
PORTVERSION=	0.9.2
9
PORTVERSION=	0.9.3
10
CATEGORIES=	multimedia
10
CATEGORIES=		multimedia
11
MASTER_SITES=	http://download.handbrake.fr/handbrake/releases/:main \
11
MASTER_SITES=	http://download.m0k.org/handbrake/releases/:main \
12
		http://download.m0k.org/handbrake/releases/:main \
12
				http://download.m0k.org/handbrake/contrib/:contrib
13
		http://download.handbrake.fr/handbrake/contrib/:contrib \
13
DISTFILES=		HandBrake-${PORTVERSION}.tar.gz:main \
14
		http://download.m0k.org/handbrake/contrib/:contrib
14
				a52dec-0.7.4.tar.gz:contrib \
15
DISTFILES=	HandBrake-${PORTVERSION}.tar.gz:main \
15
				faad2-2.6.1.tar.gz:contrib \
16
		faac-1.24.tar.gz:contrib \
16
				ffmpeg-r15462.tar.gz:contrib \
17
		lame-3.96.1.tar.gz:contrib \
17
				libdca-r81-strapped.tar.gz:contrib \
18
		libdca-r81-strapped.tar.gz:contrib \
18
				libdvdread-0.9.7.tar.gz:contrib \
19
		libdvdcss-1.2.9.tar.gz:contrib \
19
				faac-1.26.tar.gz:contrib \
20
		libdvdread-0.9.7.tar.gz:contrib \
20
				lame-3.98.tar.gz:contrib \
21
		libmkv-0.6.1.3.tar.gz:contrib \
21
				libmp4v2-r45.tar.gz:contrib \
22
		libogg-1.1.2.tar.gz:contrib \
22
				libmkv-0.6.3.tar.gz:contrib \
23
		libvorbis-aotuv_b5.tar.gz:contrib \
23
				mpeg2dec-0.5.1.tar.gz:contrib \
24
		mpeg2dec-0.4.1.tar.gz:contrib \
24
				libogg-1.1.3.tar.gz:contrib \
25
		mpeg4ip-1.3.tar.gz:contrib \
25
				libsamplerate-0.1.4.tar.gz:contrib \
26
		xvidcore-1.1.2.tar.gz:contrib \
26
				libvorbis-aotuv_b5.tar.gz:contrib \
27
		ffmpeg-9816.tar.gz:contrib \
27
				libtheora-1.0.tar.gz:contrib \
28
		x264-r736.tar.gz:contrib \
28
				x264-r1028-83baa7f.tar.gz:contrib \
29
		a52dec-0.7.4.tar.gz:contrib \
29
				xvidcore-1.1.3.tar.gz:contrib
30
		libsamplerate-0.1.2.tar.gz:contrib
31
DIST_SUBDIR=	handbrake
30
DIST_SUBDIR=	handbrake
32
31
33
MAINTAINER=	jonathan@kc8onw.net
32
MAINTAINER=		jonathan@kc8onw.net
34
COMMENT=	A DVD to MPEG-4 ripper and encoder
33
COMMENT=	A DVD to MPEG-4 ripper and encoder
35
34
36
BUILD_DEPENDS=	jam:${PORTSDIR}/devel/jam \
35
BUILD_DEPENDS=	jam:${PORTSDIR}/devel/jam \
37
		pkg-config:${PORTSDIR}/devel/pkg-config
36
		pkg-config:${PORTSDIR}/devel/pkg-config
38
LIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2
37
LIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2
39
38
40
NO_CDROM=	CSS code may violate the DMCA
41
42
USE_GMAKE=	yes
39
USE_GMAKE=	yes
43
HAS_CONFIGURE=	yes
40
44
USE_AUTOTOOLS=	libtool:15
41
USE_AUTOTOOLS=	libtool:15
45
LIBTOOLFILES=	${WRKSRC}/contrib/a52dec/configure \
42
LIBTOOLFILES=	${WRKSRC}/configure
46
		${WRKSRC}/contrib/libdvdcss/configure \
47
		${WRKSRC}/contrib/libdvdread/configure \
48
		${WRKSRC}/contrib/faac/configure \
49
		${WRKSRC}/contrib/lame/configure \
50
		${WRKSRC}/contrib/mpeg4ip/configure \
51
		${WRKSRC}/contrib/mpeg2dec/configure \
52
		${WRKSRC}/contrib/libogg/configure \
53
		${WRKSRC}/contrib/libsamplerate/configure \
54
		${WRKSRC}/contrib/libvorbis/configure
55
43
56
WRKSRC=		${WRKDIR}/HandBrake
44
WRKSRC=		${WRKDIR}/HandBrake-0.9.3
57
PLIST_FILES=	bin/handbrake
45
PLIST_FILES=	bin/handbrake
58
46
59
JAM?=		${LOCALBASE}/bin/jam
47
JAM?=		${LOCALBASE}/bin/jam
Lines 61-70 Link Here
61
49
62
.include <bsd.port.pre.mk>
50
.include <bsd.port.pre.mk>
63
51
64
.if ${ARCH} == "amd64"
65
BROKEN=		Needs testing
66
.endif
67
68
# nasm/yasm needed by x264
52
# nasm/yasm needed by x264
69
.if ${ARCH}=="i386"
53
.if ${ARCH}=="i386"
70
BUILD_DEPENDS+=	nasm:${PORTSDIR}/devel/nasm
54
BUILD_DEPENDS+=	nasm:${PORTSDIR}/devel/nasm
Lines 72-123 Link Here
72
BUILD_DEPENDS+=	yasm>=0.6.0:${PORTSDIR}/devel/yasm
56
BUILD_DEPENDS+=	yasm>=0.6.0:${PORTSDIR}/devel/yasm
73
.endif
57
.endif
74
58
75
CONFIGURE_ENV+=	PKG_CONFIG_PATH=${WRKSRC}/contrib/lib/pkgconfig
59
CONFIGURE_ENV+= PKG_CONFIG_PATH=${WRKSRC}/contrib/lib/pkgconfig
76
MAKE_ENV+=	ARCH=${ARCH} MAKE=${GMAKE}
60
MAKE_ENV+=	ARCH=${ARCH} MAKE=${GMAKE}
77
61
78
post-extract:
62
post-extract:
79
	@${APPLY} "${MV} %1 ${WRKSRC}/contrib/" \
63
	@${APPLY} "${MV} %1 ${WRKSRC}/contrib/" \
80
		${WRKDIR}/a52dec \
64
		${WRKDIR}/a52dec \
81
		${WRKDIR}/faac \
65
		${WRKDIR}/faad2 \
82
		${WRKDIR}/ffmpeg \
66
		${WRKDIR}/ffmpeg \
83
		${WRKDIR}/lame \
84
		${WRKDIR}/libdca \
67
		${WRKDIR}/libdca \
85
		${WRKDIR}/libdvdcss \
86
		${WRKDIR}/libdvdread \
68
		${WRKDIR}/libdvdread \
69
		${WRKDIR}/faac \
70
		${WRKDIR}/lame \
71
		${WRKDIR}/libmp4v2 \
87
		${WRKDIR}/libmkv \
72
		${WRKDIR}/libmkv \
73
		${WRKDIR}/mpeg2dec \
88
		${WRKDIR}/libogg \
74
		${WRKDIR}/libogg \
89
		${WRKDIR}/libsamplerate \
75
		${WRKDIR}/libsamplerate \
90
		${WRKDIR}/libvorbis \
76
		${WRKDIR}/libvorbis \
91
		${WRKDIR}/mpeg2dec \
77
		${WRKDIR}/libtheora \
92
		${WRKDIR}/mpeg4ip \
93
		${WRKDIR}/x264 \
78
		${WRKDIR}/x264 \
94
		${WRKDIR}/xvidcore
79
		${WRKDIR}/xvidcore
95
80
96
post-patch:
81
post-patch:
97
	@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' \
82
	@${REINPLACE_CMD} -e 's|machine/soundcard.h|sys/soundcard.h|g' \
83
		${WRKSRC}/contrib/a52dec/libao/audio_out_oss.c
84
	# Remove the ports extraction code as it has already been done in post-extract:
85
	# Fix a hardcoded "make" so gmake is used properly
86
	# Remove a hardcoded "bash"
87
	@${REINPLACE_CMD} -E \
88
		-e 's|rm -rf [a-z0-9.-]* &&||g' \
89
		-e 's|\(gzip.*-) &&||g' \
90
		-e 's|\(gzip.*- ) &&||g' \
91
		-e 's| make | $$(MAKE) |g' \
92
		-e 's|bash ||g' \
93
		${WRKSRC}/contrib/Jamfile
94
95
	# Following multimedia/x264 replace X86 with i386 and X86_64 with amd64
96
	# This appears to be an issue only when building within the ports system
97
	@${REINPLACE_CMD} -E \
98
		-e 's|,X86)|,i386)|g'  \
99
		-e 's|,X86_64)|,amd64)|g' \
100
		${WRKSRC}/contrib/x264/Makefile
101
	# The following patch fixes CPU count detection
102
	@${REINPLACE_CMD} -E \
103
		-e 's|/usr/sbin/sysctl|/sbin/sysctl|g'	\
104
		${WRKSRC}/libhb/ports.c
105
	# Set release version so we don't depend on subversion
106
	@${REINPLACE_CMD} -E \
107
		-e 's|`svnversion`|0.9.3_freebsd-ports|g'  \
98
		${WRKSRC}/configure
108
		${WRKSRC}/configure
99
	@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g ; \
109
	@${REINPLACE_CMD} -E \
100
		s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g ; \
110
		-e 's|\$$\(HB_VERSION\)|0.9.3_freebsd-ports|g'	\
101
		s|%%CONTRIB%%|${WRKSRC}/contrib|g ; \
111
		${WRKSRC}/Makefile
102
		s|./bootstrap|${SETENV} CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" ${CONFIGURE_ENV} ./bootstrap|g ; \
103
		s|./configure|${SETENV} CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" ${CONFIGURE_ENV} ./configure|g' \
104
			${WRKSRC}/contrib/Jamfile
105
	@${REINPLACE_CMD} -e 's|-O3||g ; s|-O20||g ; s|-O4 -ffast-math||g ; \
106
		s| -mtune=.*"|"|g ; s| -mcpu=.*"|"|g ; \
107
		s|-fomit-frame-pointer||g ; s|-pthread|${PTHREAD_LIBS}|g ; \
108
		s|-lpthread|${PTHREAD_LIBS}|g ; \
109
		s|=`echo \".*$$CFLAGS\".*sed.*`|=`echo \"$$OPT_CFLAGS $$CFLAGS\"`|g' \
110
			${WRKSRC}/contrib/*/configure
111
	@${REINPLACE_CMD} -e 's|>&/|>/|g' \
112
		${WRKSRC}/contrib/mpeg4ip/configure
113
	@${REINPLACE_CMD} -e 's|\\$$(PREFIX)|${WRKSRC}/contrib|g ; \
114
		s|$$(PREFIX)|${WRKSRC}/contrib|g ; \
115
		s|$$PREFIX|${WRKSRC}/contrib|g' \
116
			${WRKSRC}/contrib/ffmpeg/configure
117
112
118
# jam -dx, it will giving a verbose of build.
119
do-build:
113
do-build:
120
	@(cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${JAM} -dx)
114
	@(cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${JAM} -q)
121
115
122
do-install:
116
do-install:
123
	${INSTALL_PROGRAM} ${WRKSRC}/HandBrakeCLI ${PREFIX}/bin/handbrake
117
	${INSTALL_PROGRAM} ${WRKSRC}/HandBrakeCLI ${PREFIX}/bin/handbrake
(-)./distinfo (-33 / +39 lines)
Lines 1-48 Link Here
1
MD5 (handbrake/HandBrake-0.9.2.tar.gz) = d21e0a097699e98f308d8c24dfa1594a
1
MD5 (handbrake/HandBrake-0.9.3.tar.gz) = ee79c94b5acd68f28351ba2704b4d55d
2
SHA256 (handbrake/HandBrake-0.9.2.tar.gz) = d5752e29e67d790be6e4ae2578054e5bc303cac8beade46d1851c0ee7e8860a6
2
SHA256 (handbrake/HandBrake-0.9.3.tar.gz) = 2a776ded48285648aedaa73dd90997a0648473a2d9932203b931e7ef54393d30
3
SIZE (handbrake/HandBrake-0.9.2.tar.gz) = 1692074
3
SIZE (handbrake/HandBrake-0.9.3.tar.gz) = 2067663
4
MD5 (handbrake/faac-1.24.tar.gz) = 81dc3efd98f1f2da0ac8bfa315284e95
4
MD5 (handbrake/faad2-2.6.1.tar.gz) = 5f0f3c24c7ab3971acb03995afedb4a5
5
SHA256 (handbrake/faac-1.24.tar.gz) = 8eda7b69669f9d57c114d740555eb8bab29e4add90fade1aed41dd2ac1d19df6
5
SHA256 (handbrake/faad2-2.6.1.tar.gz) = f86eb8d089150c92547721136cae7d228924a085a59fbf7b5af3da625acdb25c
6
SIZE (handbrake/faac-1.24.tar.gz) = 627837
6
SIZE (handbrake/faad2-2.6.1.tar.gz) = 849708
7
MD5 (handbrake/lame-3.96.1.tar.gz) = 9a38f646c2b32c4ef50b4f19b0bafcae
7
MD5 (handbrake/faac-1.26.tar.gz) = 1d7c019bd2dbb4f3101b8937ebc59cf6
8
SHA256 (handbrake/lame-3.96.1.tar.gz) = 93091a5b9342d587a2e97571559ac4cdfbe4a67ec046d7f079d2a0849454e45d
8
SHA256 (handbrake/faac-1.26.tar.gz) = 4b48e2e22267e9260365c7bee4513bf13d262b8b13cf7f9504e9fa612b6aa951
9
SIZE (handbrake/lame-3.96.1.tar.gz) = 1262685
9
SIZE (handbrake/faac-1.26.tar.gz) = 400915
10
MD5 (handbrake/lame-3.98.tar.gz) = 7036b52e792538fd665595d56b9e49a0
11
SHA256 (handbrake/lame-3.98.tar.gz) = 40235e84dfe4760ad3f352590a64b7bda1502a386c97d06229df356426e37686
12
SIZE (handbrake/lame-3.98.tar.gz) = 1411318
10
MD5 (handbrake/libdca-r81-strapped.tar.gz) = 448bab6df6e4f738e4afaa6ebc085d65
13
MD5 (handbrake/libdca-r81-strapped.tar.gz) = 448bab6df6e4f738e4afaa6ebc085d65
11
SHA256 (handbrake/libdca-r81-strapped.tar.gz) = ab2519af6c2f12411a2bd674b83615af9b0d5fb09f28ad5dab714ea1bfab9df1
14
SHA256 (handbrake/libdca-r81-strapped.tar.gz) = ab2519af6c2f12411a2bd674b83615af9b0d5fb09f28ad5dab714ea1bfab9df1
12
SIZE (handbrake/libdca-r81-strapped.tar.gz) = 523282
15
SIZE (handbrake/libdca-r81-strapped.tar.gz) = 523282
13
MD5 (handbrake/libdvdcss-1.2.9.tar.gz) = 3d15875225e8738e9a8300bede32fbab
14
SHA256 (handbrake/libdvdcss-1.2.9.tar.gz) = f967f061a41c9e9fe21cca1ef1fc0e7c377145fa23c39d9df8d16a3af5b623bc
15
SIZE (handbrake/libdvdcss-1.2.9.tar.gz) = 390930
16
MD5 (handbrake/libdvdread-0.9.7.tar.gz) = a89a8532d5f850014f375bd3f5972082
16
MD5 (handbrake/libdvdread-0.9.7.tar.gz) = a89a8532d5f850014f375bd3f5972082
17
SHA256 (handbrake/libdvdread-0.9.7.tar.gz) = 18cf0ee3887264f09f2e23672923aec821ae9b806415ae0d78d0e310c1304c1f
17
SHA256 (handbrake/libdvdread-0.9.7.tar.gz) = 18cf0ee3887264f09f2e23672923aec821ae9b806415ae0d78d0e310c1304c1f
18
SIZE (handbrake/libdvdread-0.9.7.tar.gz) = 388570
18
SIZE (handbrake/libdvdread-0.9.7.tar.gz) = 388570
19
MD5 (handbrake/libmkv-0.6.1.3.tar.gz) = b0a81a416bffe19d54236f241632933c
19
MD5 (handbrake/libmkv-0.6.3.tar.gz) = 852f72926c40fb191c1656edc0001753
20
SHA256 (handbrake/libmkv-0.6.1.3.tar.gz) = b116504390d3ec178ecb3cd6fb12e062b62b0909a7f1adcbaba00ed64fe63347
20
SHA256 (handbrake/libmkv-0.6.3.tar.gz) = 3ad2aee66e26987b3cad63620d84661bd149a8a70e0350f0d762f153f58c68b7
21
SIZE (handbrake/libmkv-0.6.1.3.tar.gz) = 329899
21
SIZE (handbrake/libmkv-0.6.3.tar.gz) = 341121
22
MD5 (handbrake/libogg-1.1.2.tar.gz) = 4018e57063a9e5ce35145d73bea4b18b
22
MD5 (handbrake/libogg-1.1.3.tar.gz) = e3b881ea94a6d29749a19b024d2974ef
23
SHA256 (handbrake/libogg-1.1.2.tar.gz) = 0572ac9027caadb6ee4c2e3c87f98b045a66216ff2006041b12fceb5fb2f0332
23
SHA256 (handbrake/libogg-1.1.3.tar.gz) = 645676dd006c8424fde52df2edd0f52d6402b12c563b50c46e9540083241d50c
24
SIZE (handbrake/libogg-1.1.2.tar.gz) = 423463
24
SIZE (handbrake/libogg-1.1.3.tar.gz) = 401303
25
MD5 (handbrake/libvorbis-aotuv_b5.tar.gz) = e282d60273dcc8cc6602f65b434f3591
25
MD5 (handbrake/libvorbis-aotuv_b5.tar.gz) = e282d60273dcc8cc6602f65b434f3591
26
SHA256 (handbrake/libvorbis-aotuv_b5.tar.gz) = 1e3c5b974e3d16a924eb0af12516a2b0b14aae24d46d32395cd997d833e84509
26
SHA256 (handbrake/libvorbis-aotuv_b5.tar.gz) = 1e3c5b974e3d16a924eb0af12516a2b0b14aae24d46d32395cd997d833e84509
27
SIZE (handbrake/libvorbis-aotuv_b5.tar.gz) = 1345888
27
SIZE (handbrake/libvorbis-aotuv_b5.tar.gz) = 1345888
28
MD5 (handbrake/mpeg2dec-0.4.1.tar.gz) = 1b446bb8e627b21820b065fd7071214b
28
MD5 (handbrake/mpeg2dec-0.5.1.tar.gz) = a6173dc90cfe7f0414624c3c8bbad727
29
SHA256 (handbrake/mpeg2dec-0.4.1.tar.gz) = 8029b7d96dbcee9dc2d140fd872a2cded3eadb8cb6679dc75edc717c18445c44
29
SHA256 (handbrake/mpeg2dec-0.5.1.tar.gz) = 161539061aa89864968a5150ed6c6a028a830c4868f7dd7c500732baef47fb71
30
SIZE (handbrake/mpeg2dec-0.4.1.tar.gz) = 498874
30
SIZE (handbrake/mpeg2dec-0.5.1.tar.gz) = 522405
31
MD5 (handbrake/mpeg4ip-1.3.tar.gz) = fdc1b857485842f8daa2b17d77a45e69
31
MD5 (handbrake/mpeg4ip-1.3.tar.gz) = fdc1b857485842f8daa2b17d77a45e69
32
SHA256 (handbrake/mpeg4ip-1.3.tar.gz) = 052b2fc6a880a3c7834a9a60b9520f6e8e7846534e4c99fb15e6675a75eff2a3
32
SHA256 (handbrake/mpeg4ip-1.3.tar.gz) = 052b2fc6a880a3c7834a9a60b9520f6e8e7846534e4c99fb15e6675a75eff2a3
33
SIZE (handbrake/mpeg4ip-1.3.tar.gz) = 4719855
33
SIZE (handbrake/mpeg4ip-1.3.tar.gz) = 4719855
34
MD5 (handbrake/xvidcore-1.1.2.tar.gz) = 671480af5816332c86f7ca74a2c90258
34
MD5 (handbrake/xvidcore-1.1.3.tar.gz) = 1416161e20d4b2ca2b8d608fc5cfcac6
35
SHA256 (handbrake/xvidcore-1.1.2.tar.gz) = b7ee6b752e5a4682605ba11bd52b80f02f72f7b1b23721d721e0a1c83f493aa6
35
SHA256 (handbrake/xvidcore-1.1.3.tar.gz) = 1a4a7748e93d3a1a4033fc843d6170f803520c5844047ae75df0269a093bedb6
36
SIZE (handbrake/xvidcore-1.1.2.tar.gz) = 740185
36
SIZE (handbrake/xvidcore-1.1.3.tar.gz) = 739835
37
MD5 (handbrake/ffmpeg-9816.tar.gz) = cfc6b97f830eddccbbb82b97ee6e3b78
37
MD5 (handbrake/ffmpeg-r15462.tar.gz) = 0330982d8b3ef9d24d0169fda164a182
38
SHA256 (handbrake/ffmpeg-9816.tar.gz) = 23a38e102fa3d2df67e17e21a52d068665580d4fa5bb1d0e6ca4abb5a23894f2
38
SHA256 (handbrake/ffmpeg-r15462.tar.gz) = 28d2ef1414fa49f5d10d90234b9a06855561f8231a816ef4c060a1aea069eefc
39
SIZE (handbrake/ffmpeg-9816.tar.gz) = 2706937
39
SIZE (handbrake/ffmpeg-r15462.tar.gz) = 3154052
40
MD5 (handbrake/x264-r736.tar.gz) = ea5dc8c2bfe33dc136687366237556db
40
MD5 (handbrake/x264-r1028-83baa7f.tar.gz) = ccf66883c5e33c30675c3bfad5c31875
41
SHA256 (handbrake/x264-r736.tar.gz) = fb020efbf89e8baf3b1ec93ee05c8cace4557a9658dffb99ef7d3e37521bbf3b
41
SHA256 (handbrake/x264-r1028-83baa7f.tar.gz) = ed36cb12f7d98b56d1ce19be22bf9c40c9aa9e46bb718e4505864294af023f83
42
SIZE (handbrake/x264-r736.tar.gz) = 794658
42
SIZE (handbrake/x264-r1028-83baa7f.tar.gz) = 2325933
43
MD5 (handbrake/a52dec-0.7.4.tar.gz) = ce5a978bb359f642dcbd24c6e14a45a7
43
MD5 (handbrake/a52dec-0.7.4.tar.gz) = ce5a978bb359f642dcbd24c6e14a45a7
44
SHA256 (handbrake/a52dec-0.7.4.tar.gz) = 54981ab08fc09a675b9924372cf0cca5aa5363b918c4c19065c2d40e2858be47
44
SHA256 (handbrake/a52dec-0.7.4.tar.gz) = 54981ab08fc09a675b9924372cf0cca5aa5363b918c4c19065c2d40e2858be47
45
SIZE (handbrake/a52dec-0.7.4.tar.gz) = 242978
45
SIZE (handbrake/a52dec-0.7.4.tar.gz) = 242978
46
MD5 (handbrake/libsamplerate-0.1.2.tar.gz) = d53fbef1b1674bfee9d4fee5c2d0b627
46
MD5 (handbrake/libsamplerate-0.1.4.tar.gz) = 69ec6c05f487458f688dda8f3e722e5d
47
SHA256 (handbrake/libsamplerate-0.1.2.tar.gz) = c2bcb7de8cb15ea6cf68a211db5920fd22beb69071b80823714ecfde7eb398fa
47
SHA256 (handbrake/libsamplerate-0.1.4.tar.gz) = 4b4af3ecaee05c8875a9b113c6a2f816f06f283fb882914e57b21c0b08b67b75
48
SIZE (handbrake/libsamplerate-0.1.2.tar.gz) = 711602
48
SIZE (handbrake/libsamplerate-0.1.4.tar.gz) = 4259244
49
MD5 (handbrake/libtheora-1.0.tar.gz) = d6d8ac6c75a3d0e5995f328c2d721df0
50
SHA256 (handbrake/libtheora-1.0.tar.gz) = 34f82b0b187ae4d8161693f396d1a4457b1bade0ee15c54a46630a2f4bfc33fc
51
SIZE (handbrake/libtheora-1.0.tar.gz) = 1946620
52
MD5 (handbrake/libmp4v2-r45.tar.gz) = b568ba3440c91155f21121c7f378fc14
53
SHA256 (handbrake/libmp4v2-r45.tar.gz) = 137cbc22c368c85fcbee8460605d93350044bc4c1a6f781e8d84357ce5f6afe1
54
SIZE (handbrake/libmp4v2-r45.tar.gz) = 461723
(-)./files/patch-configure (-16 lines)
Lines 1-16 Link Here
1
--- configure.orig	2007-12-07 17:24:34.000000000 -0600
2
+++ configure	2007-12-07 17:25:50.000000000 -0600
3
@@ -1,9 +1,9 @@
4
 #! /bin/sh
5
 
6
-CC="gcc"
7
-CXX="g++"
8
-CCFLAGS="$CCFLAGS -Wall -g"
9
-OPTIM="$OPTIM -O3 -funroll-loops"
10
+CC="${CC-gcc}"
11
+CXX="${CXX-g++}"
12
+CCFLAGS="${CFLAGS--Wall -g}"
13
+OPTIM=""
14
 LINKLIBS="-lz"
15
 
16
 # System-specific flags
(-)./files/patch-contrib-Jamfile (-235 / +18 lines)
Lines 1-5 Link Here
1
--- contrib/Jamfile.orig	2008-05-21 05:18:06.844254734 +0300
1
--- contrib/Jamfile.orig        2008-11-28 10:27:18.908822069 -0500
2
+++ contrib/Jamfile	2008-05-21 06:00:18.032459924 +0300
2
+++ contrib/Jamfile     2008-11-28 10:27:21.787542159 -0500
3
@@ -34,9 +34,10 @@
3
@@ -34,9 +34,10 @@
4
 }
4
 }
5
 actions Wget
5
 actions Wget
Lines 14-251 Link Here
14
 }
14
 }
15
 
15
 
16
 # liba52
16
 # liba52
17
@@ -48,10 +49,9 @@
17
@@ -99,6 +100,16 @@
18
 actions LibA52
18
        FFMPEG_EXTRA_OPTIONS = "--disable-vis --disable-demuxer=mpc8 --disable-vhook --disable-network" ;
19
 {
20
 
21
-    cd `dirname $(>)` && CONTRIB=`pwd` &&
22
-    rm -rf a52dec && (gzip -dc a52dec.tar.gz | tar xf -) && 
23
-    cd a52dec && $(PATCH) -p1 < ../patch-a52dec.patch &&
24
-    ./configure --prefix=$CONTRIB --cache-file=$CONTRIB/config.cache && $(MAKE) && $(MAKE) install &&
25
+    CONTRIB=%%CONTRIB%% &&
26
+    cd $CONTRIB/a52dec && patch -p1 < ../patch-a52dec.patch &&
27
+    ./configure --prefix=$CONTRIB && $(MAKE) && $(MAKE) install &&
28
     $(STRIP) $CONTRIB/lib/liba52.a
29
 }
30
 Wget   $(SUBDIR)/a52dec.tar.gz : $(SUBDIR)/version_a52dec.txt ;
31
@@ -75,10 +75,9 @@
32
 }
33
 actions LibAvCodec
34
 {
35
-    cd `dirname $(>)` && CONTRIB=`pwd` &&
36
-    rm -rf ffmpeg && (gzip -dc ffmpeg.tar.gz | tar xf -) &&
37
-    cd ffmpeg && $(FFMPEG_PATCH) &&
38
-    ./configure --prefix=$CONTRIB --enable-gpl --enable-pthreads --enable-swscaler --disable-audio-beos --disable-shared --enable-static \
39
+    CONTRIB=%%CONTRIB%% &&
40
+    cd $CONTRIB/ffmpeg && $(FFMPEG_PATCH) &&
41
+    ./configure --prefix="$CONTRIB" --cc="%%CC%%" --extra-libs="%%PTHREAD_LIBS%%" --enable-gpl --enable-pthreads --enable-swscaler --disable-audio-beos --disable-shared --enable-static --disable-opts \
42
         --disable-decoders --enable-decoder=mp2 --disable-parsers --enable-parser=mpegaudio \
43
         --disable-encoders --enable-encoder=mpeg4 --enable-encoder=ac3 --enable-encoder=snow \
44
         --disable-muxers --enable-muxer=ipod --disable-demuxers --disable-protocols --disable-bsfs &&
45
@@ -113,10 +112,9 @@
46
     }
47
     actions LibDvdCss
48
     {
49
-        cd `dirname $(>)` && CONTRIB=`pwd` &&
50
-        rm -rf libdvdcss && (gzip -dc libdvdcss.tar.gz | tar xf - ) && 
51
-        cd libdvdcss &&
52
-        ./configure --prefix=$CONTRIB --cache-file=$CONTRIB/config.cache && $(MAKE) && $(MAKE) install &&
53
+        CONTRIB=%%CONTRIB%% &&
54
+        cd $CONTRIB/libdvdcss &&
55
+        ./configure --prefix=$CONTRIB && $(MAKE) && $(MAKE) install &&
56
         $(STRIP) $CONTRIB/lib/libdvdcss.a
57
     }
58
     Wget      $(SUBDIR)/libdvdcss.tar.gz : $(SUBDIR)/version_libdvdcss.txt ;
59
@@ -131,10 +129,9 @@
60
 }
61
 actions LibDCA
62
 {
63
-    cd `dirname $(>)` && CONTRIB=`pwd` &&
64
-    rm -rf libdca && (gzip -dc libdca.tar.gz | tar xf - ) && 
65
-    cd libdca && $(PATCH) -p1 < ../patch-libdca.patch &&
66
-    ./configure --prefix=$CONTRIB --cache-file=$CONTRIB/config.cache && $(MAKE) && $(MAKE) install &&
67
+    CONTRIB=%%CONTRIB%% &&
68
+    cd $CONTRIB/libdca && patch -p1 < ../patch-libdca.patch &&
69
+    ./configure --prefix=$CONTRIB && $(MAKE) && $(MAKE) install &&
70
     $(STRIP) $CONTRIB/lib/libdca.a
71
 }
72
 Wget   $(SUBDIR)/libdca.tar.gz : $(SUBDIR)/version_libdca.txt ;
73
@@ -150,10 +147,9 @@
74
 {
75
     actions LibDvdRead
76
     {
77
-        cd `dirname $(>)` && CONTRIB=`pwd` &&
78
-        rm -rf libdvdread && (gzip -dc libdvdread.tar.gz | tar xf - ) && 
79
-        cd libdvdread &&
80
-        ./configure --prefix=$CONTRIB --cache-file=$CONTRIB/config.cache --disable-shared --with-libdvdcss=$CONTRIB &&
81
+        CONTRIB=%%CONTRIB%% &&
82
+        cd $CONTRIB/libdvdread &&
83
+        ./configure --prefix=$CONTRIB --disable-shared --with-libdvdcss=$CONTRIB &&
84
         $(MAKE) && $(MAKE) install &&
85
         $(STRIP) $CONTRIB/lib/libdvdread.a
86
     }
19
     }
87
@@ -163,10 +159,9 @@
20
 
88
     # configure line.
21
+    if $(OS) = FREEBSD
89
     actions LibDvdRead
22
+    {
90
     {
23
+       #
91
-        cd `dirname $(>)` && CONTRIB=`pwd` &&
24
+       # Not all of ffmpeg works on FreeBSD - disable the bits that
92
-        rm -rf libdvdread && (gzip -dc libdvdread.tar.gz | tar xf - ) && 
25
+       # don't. When we get new versions of FFMPEG we can try enabling
93
-        cd libdvdread &&
26
+       # them again.
94
-        ./configure --prefix=$CONTRIB --cache-file=$CONTRIB/config.cache --disable-shared &&
27
+       #
95
+        CONTRIB=%%CONTRIB%% &&
28
+       FFMPEG_EXTRA_OPTIONS = "--disable-devices" ;
96
+        cd $CONTRIB/libdvdread &&
29
+    }
97
+        ./configure --prefix=$CONTRIB --disable-shared &&
30
+
98
         $(MAKE) && $(MAKE) install &&
31
     Depends $(<) : $(>) ;
99
         $(STRIP) $CONTRIB/lib/libdvdread.a
32
     Depends lib  : $(<) ;
100
     }
101
@@ -182,9 +177,9 @@
102
 }
103
 actions LibFaac
104
 {
105
-    cd `dirname $(>)` && CONTRIB=`pwd` &&
106
-    rm -rf faac && (gzip -dc faac.tar.gz | tar xf - ) && cd faac &&
107
-    ./configure --prefix=$CONTRIB --cache-file=$CONTRIB/config.cache --disable-shared --enable-static &&
108
+    CONTRIB=%%CONTRIB%% &&
109
+    cd $CONTRIB/faac &&
110
+    ./configure --prefix=$CONTRIB --disable-shared --enable-static &&
111
     $(MAKE) && $(MAKE) install &&
112
     $(STRIP) $CONTRIB/lib/libfaac.a
113
 }
114
@@ -199,9 +194,9 @@
115
 }
116
 actions LibMp3Lame
117
 {
118
-    cd `dirname $(>)` && CONTRIB=`pwd` &&
119
-    rm -rf lame && (gzip -dc lame.tar.gz | tar xf - ) && cd lame &&
120
-    ./configure --prefix=$CONTRIB --cache-file=$CONTRIB/config.cache --disable-shared &&
121
+    CONTRIB=%%CONTRIB%% &&
122
+    cd $CONTRIB/lame &&
123
+    ./configure --prefix=$CONTRIB --disable-shared &&
124
     $(MAKE) && $(MAKE) install &&
125
     $(STRIP) $CONTRIB/lib/libmp3lame.a
126
 }
127
@@ -224,10 +219,10 @@
128
 }
129
 actions LibMp4v2
130
 {
131
-    cd `dirname $(>)` && CONTRIB=`pwd` &&
132
-    rm -rf mpeg4ip && (gzip -dc mpeg4ip.tar.gz | tar xf - ) &&
133
-    cd mpeg4ip && $(LIBMP4V2_PATCH)
134
-    ./bootstrap --cache-file=$CONTRIB/config.cache --disable-mp3lame --disable-faac --disable-x264 --disable-server --disable-player &&
135
+    CONTRIB=%%CONTRIB%% &&
136
+    cd $CONTRIB/mpeg4ip &&
137
+    $(LIBMP4V2_PATCH)
138
+    ./bootstrap --disable-mp3lame --disable-faac --disable-x264 --disable-server --disable-player &&
139
     $(MAKE) -C lib/mp4v2 libmp4v2.la && cp lib/mp4v2/.libs/libmp4v2.a $CONTRIB/lib &&
140
     cp mpeg4ip_config.h include/mpeg4ip.h include/mpeg4ip_version.h \
141
         include/mpeg4ip_win32.h lib/mp4v2/*.h $CONTRIB/include &&
142
@@ -243,10 +238,9 @@
143
 }
144
 actions LibMkv
145
 {
146
-    cd `dirname $(>)` && CONTRIB=`pwd` &&
147
-    rm -rf libmkv && (gzip -dc libmkv.tar.gz | tar xf - ) && 
148
-    cd libmkv &&
149
-    ./configure --disable-shared --enable-static --prefix=$CONTRIB --cache-file=$CONTRIB/config.cache &&
150
+    CONTRIB=%%CONTRIB%% &&
151
+    cd $CONTRIB/libmkv &&
152
+    ./configure --disable-shared --enable-static --prefix=$CONTRIB &&
153
     $(MAKE) && $(MAKE) install &&
154
     $(STRIP) $CONTRIB/lib/libmkv.a
155
 }
156
@@ -261,10 +255,9 @@
157
 }
158
 actions LibMpeg2
159
 {
160
-    cd `dirname $(>)` && CONTRIB=`pwd` &&
161
-    rm -rf mpeg2dec && (gzip -dc mpeg2dec.tar.gz | tar xf - ) && 
162
-    cd mpeg2dec && $(PATCH) -p1 < ../patch-libmpeg2.patch &&
163
-    ./configure --prefix=$CONTRIB --cache-file=$CONTRIB/config.cache --disable-shared --disable-sdl &&
164
+    CONTRIB=%%CONTRIB%% &&
165
+    cd $CONTRIB/mpeg2dec && patch -p1 < ../patch-libmpeg2.patch &&
166
+    ./configure --prefix=$CONTRIB --disable-shared --disable-sdl &&
167
     $(MAKE) && $(MAKE) install &&
168
     $(STRIP) $CONTRIB/lib/libmpeg2.a
169
 }
170
@@ -279,10 +272,9 @@
171
 }
172
 actions LibOgg
173
 {
174
-    cd `dirname $(>)` && CONTRIB=`pwd` &&
175
-    rm -rf libogg && (gzip -dc libogg.tar.gz | tar xf - ) && 
176
-    cd libogg &&
177
-    ./configure --prefix=$CONTRIB --cache-file=$CONTRIB/config.cache --disable-shared &&
178
+    CONTRIB=%%CONTRIB%% &&
179
+    cd $CONTRIB/libogg &&
180
+    ./configure --prefix=$CONTRIB --disable-shared &&
181
     $(MAKE) && $(MAKE) install &&
182
     $(STRIP) $CONTRIB/lib/libogg.a
183
 }
184
@@ -297,10 +289,9 @@
185
 }
186
 actions LibSampleRate
187
 {
188
-    cd `dirname $(>)` && CONTRIB=`pwd` &&
189
-    rm -rf libsamplerate && (gzip -dc libsamplerate.tar.gz | tar xf - ) && 
190
-    cd libsamplerate &&
191
-    ./configure --prefix=$CONTRIB --cache-file=$CONTRIB/config.cache --disable-shared &&
192
+    CONTRIB=%%CONTRIB%% &&
193
+    cd $CONTRIB/libsamplerate &&
194
+    ./configure --prefix=$CONTRIB --disable-shared &&
195
     $(MAKE) && $(MAKE) install &&
196
     $(STRIP) $CONTRIB/lib/libsamplerate.a
197
 }
198
@@ -315,10 +306,9 @@
199
 }
200
 actions LibVorbis
201
 {
202
-    cd `dirname $(>)` && CONTRIB=`pwd` &&
203
-    rm -rf libvorbis && (gzip -dc libvorbis.tar.gz | tar xf - ) &&
204
-    cd libvorbis &&
205
-    ./configure --prefix=$CONTRIB --with-ogg=$CONTRIB --cache-file=$CONTRIB/config.cache --disable-shared &&
206
+    CONTRIB=%%CONTRIB%% &&
207
+    cd $CONTRIB/libvorbis &&
208
+    ./configure --prefix=$CONTRIB --with-ogg=$CONTRIB --disable-shared &&
209
     $(MAKE) && $(MAKE) install &&
210
     $(STRIP) $CONTRIB/lib/libvorbis.a
211
 }
212
@@ -356,10 +346,9 @@
213
 }
214
 actions LibX264
215
 {
216
-    cd `dirname $(>)` && CONTRIB=`pwd` &&
217
-    rm -rf x264 && (gzip -dc x264.tar.gz | tar xf - ) && 
218
-    cd x264 && $(LIBX264_PATCH)
219
-    bash ./configure --prefix=$CONTRIB --enable-pthread &&
220
+    CONTRIB=%%CONTRIB%% &&
221
+    cd $CONTRIB/x264 && $(LIBX264_PATCH)
222
+    ./configure --prefix=$CONTRIB --enable-pthread && $(MAKE) &&
223
     $(MAKE) libx264.a && cp libx264.a $CONTRIB/lib/ && cp x264.h $CONTRIB/include/ && $(STRIP) $CONTRIB/lib/libx264.a
224
 }
225
 Wget    $(SUBDIR)/x264.tar.gz   : $(SUBDIR)/version_x264.txt ;
226
@@ -383,10 +372,9 @@
227
 }
33
 }
228
 actions LibXvidCore
34
229
 {
230
-    cd `dirname $(>)` && CONTRIB=`pwd` &&
231
-    rm -rf xvidcore && (gzip -dc xvidcore.tar.gz | tar xf - ) &&
232
-    cd xvidcore && $(LIBXVIDCORE_PATCH)
233
-    cd build/generic/ && ./configure --prefix=$CONTRIB --cache-file=$CONTRIB/config.cache && $(MAKE) libxvidcore.a &&
234
+    CONTRIB=%%CONTRIB%% &&
235
+    cd $CONTRIB/xvidcore && $(LIBXVIDCORE_PATCH)
236
+    cd build/generic/ && ./configure --prefix=$CONTRIB && $(MAKE) libxvidcore.a &&
237
     cp ./=build/libxvidcore.a $CONTRIB/lib/ &&
238
     cp ../../src/xvid.h $CONTRIB/include/ &&
239
     $(STRIP) $CONTRIB/lib/libxvidcore.a
240
@@ -404,9 +392,8 @@
241
     }
242
     actions Zlib
243
     {
244
-        cd `dirname $(>)` && CONTRIB=`pwd` &&
245
-        rm -rf zlib && (gzip -dc zlib.tar.gz | tar xf - ) &&
246
-        cd zlib && ./configure --prefix=$CONTRIB &&
247
+        CONTRIB=%%CONTRIB%% &&
248
+        cd $CONTRIB/zlib && ./configure --prefix=$CONTRIB &&
249
         $(MAKE) && $(MAKE) install && touch $CONTRIB/.contrib &&
250
         $(STRIP) $CONTRIB/lib/libz.a
251
     }
(-)./files/patch-contrib-a52dec-configure (-11 lines)
Lines 1-11 Link Here
1
--- contrib/a52dec/configure.orig	2008-02-19 19:53:29.000000000 +0800
2
+++ contrib/a52dec/configure	2008-02-19 19:54:14.000000000 +0800
3
@@ -9640,7 +9640,7 @@
4
 
5
 
6
 
7
-LIBA52_CFLAGS="$LIBA52_CFLAGS -prefer-non-pic"
8
+LIBA52_CFLAGS="$LIBA52_CFLAGS"
9
 
10
 # Check whether --enable-double or --disable-double was given.
11
 if test "${enable_double+set}" = set; then
(-)./files/patch-contrib-a52dec-libao-audio_out_oss.c (-11 lines)
Lines 1-11 Link Here
1
--- ../../work/HandBrake/contrib/a52dec/libao/audio_out_oss.c	2002-04-28 12:23:02.000000000 +0200
2
+++ contrib/a52dec/libao/audio_out_oss.c	2007-12-06 03:06:05.000000000 +0100
3
@@ -35,7 +35,7 @@
4
 #if defined(__OpenBSD__)
5
 #include <soundcard.h>
6
 #elif defined(__FreeBSD__)
7
-#include <machine/soundcard.h>
8
+#include <sys/soundcard.h>
9
 #ifndef AFMT_S16_NE
10
 #include <machine/endian.h>
11
 #if BYTE_ORDER == LITTLE_ENDIAN
(-)./files/patch-contrib-libavformat-udp.c (+10 lines)
Line 0 Link Here
1
--- contrib/ffmpeg/libavformat/udp.c.orig	2008-11-28 11:10:53.217812028 -0500
2
+++ contrib/ffmpeg/libavformat/udp.c	2008-11-28 11:11:20.566271071 -0500
3
@@ -29,6 +29,7 @@
4
 #include <unistd.h>
5
 #include "network.h"
6
 #include "os_support.h"
7
+#define IPPROTO_IPV6            41              /* IP6 header */
8
 
9
 #ifndef IPV6_ADD_MEMBERSHIP
10
 #define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP
(-)./files/patch-contrib-libsamplerate-configure (-20 lines)
Lines 1-20 Link Here
1
--- ../../work/HandBrake/contrib/libsamplerate/configure	2004-09-12 04:57:51.000000000 +0200
2
+++ contrib/libsamplerate/configure	2007-12-06 03:14:12.000000000 +0100
3
@@ -22293,7 +22293,7 @@
4
 # Now use the information from the checking stage.
5
 
6
 # Need to make examples directory before tests directory.
7
-subdirs="src doc examples tests"
8
+subdirs="src doc examples"
9
 
10
 
11
 cat >>confdefs.h <<\_ACEOF
12
@@ -22321,7 +22321,7 @@
13
 
14
 
15
 
16
-                                                                                                    ac_config_files="$ac_config_files Makefile src/Version_script Win32/Makefile Win32/Makefile.mingw src/Makefile examples/Makefile tests/Makefile doc/Makefile libsamplerate.spec samplerate.pc"
17
+                                                                                                    ac_config_files="$ac_config_files Makefile src/Version_script Win32/Makefile Win32/Makefile.mingw src/Makefile examples/Makefile doc/Makefile libsamplerate.spec samplerate.pc"
18
 
19
 cat >confcache <<\_ACEOF
20
 # This file is a shell script that caches the results of configure
(-)./files/patch-contrib-mpeg2dec-configure (-11 lines)
Lines 1-11 Link Here
1
--- contrib/mpeg2dec/configure.orig	2008-02-19 19:54:39.000000000 +0800
2
+++ contrib/mpeg2dec/configure	2008-02-19 19:55:08.000000000 +0800
3
@@ -23981,7 +23981,7 @@
4
     cd ..; rm -fr ac_test_libtool; echo "$as_me:$LINENO: result: $ac_cv_libtool_non_pic" >&5
5
 echo "${ECHO_T}$ac_cv_libtool_non_pic" >&6
6
     if test x"$ac_cv_libtool_non_pic" = x"yes"; then
7
-	LIBMPEG2_CFLAGS="$LIBMPEG2_CFLAGS -prefer-non-pic"
8
+	LIBMPEG2_CFLAGS="$LIBMPEG2_CFLAGS"
9
     else
10
 	:
11
     fi
(-)./files/patch-contrib-x264-Makefile (-20 lines)
Lines 1-20 Link Here
1
--- ../HandBrake_old/contrib/x264/Makefile	2007-07-15 22:45:03.000000000 +0200
2
+++ contrib/x264/Makefile	2007-12-06 01:17:21.000000000 +0100
3
@@ -18,7 +18,7 @@
4
 endif
5
 
6
 # MMX/SSE optims
7
-ifeq ($(ARCH),X86)
8
+ifeq ($(ARCH),i386)
9
 ifneq ($(AS),)
10
 SRCS   += common/i386/mc-c.c common/i386/predict-c.c
11
 ASMSRC  = common/i386/dct-a.asm common/i386/cpu-a.asm \
12
@@ -32,7 +32,7 @@
13
 endif
14
 
15
 # MMX/SSE optims
16
-ifeq ($(ARCH),X86_64)
17
+ifeq ($(ARCH),amd64)
18
 ifneq ($(AS),)
19
 SRCS   += common/i386/mc-c.c common/i386/predict-c.c
20
 ASMSRC  = common/amd64/dct-a.asm common/amd64/cpu-a.asm \
(-)./files/patch-contrib-x264-configure (-11 lines)
Lines 1-11 Link Here
1
--- ../HandBrake_old/contrib/x264/configure	2007-07-15 22:45:03.000000000 +0200
2
+++ contrib/x264/configure	2007-12-06 01:16:03.000000000 +0100
3
@@ -160,7 +160,7 @@
4
     fi
5
     as_check || AS="nasm"
6
     ;;
7
-  x86_64)
8
+  x86_64 | amd64)
9
     ARCH="X86_64"
10
     AS="yasm"
11
     ASFLAGS="-f elf -m amd64"
(-)./files/patch-libhb-fifo.c (-7 / +7 lines)
Lines 1-13 Link Here
1
--- ../../work_old/HandBrake/libhb/fifo.c	2008-02-19 19:28:17.000000000 +0100
1
--- HandBrake_old/libhb/fifo.c	2007-10-08 22:57:08.000000000 +0200
2
+++ libhb/fifo.c	2008-06-17 23:02:48.000000000 +0200
2
+++ libhb/fifo.c	2007-12-04 05:55:37.000000000 +0100
3
@@ -6,7 +6,9 @@
3
@@ -6,9 +6,7 @@
4
 
4
 
5
 #include "hb.h"
5
 #include "hb.h"
6
 
6
 
7
-#ifndef SYS_DARWIN
7
-#ifndef SYS_DARWIN
8
+#if defined( SYS_FREEBSD )
8
-#include <malloc.h>
9
-#endif
9
+#include <stdlib.h>
10
+#include <stdlib.h>
10
+#elif !defined( SYS_DARWIN )
11
 #include <malloc.h>
12
 #endif
13
 
11
 
12
 /* Fifo */
13
 struct hb_fifo_s
(-)./files/patch-libhb-ports.c (-43 lines)
Lines 1-43 Link Here
1
--- ../../work/HandBrake/libhb/ports.c	2008-02-19 19:28:17.000000000 +0100
2
+++ libhb/ports.c	2008-06-17 13:20:42.000000000 +0200
3
@@ -30,6 +30,11 @@
4
 #include <netinet/in.h>
5
 //#endif
6
 
7
+#if defined( SYS_FREEBSD )
8
+#include <sys/types.h>
9
+#include <sys/sysctl.h>
10
+#endif
11
+
12
 #include "hb.h"
13
 
14
 /************************************************************************
15
@@ -107,7 +112,7 @@
16
         cpu_count = info.cpu_count;
17
     }
18
 
19
-#elif defined( SYS_DARWIN ) || defined( SYS_FREEBSD )
20
+#elif defined( SYS_DARWIN )
21
     FILE * info;
22
     char   buffer[16];
23
 
24
@@ -124,6 +129,19 @@
25
         fclose( info );
26
     }
27
 
28
+#elif defined( SYS_FREEBSD )
29
+    {
30
+        int mib[2];
31
+        size_t len;
32
+
33
+        mib[0] = CTL_HW;
34
+        mib[1] = HW_NCPU;
35
+        len = sizeof(cpu_count);
36
+
37
+        if(sysctl(mib, 2, &cpu_count, &len, NULL, 0) != 0)
38
+          cpu_count = 1;
39
+    }
40
+
41
 #elif defined( SYS_LINUX )
42
     {
43
         FILE * info;
(-)./pkg-descr (-23 / +12 lines)
Lines 1-30 Link Here
1
HandBrake is an open-source, GPL-licensed, multiplatform, multithreaded
1
HandBrake is an open-source, GPL-licensed, multiplatform, multithreaded video
2
DVD to MPEG-4 converter, available for MacOS X, Linux, Windows and
2
transcoder, available for MacOS X, Linux and Windows (...and FreeBSD).
3
FreeBSD.
4
3
5
Supported sources:
4
Supported sources:
6
5
7
    * Any DVD-like source: VIDEO_TS folder, DVD image or real DVD
6
    * Any DVD-like source: VIDEO_TS folder, DVD image or real DVD
8
      (encrypted or unencrypted, but protection methods other than CSS
7
    (unencrypted--protection methods including CSS are not supported internally
9
      are not supported and must be handled externally with third-party
8
    and must be handled externally with third-party software and libraries), and
10
      software), and some .VOB and .TS files
9
    some .VOB and .TS files 
11
    * PAL or NTSC
10
    * Most any multimedia file it can get libavformat to
12
    * AC-3, DTS, LPCM or MPEG audio tracks
11
    read and libavcodec to decode.
13
12
14
Outputs:
13
Outputs:
15
14
16
    * File format: MP4, MKV, AVI or OGM
15
    * File format: MP4, MKV, AVI or OGM 
17
    * Video: MPEG-4 or H.264 (1 or 2 passes or constant quantizer/rate
16
    * Video: MPEG-4, H.264, or Theora (1 or 2 passes or constant quantizer/rate
18
      encoding)
17
      encoding) 
19
    * Audio: AAC, MP3, Vorbis or AC-3 pass-through (supports encoding
18
    * Audio: AAC, MP3, Vorbis or AC-3 pass-through (supports encoding of several
20
      of several audio tracks)
19
      audio tracks)
21
22
Misc features:
23
24
    * Chapter selection
25
    * Basic subtitle support (burned into the picture)
26
    * Integrated bitrate calculator
27
    * Picture deinterlacing, cropping and scaling
28
    * Grayscale encoding
29
30
WWW: http://handbrake.fr/

Return to bug 129668