blob: 8ad258c80f061c49869ea1b3761f0f0165736b5c (
plain) (
blame)
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
46
47
48
49
50
51
52
53
54
55
56
|
# Created by: mikael.urankar@gmail.com
# $FreeBSD$
PORTNAME= omxplayer
PORTVERSION= 20161004
PORTREVISION= 5
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>
|