[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / multimedia / handbrake

File: [cvs.NetBSD.org] / pkgsrc / multimedia / handbrake / Makefile (download)

Revision 1.56, Thu Feb 13 23:12:37 2020 UTC (7 weeks, 4 days ago) by ryoon
Branch: MAIN
Changes since 1.55: +2 -1 lines

handbrake: Use pthread properly and fix segfault in correct way

* Bump PKGREVISION.
* From multimedia/libbluray by kamil@.

# $NetBSD: Makefile,v 1.56 2020/02/13 23:12:37 ryoon Exp $
#

DISTNAME=	HandBrake-1.3.1-source
PKGNAME=	${DISTNAME:tl:S/-source//}
PKGREVISION=	1
CATEGORIES=	multimedia
MASTER_SITES=	https://download.handbrake.fr/releases/${PKGVERSION_NOREV}/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://handbrake.fr/
COMMENT=	Multiplatform, multithreaded video transcoder
LICENSE=	gnu-gpl-v2

DIST_SUBDIR=	handbrake
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
CDISTFILES=	ffmpeg-4.2.2.tar.bz2 \
		libbluray-1.1.2.tar.bz2 \
		libdvdnav-6.0.1.tar.bz2 \
		libdvdread-6.0.2.tar.bz2 \
		x265_3.2.1.tar.gz \
		dav1d-0.5.1.tar.bz2
DISTFILES+=	${CDISTFILES}

.for f in ${CDISTFILES}
SITES.${f}=	https://download.handbrake.fr/contrib/
.endfor

RESTRICTED=		Unresolved patent issues
NO_BIN_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_FTP=		${RESTRICTED}
NO_SRC_ON_CDROM=	${RESTRICTED}
NO_SRC_ON_FTP=		${RESTRICTED}

WRKSRC=		${WRKDIR}/${DISTNAME:S/-source//}

HAS_CONFIGURE=	yes
USE_TOOLS+=	gmake perl intltool msgfmt pkg-config bash
USE_TOOLS+=	autoconf automake aclocal autoreconf m4
USE_LIBTOOL=	yes
USE_LANGUAGES=	c c++

TOOL_DEPENDS+=	gettext-tools-[0-9]*:../../devel/gettext-tools
_TOOLS_USE_PKGSRC.msgfmt=	yes
USE_BUILTIN.gettext=		no

BUILDLINK_TRANSFORM.NetBSD+=	rm:-ldl

CONFIGURE_ARGS+=	--prefix=${PREFIX}
BUILD_DIRS=		build
MAKE_FILE=		GNUmakefile
BUILD_TARGET=		# empty
BUILD_FLAGS+=		BUILDLINK_DIR=${BUILDLINK_DIR}

BUILD_DEPENDS+=		cmake-[0-9]*:../../devel/cmake
BUILD_DEPENDS+=		nasm>=2.05.01:../../devel/nasm
#BUILD_DEPENDS+=	gettext-m4-[0-9]*:../../devel/gettext-m4

# harfbuzz, which is now separate from pango, installs a header file
# called hb.h, and the include path plopped out by autocrap causes it
# to be included instead of handbrake's own hb.h. Hack around it by
# changing the include name to point specifically at the right hb.h.
SUBST_CLASSES+=		inchack
SUBST_STAGE.inchack=	pre-configure
SUBST_FILES.inchack=	gtk/src/*.[ch]
SUBST_SED.inchack=	-e "/^.include \"hb\.h\"/s,hb,../../libhb/hb,"
SUBST_MESSAGE.inchack=	Working around harfbuzz header conflict.

.include "../../mk/compiler.mk"

.if !empty(PKGSRC_COMPILER:Mclang)
CFLAGS+=	-fheinous-gnu-extensions
.endif

post-extract:
	${MKDIR} ${WRKSRC}/download
.for distfile in ${CDISTFILES}
	cp ${DISTDIR}/${DIST_SUBDIR}/${distfile} \
		${WRKSRC}/download/
.endfor

.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../audio/lame/buildlink3.mk"
.include "../../audio/libopus/buildlink3.mk"
.include "../../audio/libsamplerate/buildlink3.mk"
.include "../../audio/speex/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../multimedia/gstreamer1/buildlink3.mk"
.include "../../multimedia/libass/buildlink3.mk"
.include "../../multimedia/libtheora/buildlink3.mk"
.include "../../multimedia/libvpx/buildlink3.mk"
.include "../../multimedia/x264-devel/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../x11/gtk3/buildlink3.mk"
.include "../../textproc/jansson/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"