1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/multimedia/omxplayer/Makefile
2018-01-18 04:11:02 +00:00

57 lines
1.3 KiB
Makefile

# Created by: mikael.urankar@gmail.com
# $FreeBSD$
PORTNAME= omxplayer
PORTVERSION= 20161004
PORTREVISION= 6
CATEGORIES= multimedia
MAINTAINER= mikael.urankar@gmail.com
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 <bsd.port.mk>