40 lines
752 B
Makefile
40 lines
752 B
Makefile
COMMENT= small and fast AV1 decoder
|
|
|
|
VER= 1.0.0
|
|
DISTNAME= dav1d-${VER}
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= https://downloads.videolan.org/pub/videolan/dav1d/${VER}/
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
SHARED_LIBS= dav1d 2.2
|
|
|
|
HOMEPAGE= https://code.videolan.org/videolan/dav1d/
|
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB= c m pthread
|
|
|
|
MODULES= devel/meson
|
|
|
|
# atomic ops, stdatomic.h
|
|
COMPILER= base-clang ports-gcc
|
|
COMPILER_LANGS= c
|
|
|
|
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
|
|
BUILD_DEPENDS+= devel/nasm
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+=-Ddefault_library=both \
|
|
-Dxxhash_muxer=disabled
|
|
|
|
.if ${MACHINE_ARCH} == "arm"
|
|
CONFIGURE_ARGS+=-Denable_asm=false
|
|
# XXX SIGBUS otherwise
|
|
CFLAGS+= -O1
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|