1 # $NetBSD: Makefile,v 1.25 2013/01/26 23:26:19 wiz Exp $
4 DISTNAME
= HandBrake-0.9
.3
5 PKGNAME
= ${DISTNAME
:S
/HandBrake
/handbrake
/}
8 MASTER_SITES
= http
://download.m0k.org
/handbrake
/releases
/ \
9 http
://download.m0k.org
/handbrake
/contrib
/
11 DIST_SUBDIR
= handbrake
12 EXTRACT_ONLY
= ${DISTNAME}${EXTRACT_SUFX}
13 DISTFILES
= ${DISTNAME}${EXTRACT_SUFX}
14 CDISTFILES
= a52dec-0.7
.4.
tar.gz \
18 ffmpeg-r15462.
tar.gz \
20 libdca-r81-strapped.
tar.gz \
21 libdvdread-0.9
.7.
tar.gz \
25 libsamplerate-0.1
.4.
tar.gz \
26 libtheora-1.0.
tar.gz \
27 libvorbis-aotuv_b5.
tar.gz \
28 mpeg2dec-0.5
.1.
tar.gz \
30 libquicktime-0.9
.10.
tar.gz \
31 x264-r1028-83baa7f.
tar.gz \
32 xvidcore-1.1
.3.
tar.gz \
34 DISTFILES
+= ${CDISTFILES}
36 MAINTAINER
= pkgsrc-users@NetBSD.org
37 HOMEPAGE
= http
://handbrake.fr
/
38 COMMENT
= Multiplatform
, multithreaded video transcoder
40 RESTRICTED
= Unresolved patent issues
41 NO_BIN_ON_CDROM
=${RESTRICTED}
42 NO_BIN_ON_FTP
= ${RESTRICTED}
43 NO_SRC_ON_CDROM
=${RESTRICTED}
44 NO_SRC_ON_FTP
= ${RESTRICTED}
47 USE_TOOLS
+= gmake perl intltool msgfmt pkg-config bash
48 USE_TOOLS
+= autoconf automake aclocal autoreconf m4
52 BUILD_DEPENDS
+= jam
>=2.5.2:..
/..
/devel
/jam
53 BUILD_DEPENDS
+= nasm
>=2.05.01:..
/..
/devel
/nasm
54 BUILD_DEPENDS
+= yasm
>=0.6.1:..
/..
/devel
/yasm
55 BUILD_DEPENDS
+= gettext-m4-
[0-9]*:..
/..
/devel
/gettext-m4
57 CLI_CONFIGURE_ARGS
= --release
59 # harfbuzz, which is now separate from pango, installs a header file
60 # called hb.h, and the include path plopped out by autocrap causes it
61 # to be included instead of handbrake's own hb.h. Hack around it by
62 # changing the include name to point specifically at the right hb.h.
63 SUBST_CLASSES
+= inchack
64 SUBST_STAGE.inchack
= pre-configure
65 SUBST_FILES.inchack
= gtk
/src
/*.
[ch
]
66 SUBST_SED.inchack
= -e
"/^.include \"hb\.h\"/s,hb,../../libhb/hb,"
67 SUBST_MESSAGE.inchack
= Working around harfbuzz header conflict.
70 cp
${FILESDIR}/patch-ffmpeg-nodocs.patch \
72 .for distfile in
${CDISTFILES}
73 cp
${DISTDIR}/${DIST_SUBDIR}/${distfile} \
74 ${WRKSRC}/contrib
/${distfile
:C
/-.
*//}.
tar.gz
78 cd
${WRKSRC}/gtk
&& autoreconf
-fi
81 cd
${WRKSRC} && .
/configure
${CLI_CONFIGURE_ARGS}
82 cd
${WRKSRC}/gtk
&& .
/configure
${CONFIGURE_ARGS}
86 cd
${WRKSRC}/gtk
&& gmake
89 cd
${WRKSRC}/gtk
&& gmake
install DESTDIR
=${DESTDIR}
91 .
include "../../graphics/hicolor-icon-theme/buildlink3.mk"
92 .
include "../../sysutils/hal/buildlink3.mk"
93 .
include "../../www/gtkhtml314/buildlink3.mk"
94 .
include "../../x11/gtk2/buildlink3.mk"
95 .
include "../../sysutils/desktop-file-utils/desktopdb.mk"
96 .
include "../../mk/bsd.pkg.mk"