59 lines
1.3 KiB
Makefile
59 lines
1.3 KiB
Makefile
COMMENT= Google VP8/VP9 video codec
|
|
|
|
GH_ACCOUNT= webmproject
|
|
GH_PROJECT= libvpx
|
|
GH_TAGNAME= v1.13.1
|
|
EPOCH= 0
|
|
CATEGORIES= multimedia
|
|
|
|
SHARED_LIBS= vpx 16.0
|
|
|
|
HOMEPAGE= https://www.webmproject.org/
|
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB= c m pthread ${COMPILER_LIBCXX}
|
|
|
|
# XXX requires __atomic builtins
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
|
|
BUILD_DEPENDS+= devel/yasm
|
|
.endif
|
|
|
|
MAKE_FLAGS= LIBVPX_VERSION=${LIBvpx_VERSION} verbose=yes
|
|
|
|
SEPARATE_BUILD= Yes
|
|
USE_GMAKE= Yes
|
|
CONFIGURE_STYLE= simple
|
|
CONFIGURE_ARGS+=--enable-shared \
|
|
--enable-multi-res-encoding \
|
|
--enable-runtime-cpu-detect \
|
|
--enable-vp9-highbitdepth \
|
|
--prefix=${PREFIX} \
|
|
--disable-optimizations \
|
|
--disable-unit-tests
|
|
|
|
.if ${MACHINE_ARCH} == "arm"
|
|
CONFIGURE_ARGS+=--disable-neon
|
|
.endif
|
|
|
|
NO_TEST= Yes
|
|
|
|
ALL_TARGET=
|
|
|
|
post-install:
|
|
@chown ${BINOWN}:${BINGRP} ${PREFIX}/bin/*
|
|
@chmod ${BINMODE} ${PREFIX}/bin/*
|
|
@chown ${SHAREOWN}:${SHAREGRP} ${PREFIX}/include/vpx/*.h
|
|
@chmod ${SHAREMODE} ${PREFIX}/include/vpx/*.h
|
|
@chown ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/lib*
|
|
@chmod ${SHAREMODE} ${PREFIX}/lib/lib*
|
|
@chown ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/pkgconfig/vpx.pc
|
|
@chmod ${SHAREMODE} ${PREFIX}/lib/pkgconfig/vpx.pc
|
|
|
|
.include <bsd.port.mk>
|