openbsd-ports/multimedia/x265/Makefile
ajacoutot ce07a0fa09 Unbreak on all archs.
from Brad (maintainer)
2015-10-01 15:13:36 +00:00

51 lines
1005 B
Makefile

# $OpenBSD: Makefile,v 1.14 2015/10/01 15:13:36 ajacoutot Exp $
COMMENT= free H.265/HEVC encoder
VER= 1.7
DISTNAME= x265_${VER}
PKGNAME= x265-${VER}
REVISION= 0
CATEGORIES= multimedia
MASTER_SITES= https://ftp.videolan.org/pub/videolan/x265/
SHARED_LIBS= x265 4.0
HOMEPAGE= http://x265.org/
MAINTAINER= Brad Smith <brad@comstyle.com>
# GPLv2+
PERMIT_PACKAGE_CDROM= patents
PERMIT_PACKAGE_FTP= Yes
WANTLIB= c m pthread stdc++
WRKSRC= ${WRKDIST}/source
MODULES= devel/cmake \
lang/clang
MODCLANG_ARCHS= amd64 i386
MODCLANG_LANGS= c++
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
BUILD_DEPENDS+= devel/yasm
.endif
SEPARATE_BUILD= Yes
CONFIGURE_ARGS= -DENABLE_TESTS=On
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "amd64" || \
${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \
${MACHINE_ARCH} == "sparc64"
CONFIGURE_ARGS+= -DNO_ATOMICS=Off
.else
CONFIGURE_ARGS+= -DNO_ATOMICS=On
.endif
do-test:
${WRKBUILD}/test/TestBench
.include <bsd.port.mk>