aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/libx264/Makefile
blob: 367cb5138f46074d1d9350c3d749175a035a5cd6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
#
# Updating notes: see multimedia/x264/Makefile.

PKGNAMEPREFIX=  lib
COMMENT=    H.264/MPEG-4 AVC Video Encoding (Library)
MASTERDIR=  ${.CURDIR}/../x264
PLIST=      ${.CURDIR}/pkg-plist

# Clear dependency on libx264 (itself), see x264/Makefile
LIB_DEPENDS=    #

USES=       pathfix

OPTIONS_DEFINE=     HI10P OPENCL
OPTIONS_DEFAULT=    OPENCL
OPTIONS_EXCLUDE=    FFMS GPAC LAVF LSMASH SWSCALE

HI10P_DESC=     Enable High 10 Profile 10-bit encoding
HI10P_CONFIGURE_ON= --bit-depth=10

OPENCL_BUILD_DEPENDS=   ${LOCALBASE}/include/CL/opencl.h:devel/opencl
OPENCL_CONFIGURE_ENABLE=opencl

CONFIGURE_ARGS=     \
            --enable-static \
            --enable-shared \
            --disable-cli

PATHFIX_MAKEFILEIN= Makefile

PLIST_FILES=    #
PLIST_SUB+= X264_BUILD=${X264_BUILD}

pre-build:

.include "${MASTERDIR}/Makefile"