40d07c6c3c
This port links some non-PIC code, which fails with lld as it defaults to disallowing relocations against read-only segments. For i386 we can just add -znotext unconditionally: for GNU BFD ld it just affirms BFD's existing default. Approved by: portmgr (lld blanket) Sponsored by: The FreeBSD Foundation
54 lines
1.5 KiB
Makefile
54 lines
1.5 KiB
Makefile
# Created by: adamw
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= x265
|
|
PORTVERSION= 2.8
|
|
PORTREVISION= 1
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= https://downloads.videolan.org/pub/videolan/x265/ \
|
|
https://mirror.leaseweb.com/videolan/x265/ \
|
|
http://downloads.videolan.org/pub/videolan/x265/ \
|
|
http://mirror.leaseweb.com/videolan/x265/
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
PATCH_SITES= http://hg.videolan.org/${PORTNAME}/raw-rev/
|
|
PATCHFILES= 450421921079:-p2
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
|
COMMENT= H.265/High Efficiency Video Coding (HEVC) format
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC:H}/COPYING
|
|
|
|
BUILD_DEPENDS= nasm:devel/nasm
|
|
|
|
USES= cmake compiler:c++14-lang pathfix
|
|
|
|
OPTIONS_DEFINE= DEBUG OPTIMIZED_FLAGS
|
|
OPTIONS_DEFINE_amd64= HI10P HI12P
|
|
|
|
DEBUG_PREVENTS= OPTIMIZED_FLAGS
|
|
DEBUG_PREVENTS_MSG= Optimizations are incompatible with debugging code
|
|
DEBUG_VARS_OFF= CFLAGS+=-DNDEBUG CPPFLAGS+=-DNDEBUG
|
|
HI10P_CMAKE_BOOL= HIGH_BIT_DEPTH
|
|
HI12P_CMAKE_BOOL= MAIN12
|
|
HI12P_IMPLIES= HI10P
|
|
OPTIMIZED_FLAGS_VARS= CFLAGS+=-O3 CXXFLAGS+=-O3
|
|
|
|
DEBUG_DESC= Enable debugging
|
|
HI10P_DESC= Enable HI10P Support (64-bit only)
|
|
HI12P_DESC= Enable HI12P Support (64-bit only)
|
|
OPTIMIZED_FLAGS_DESC= Enable O3 optimization
|
|
|
|
USE_LDCONFIG= yes
|
|
CMAKE_ARGS= -DENABLE_PIC=on -DPLATFORM_LIBS=md -DENABLE_TESTS=on
|
|
CFLAGS_mips= -DNO_ATOMICS # cannot use lang/gcc
|
|
CFLAGS_mips64= -DNO_ATOMICS # cannot use lang/gcc
|
|
LDFLAGS_i386= -Wl,-znotext
|
|
EXTRACT_AFTER_ARGS+= --exclude "md5*" --exclude compat
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}/source
|
|
|
|
do-test:
|
|
${WRKSRC}/test/TestBench
|
|
|
|
.include <bsd.port.mk>
|