| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.42 2017/02/12 06:25:47 ryoon Exp $ | | 1 | # $NetBSD: Makefile,v 1.43 2017/09/10 00:28:28 dholland Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= HandBrake-0.9.3 | | 4 | DISTNAME= HandBrake-0.9.3 |
5 | PKGNAME= ${DISTNAME:S/HandBrake/handbrake/} | | 5 | PKGNAME= ${DISTNAME:S/HandBrake/handbrake/} |
6 | PKGREVISION= 32 | | 6 | PKGREVISION= 32 |
7 | CATEGORIES= multimedia | | 7 | CATEGORIES= multimedia |
8 | MASTER_SITES= http://download.m0k.org/handbrake/releases/ | | 8 | MASTER_SITES= http://download.m0k.org/handbrake/releases/ |
9 | MASTER_SITES+= http://download.m0k.org/handbrake/contrib/ | | 9 | MASTER_SITES+= http://download.m0k.org/handbrake/contrib/ |
10 | MASTER_SITES+= ${MASTER_SITE_FREEBSD:=handbrake/} | | 10 | MASTER_SITES+= ${MASTER_SITE_FREEBSD:=handbrake/} |
11 | | | 11 | |
12 | DIST_SUBDIR= handbrake | | 12 | DIST_SUBDIR= handbrake |
13 | EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} | | 13 | EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
14 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} | | 14 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} |
| @@ -57,26 +57,32 @@ BUILD_DEPENDS+= gettext-m4-[0-9]*:../../ | | | @@ -57,26 +57,32 @@ BUILD_DEPENDS+= gettext-m4-[0-9]*:../../ |
57 | | | 57 | |
58 | CLI_CONFIGURE_ARGS= --release | | 58 | CLI_CONFIGURE_ARGS= --release |
59 | | | 59 | |
60 | # harfbuzz, which is now separate from pango, installs a header file | | 60 | # harfbuzz, which is now separate from pango, installs a header file |
61 | # called hb.h, and the include path plopped out by autocrap causes it | | 61 | # called hb.h, and the include path plopped out by autocrap causes it |
62 | # to be included instead of handbrake's own hb.h. Hack around it by | | 62 | # to be included instead of handbrake's own hb.h. Hack around it by |
63 | # changing the include name to point specifically at the right hb.h. | | 63 | # changing the include name to point specifically at the right hb.h. |
64 | SUBST_CLASSES+= inchack | | 64 | SUBST_CLASSES+= inchack |
65 | SUBST_STAGE.inchack= pre-configure | | 65 | SUBST_STAGE.inchack= pre-configure |
66 | SUBST_FILES.inchack= gtk/src/*.[ch] | | 66 | SUBST_FILES.inchack= gtk/src/*.[ch] |
67 | SUBST_SED.inchack= -e "/^.include \"hb\.h\"/s,hb,../../libhb/hb," | | 67 | SUBST_SED.inchack= -e "/^.include \"hb\.h\"/s,hb,../../libhb/hb," |
68 | SUBST_MESSAGE.inchack= Working around harfbuzz header conflict. | | 68 | SUBST_MESSAGE.inchack= Working around harfbuzz header conflict. |
69 | | | 69 | |
| | | 70 | .include "../../mk/compiler.mk" |
| | | 71 | |
| | | 72 | .if !empty(PKGSRC_COMPILER:Mclang) |
| | | 73 | CFLAGS+= -fheinous-gnu-extensions |
| | | 74 | .endif |
| | | 75 | |
70 | post-extract: | | 76 | post-extract: |
71 | cp ${FILESDIR}/patch-ffmpeg-nodocs.patch \ | | 77 | cp ${FILESDIR}/patch-ffmpeg-nodocs.patch \ |
72 | ${WRKSRC}/contrib/ | | 78 | ${WRKSRC}/contrib/ |
73 | .for distfile in ${CDISTFILES} | | 79 | .for distfile in ${CDISTFILES} |
74 | cp ${DISTDIR}/${DIST_SUBDIR}/${distfile} \ | | 80 | cp ${DISTDIR}/${DIST_SUBDIR}/${distfile} \ |
75 | ${WRKSRC}/contrib/${distfile:C/-.*//}.tar.gz | | 81 | ${WRKSRC}/contrib/${distfile:C/-.*//}.tar.gz |
76 | .endfor | | 82 | .endfor |
77 | | | 83 | |
78 | pre-configure: | | 84 | pre-configure: |
79 | cd ${WRKSRC}/gtk && autoreconf -fi | | 85 | cd ${WRKSRC}/gtk && autoreconf -fi |
80 | | | 86 | |
81 | do-configure: | | 87 | do-configure: |
82 | cd ${WRKSRC} && ./configure ${CLI_CONFIGURE_ARGS} | | 88 | cd ${WRKSRC} && ./configure ${CLI_CONFIGURE_ARGS} |