1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/multimedia/libx264/Makefile
2021-04-06 16:31:07 +02:00

44 lines
1006 B
Makefile

# Created by: Michael Johnson <ahze@FreeBSD.org>
#
# Updating notes: see multimedia/x264/Makefile.
PORTREVISION= 0
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
LDFLAGS_i386= -Wl,-znotext
LDFLAGS_armv6= -Wl,-znotext
LDFLAGS_armv7= -Wl,-znotext
OPTIONS_DEFINE= ASM OPENCL
OPTIONS_DEFAULT= ASM OPENCL
OPTIONS_EXCLUDE= BASH FFMS GPAC LAVF LSMASH SWSCALE
ASM_BUILD_DEPENDS= ${ASM_BUILD_DEPENDS_${ARCH}}
ASM_BUILD_DEPENDS_amd64=${ASM_BUILD_DEPENDS_i386}
ASM_BUILD_DEPENDS_i386= nasm>=2.13:devel/nasm
ASM_CONFIGURE_ENABLE= asm
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"