2021-06-12 10:18:14 +02:00
|
|
|
# $NetBSD: Makefile,v 1.35 2021/06/12 08:18:14 cirnatdan Exp $
|
2014-07-02 13:46:21 +02:00
|
|
|
|
2021-04-10 10:36:03 +02:00
|
|
|
DISTNAME= x265_3.5
|
2015-04-06 22:58:35 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/_/-/}
|
2014-07-02 13:46:21 +02:00
|
|
|
CATEGORIES= multimedia
|
2021-04-10 10:36:03 +02:00
|
|
|
MASTER_SITES= https://bitbucket.org/multicoreware/x265_git/downloads/
|
2014-07-02 13:46:21 +02:00
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.x265.org/
|
|
|
|
COMMENT= High Efficiency Video Coding (HEVC)
|
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
|
2018-03-09 13:08:08 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/source
|
2020-10-29 22:47:00 +01:00
|
|
|
|
2021-04-10 10:36:03 +02:00
|
|
|
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"
|
2020-10-30 00:58:07 +01:00
|
|
|
|
2021-04-10 10:36:03 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2018-07-31 21:13:10 +02:00
|
|
|
.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386"
|
2021-06-12 10:18:14 +02:00
|
|
|
. if (${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD") && ${MACHINE_ARCH} == "i386"
|
2020-10-29 22:47:00 +01:00
|
|
|
# Avoid text relocations
|
2020-10-29 22:47:39 +01:00
|
|
|
CMAKE_ARGS+= -DENABLE_ASSEMBLY=OFF
|
2020-10-29 22:47:00 +01:00
|
|
|
. else
|
|
|
|
TOOL_DEPENDS+= nasm>=2.13.0:../../devel/nasm
|
|
|
|
. endif
|
2018-07-31 21:13:10 +02:00
|
|
|
.endif
|
2014-07-02 13:46:21 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|