-
Notifications
You must be signed in to change notification settings - Fork 179
/
hlsdl_git.bb
35 lines (26 loc) · 1.18 KB
/
hlsdl_git.bb
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
DESCRIPTION = "This program converts .m3u8 playlists to a .ts video. It supports decryption of both AES-128 and SAMPLE-AES encryption."
MAINTAINER = "samsamsam"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ec892df81d7a9e0b5cd420bb5603c288"
DEPENDS = "curl openssl zlib ffmpeg"
inherit gitpkgv
PV = "1.0+git${SRCPV}"
PKGV = "1.0+git${GITPKGV}"
PR = "r0"
SRC_URI = "git://github.com/samsamsam-iptvplayer/hlsdl.git;protocol=git"
SRCREV = "${AUTOREV}"
S = "${WORKDIR}/git/"
SOURCE_FILES = "src/main.c"
SOURCE_FILES =+ "src/aes.c"
SOURCE_FILES =+ "src/curl.c"
SOURCE_FILES =+ "src/hls.c"
SOURCE_FILES =+ "src/misc.c"
SOURCE_FILES =+ "src/msg.c"
do_compile() {
${CC} ${SOURCE_FILES} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_GNU_SOURCE=1 -DWITH_FFMPEG -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -DPREFIX="/usr" -std=gnu99 -I${S}/src -I${D}/${libdir} -I${D}/${includedir} -lrt -lpthread -lz -lssl -lcrypto -lcurl -lavcodec -lavformat -lavutil -o hlsdl ${LDFLAGS}
}
do_install() {
install -d ${D}${bindir}
install -m 0755 ${S}/hlsdl ${D}${bindir}/
}
FILES_${PN} = "${bindir}"