diff options
author | ast <ast@pkgsrc.org> | 2022-08-22 13:56:41 +0000 |
---|---|---|
committer | ast <ast@pkgsrc.org> | 2022-08-22 13:56:41 +0000 |
commit | cbe782aa42bf1765186100eae25d4bbcbf8ac67e (patch) | |
tree | df1615c71254b21f1a8febafbe1e32e67da01492 /multimedia/handbrake/Makefile | |
parent | 77a75f41b42756d39ede4e7eabd24568b5c46548 (diff) | |
download | pkgsrc-cbe782aa42bf1765186100eae25d4bbcbf8ac67e.tar.gz |
multimedia/handbrake: avoid download/build of other packages already in pkgsrc
(with the exception of libjpeg-turbo as gtk wants jpeg which cannot coexist).
Retrofit locales that we silently dropped as we updated from 1.3 to 1.5
Diffstat (limited to 'multimedia/handbrake/Makefile')
-rw-r--r-- | multimedia/handbrake/Makefile | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/multimedia/handbrake/Makefile b/multimedia/handbrake/Makefile index 658ab67bf84..54f98e37ee7 100644 --- a/multimedia/handbrake/Makefile +++ b/multimedia/handbrake/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.81 2022/08/11 05:09:06 gutteridge Exp $ +# $NetBSD: Makefile,v 1.82 2022/08/22 13:56:41 ast Exp $ DISTNAME= HandBrake-1.5.1-source PKGNAME= ${DISTNAME:tl:S/-source//} -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= multimedia MASTER_SITES= ${MASTER_SITE_GITHUB:=HandBrake/} EXTRACT_SUFX= .tar.bz2 @@ -18,11 +18,6 @@ DIST_SUBDIR= handbrake EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} DISTFILES= ${DISTNAME}${EXTRACT_SUFX} -CDISTFILES= ffmpeg-4.4.2.tar.bz2 -SITES.ffmpeg-4.4.2.tar.bz2= http://www.ffmpeg.org/releases/ - -DISTFILES+= ${CDISTFILES} - RESTRICTED= Unresolved patent issues NO_BIN_ON_CDROM= ${RESTRICTED} NO_BIN_ON_FTP= ${RESTRICTED} @@ -44,6 +39,8 @@ BUILDLINK_TRANSFORM.NetBSD+= rm:-ldl PLIST_SRC+= ${PKGDIR}/PLIST CONFIGURE_ARGS+= --prefix=${PREFIX} +CONFIGURE_ARGS+= --enable-nls + MAKE_FILE= GNUmakefile BUILD_DIRS= build BUILD_TARGET= # empty @@ -58,15 +55,23 @@ BUILD_DEPENDS+= meson-[0-9]*:../../devel/meson CFLAGS+= -fheinous-gnu-extensions .endif -post-extract: - ${MKDIR} ${WRKSRC}/download -.for distfile in ${CDISTFILES} - cp ${DISTDIR}/${DIST_SUBDIR}/${distfile} \ - ${WRKSRC}/download/ -.endfor +# libjpeg-turbo is also required to build Handbrake: buuilt and linked statically as not to conflict with jpeg for gtk +JPEG_DEFAULT= jpeg +.include "../../mk/jpeg.buildlink3.mk" .include "options.mk" +BROKEN_GETTEXT_DETECTION= yes +GHB_LOCALES= af co cs da de es eu fr he hr it ja ko nl no pl pt pt_BR ro ru si sk sl_SI sv th tr uk_UA zh_CN zh_TW + +post-build: + set -e; cd ${WRKSRC}; \ + for po in ${GHB_LOCALES}; do \ + mo="../.destdir/usr/pkg/share/locale/$${po%%.po}/LC_MESSAGES"; \ + ${MKDIR} $${mo}; \ + ${TOOLS_DIR}/bin/msgfmt -v -c -o $${mo}/ghb.mo gtk/po/$${po}; \ + done + .include "../../audio/lame/buildlink3.mk" .include "../../audio/libopus/buildlink3.mk" .include "../../audio/libsamplerate/buildlink3.mk" @@ -85,6 +90,8 @@ post-extract: .include "../../multimedia/libdvdnav/buildlink3.mk" .include "../../multimedia/libdvdread/buildlink3.mk" .include "../../multimedia/libbluray/buildlink3.mk" +.include "../../multimedia/ffmpeg4/buildlink3.mk" +.include "../../graphics/zimg/buildlink3.mk" .include "../../graphics/freetype2/buildlink3.mk" .include "../../fonts/harfbuzz/buildlink3.mk" .include "../../fonts/fontconfig/buildlink3.mk" |