pkgsrc/multimedia/x265/Makefile

36 lines
978 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.35 2021/06/12 08:18:14 cirnatdan Exp $
DISTNAME= x265_3.5
PKGNAME= ${DISTNAME:S/_/-/}
CATEGORIES= multimedia
MASTER_SITES= https://bitbucket.org/multicoreware/x265_git/downloads/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.x265.org/
COMMENT= High Efficiency Video Coding (HEVC)
LICENSE= gnu-gpl-v2
WRKSRC= ${WRKDIR}/${DISTNAME}/source
USE_CMAKE= yes
USE_LANGUAGES= c c++
CMAKE_ARGS+= -DENABLE_PIC=ON
# Set version here instead of relying on git; see patch-CMakeLists.txt
CMAKE_ARGS+= -DX265_VERSION=${PKGVERSION_NOREV}
CMAKE_ARGS+= -DX265_LATEST_TAG=${PKGVERSION_NOREV}
.include "options.mk"
.include "../../mk/bsd.prefs.mk"
2018-07-31 21:13:10 +02:00
.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386"
. if (${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD") && ${MACHINE_ARCH} == "i386"
# Avoid text relocations
2020-10-29 22:47:39 +01:00
CMAKE_ARGS+= -DENABLE_ASSEMBLY=OFF
. else
TOOL_DEPENDS+= nasm>=2.13.0:../../devel/nasm
. endif
2018-07-31 21:13:10 +02:00
.endif
.include "../../mk/bsd.pkg.mk"