# Created by: mikael.urankar@gmail.com # $FreeBSD: head/multimedia/omxplayer/Makefile 519824 2019-12-11 17:53:48Z jbeich $ PORTNAME= omxplayer PORTVERSION= 20161004 PORTREVISION= 15 CATEGORIES= multimedia PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ PATCHFILES= 96800576209b.patch:-p1 MAINTAINER= ports@FreeBSD.org COMMENT= Raspberry Pi video player LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libasound.so:audio/alsa-lib \ libboost_thread.so:devel/boost-libs \ libdbus-1.so:devel/dbus \ libpcre.so:devel/pcre \ libEGL.so:misc/raspberrypi-userland \ libavcodec.so:multimedia/ffmpeg \ libfreetype.so:print/freetype2 RUN_DEPENDS= bash:shells/bash \ ${LOCALBASE}/share/fonts/freefont-ttf/FreeSans.ttf:x11-fonts/freefont-ttf ONLY_FOR_ARCHS= armv6 armv7 CFLAGS+= -Dfopen64=fopen -Dfseeko64=fseeko -Dftello64=ftello ALL_TARGET= omxplayer.bin USE_GITHUB= yes GH_ACCOUNT= popcornmix GH_TAGNAME= 12b472e USES= gmake shebangfix SHEBANG_FILES= omxplayer PLIST_FILES= bin/omxplayer bin/omxplayer.bin PORTDOCS= README.md OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e \ 's|LOCALBASE|${LOCALBASE}|g' ${WRKSRC}/omxplayer.cpp do-install: ${INSTALL_PROGRAM} ${WRKSRC}/omxplayer.bin ${STAGEDIR}${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/omxplayer ${STAGEDIR}${PREFIX}/bin do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${PORTDOCS} ${INSTALL_DATA} -p ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor .include