d2816f8759
Install the missing utilities (mp4dash, mp4dashclone, and mp4hls) in an appropriate path. Reported by: filis Sponsored by: The FreeBSD Foundation
45 lines
1.4 KiB
Makefile
45 lines
1.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= Bento4
|
|
PORTVERSION= 1.5.1
|
|
PORTREVISION= 1
|
|
DISTVERSIONPREFIX=v
|
|
DISTVERSIONSUFFIX=-628
|
|
CATEGORIES= multimedia devel
|
|
|
|
MAINTAINER= mmokhi@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
|
|
|
|
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>
|