View | Details | Raw Unified | Return to bug 238773 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-7 / +28 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	x265
4
PORTNAME=	x265
5
PORTVERSION=	3.2.1
5
PORTVERSION=	3.2.1
6
PORTREVISION=	1
6
CATEGORIES=	multimedia
7
CATEGORIES=	multimedia
7
MASTER_SITES=	https://bitbucket.org/multicoreware/x265/downloads/ \
8
MASTER_SITES=	https://bitbucket.org/multicoreware/x265/downloads/ \
8
		https://downloads.videolan.org/pub/videolan/x265/ \
9
		https://downloads.videolan.org/pub/videolan/x265/ \
Lines 17-23 Link Here
17
LICENSE=	GPLv2+
18
LICENSE=	GPLv2+
18
LICENSE_FILE=	${WRKSRC:H}/COPYING
19
LICENSE_FILE=	${WRKSRC:H}/COPYING
19
20
20
BUILD_DEPENDS=	nasm:devel/nasm
21
BUILD_DEPENDS=	${BUILD_DEPENDS_${ARCH}}
22
BUILD_DEPENDS_amd64=	nasm:devel/nasm
23
BUILD_DEPENDS_i386=	nasm:devel/nasm
21
24
22
USES=		cmake compiler:c++14-lang pathfix
25
USES=		cmake compiler:c++14-lang pathfix
23
26
Lines 26-36 Link Here
26
29
27
DEBUG_PREVENTS=		OPTIMIZED_FLAGS
30
DEBUG_PREVENTS=		OPTIMIZED_FLAGS
28
DEBUG_PREVENTS_MSG=	Optimizations are incompatible with debugging code
31
DEBUG_PREVENTS_MSG=	Optimizations are incompatible with debugging code
29
DEBUG_VARS_OFF=		CFLAGS+=-DNDEBUG CPPFLAGS+=-DNDEBUG 
32
DEBUG_VARS_OFF=		CFLAGS+=-DNDEBUG
30
HI10P_CMAKE_BOOL=	HIGH_BIT_DEPTH
33
HI12P_CMAKE_BOOL=	LINKED_12BIT
31
HI12P_CMAKE_BOOL=	MAIN12
34
HI10P_CMAKE_BOOL=	LINKED_10BIT ENABLE_HDR10_PLUS
35
HI10P_CMAKE_ARGS=	EXTRA_LINK_FLAGS=${EXTRA_LINK_FLAGS:Q}
32
HI12P_IMPLIES=		HI10P
36
HI12P_IMPLIES=		HI10P
33
OPTIMIZED_FLAGS_VARS=	CFLAGS+=-O3 CXXFLAGS+=-O3
37
OPTIMIZED_FLAGS_VARS=	CFLAGS+=-O3
34
SVTHEVC_LIB_DEPENDS=	libSvtHevcEnc.so:multimedia/svt-hevc
38
SVTHEVC_LIB_DEPENDS=	libSvtHevcEnc.so:multimedia/svt-hevc
35
SVTHEVC_CMAKE_BOOL=	ENABLE_SVT_HEVC
39
SVTHEVC_CMAKE_BOOL=	ENABLE_SVT_HEVC
36
SVTHEVC_CMAKE_ON=	-DSVT_HEVC_INCLUDE_DIR:PATH="${LOCALBASE}/include/svt-hevc"
40
SVTHEVC_CMAKE_ON=	-DSVT_HEVC_INCLUDE_DIR:PATH="${LOCALBASE}/include/svt-hevc"
Lines 45-58 Link Here
45
SVTHEVC_DESC=	HEVC encoding via SVT-HEVC
49
SVTHEVC_DESC=	HEVC encoding via SVT-HEVC
46
VMAF_DESC=	Per frame and aggregate VMAF score
50
VMAF_DESC=	Per frame and aggregate VMAF score
47
51
52
OPTIONS_SUB=	yes
48
USE_LDCONFIG=	yes
53
USE_LDCONFIG=	yes
49
CMAKE_ARGS=	-DENABLE_PIC=on -DENABLE_TESTS=on
54
CMAKE_ARGS=	-DENABLE_PIC=on -DENABLE_TESTS=on -DENABLE_SHARED:BOOL=true
50
LDFLAGS_i386=	-Wl,-znotext
55
LDFLAGS_i386=	-Wl,-znotext
51
EXTRACT_AFTER_ARGS+=	--exclude compat
56
EXTRACT_AFTER_ARGS+=	--exclude compat
52
PATCH_WRKSRC=	${WRKSRC:H}
57
PATCH_WRKSRC=	${WRKSRC:H}
53
WRKSRC=		${WRKDIR}/${PORTNAME}_${PORTVERSION}/source
58
WRKSRC=		${WRKDIR}/${PORTNAME}_${PORTVERSION}/source
54
59
60
.include <bsd.port.options.mk>
61
62
.for b in ${PORT_OPTIONS:MHI1?P:C/HI([0-9]+)P/\1/}
63
EXTRA_LINK_FLAGS+=${WRKSRC:H}/$bbit/libx265.a
64
pre-build::
65
	${MKDIR} ${WRKSRC:H}/$bbit
66
	${CMAKE_BIN} -S ${WRKSRC} -B ${WRKSRC:H}/$bbit \
67
		${CMAKE_ARGS}	\
68
		-DHIGH_BIT_DEPTH=true -DMAIN$b=true \
69
		-DEXPORT_C_API=false -DENABLE_CLI=false \
70
		-DENABLE_SHARED:BOOL=false -DENABLE_TESTS=false \
71
		-DLINKED_10BIT=false -DLINKED_12BIT=false \
72
		-DENABLE_HDR10_PLUS=false
73
	${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${WRKSRC:H}/$bbit ${MAKE_ARGS}
74
.endfor
75
55
do-test:
76
do-test:
56
	${WRKSRC}/test/TestBench
77
	${WRKDIR}/.build/test/TestBench
57
78
58
.include <bsd.port.mk>
79
.include <bsd.port.mk>
(-)pkg-plist (+3 lines)
Lines 1-7 Link Here
1
bin/x265
1
bin/x265
2
include/x265.h
2
include/x265.h
3
include/x265_config.h
3
include/x265_config.h
4
%%HI10P%%include/hdr10plus.h
4
lib/libx265.a
5
lib/libx265.a
6
%%HI10P%%lib/libhdr10plus.a
7
%%HI10P%%lib/libhdr10plus.so
5
lib/libx265.so
8
lib/libx265.so
6
lib/libx265.so.179
9
lib/libx265.so.179
7
libdata/pkgconfig/x265.pc
10
libdata/pkgconfig/x265.pc

Return to bug 238773