blob: fdcaf5767ebc0d393e88ec57ae75a3fbfd1ba901 (
plain)
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
39
40
41
42
43
44
45
|
PORTNAME= Bento4
PORTVERSION= 1.5.1
PORTREVISION= 1
DISTVERSIONPREFIX=v
DISTVERSIONSUFFIX=-628
CATEGORIES= multimedia devel
MAINTAINER= ports@FreeBSD.org
COMMENT= Full-featured MP4 format and MPEG DASH library and tools
LICENSE= GPLv2
BROKEN_aarch64= fails to compile: Ap4AesBlockCipher.cpp:93:4: AP4_PLATFORM_BYTE_ORDER is not set
BROKEN_riscv64= fails to compile: Ap4AesBlockCipher.cpp:93:4: AP4_PLATFORM_BYTE_ORDER is not set
RUN_DEPENDS= bash:shells/bash
USES= cmake:noninja python shebangfix
SHEBANG_GLOB= *.sh *.py
SHEBANG_FILES= Source/Python/*/*
USE_GITHUB= yes
GH_ACCOUNT= axiomatic-systems
CMAKE_BUILD_TYPE= Release
INSTALL_TARGET= do-install
post-patch:
@${REINPLACE_CMD} -e 's|python|${PYTHON_CMD}|g' ${WRKSRC}/Source/Python/wrappers/*
@${REINPLACE_CMD} -e 's|$$BASEDIR/..|${DATADIR}|g' ${WRKSRC}/Source/Python/wrappers/*
do-install:
. for prog in aac2mp4 mp42aac mp42hls mp42ts mp4compact mp4dcfpackager \
mp4decrypt mp4diff mp4dump mp4edit mp4encrypt mp4extract mp4fragment \
mp4iframeindex mp4info mp4mux mp4split mp4tag
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${prog} ${STAGEDIR}${PREFIX}/bin
. endfor
${INSTALL_DATA} ${INSTALL_WRKSRC}/libap4.a ${STAGEDIR}${PREFIX}/lib
@${MKDIR} ${STAGEDIR}${DATADIR}/utils
cd ${WRKSRC}/Source/Python/utils && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/utils
. for prog in mp4dash mp4dashclone mp4hls
${INSTALL_SCRIPT} ${WRKSRC}/Source/Python/wrappers/${prog} ${STAGEDIR}${PREFIX}/bin
. endfor
.include <bsd.port.mk>
|