Merge branch 'staged'
[dports.git] / multimedia / kvazaar / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       kvazaar
4 DISTVERSIONPREFIX=      v
5 DISTVERSION?=   1.3.0
6 PORTREVISION=   2
7 CATEGORIES=     multimedia
8
9 PATCH_SITES=    https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
10 PATCHFILES+=    1d7fcf4227ee.patch:-p1
11
12 MAINTAINER=     jbeich@FreeBSD.org
13 COMMENT=        H.265/HEVC encoder implemented in C
14
15 LICENSE=        LGPL21+
16
17 USE_GITHUB=     yes
18 GH_ACCOUNT=     ultravideo
19 GH_TUPLE=       silentbicycle:greatest:v1.0.0:greatest/greatest
20
21 CONFLICTS_INSTALL?=     ${PORTNAME}-devel
22
23 USES=           autoreconf compiler:c11 libtool pathfix
24 GNU_CONFIGURE=  yes
25 TEST_TARGET=    check
26 INSTALL_TARGET= install-strip
27 USE_LDCONFIG=   yes
28
29 OPTIONS_DEFINE= ASM CRYPTOPP DOCS
30 OPTIONS_DEFAULT=ASM
31
32 ASM_BUILD_DEPENDS=      ${ASM_BUILD_DEPENDS_${ARCH}}
33 ASM_BUILD_DEPENDS_x86_64=yasm:devel/yasm
34 ASM_BUILD_DEPENDS_i386= yasm:devel/yasm
35 ASM_CONFIGURE_ENABLE=   asm
36
37 CRYPTOPP_DESC=          Selective encryption via Crypto++ library
38 CRYPTOPP_LIB_DEPENDS=   libcryptopp.so:security/cryptopp
39 CRYPTOPP_USES=          pkgconfig
40 CRYPTOPP_CONFIGURE_WITH=cryptopp
41
42 post-patch:
43         @${REINPLACE_CMD} -e 's/x86_64/&|amd64/' \
44                 -e '/AM_INIT_AUTOMAKE/s/])/ serial-tests&/' \
45                 ${WRKSRC}/configure.ac
46
47 .include <bsd.port.mk>