-
Notifications
You must be signed in to change notification settings - Fork 179
/
iptvsubparser_git.bb
37 lines (28 loc) · 1.53 KB
/
iptvsubparser_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
36
37
DESCRIPTION = "Python module for text subtitles parsing"
MAINTAINER = "samsamsam"
require conf/license/license-gplv2.inc
DEPENDS = "python"
inherit gitpkgv
PV = "1.0+git${SRCPV}"
PKGV = "1.0+git${GITPKGV}"
PR = "r0"
SRC_URI = "git://github.com/samsamsam-iptvplayer/iptvsubparser.git;protocol=git"
SRCREV = "${AUTOREV}"
S = "${WORKDIR}/git/"
SOURCE_FILES = "src/subparsermodule.c"
SOURCE_FILES =+ "src/vlc/src/subtitle.c"
SOURCE_FILES =+ "src/ffmpeg/src/htmlsubtitles.c"
SOURCE_FILES =+ "src/expat-2.2.0/xmlparse.c"
SOURCE_FILES =+ "src/expat-2.2.0/xmlrole.c"
SOURCE_FILES =+ "src/expat-2.2.0/xmltok.c"
SOURCE_FILES =+ "src/expat-2.2.0/xmltok_impl.c"
SOURCE_FILES =+ "src/expat-2.2.0/xmltok_ns.c"
SOURCE_FILES =+ "src/ttml/src/ttmlparser.c"
do_compile() {
${CC} ${SOURCE_FILES} -shared -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_GNU_SOURCE=1 -DNDEBUG -Os -shared -Wall -Wstrict-prototypes -fPIC -DMAJOR_VERSION=0 -DMINOR_VERSION=2 -DHAVE_EXPAT_CONFIG_H -I${S}/src -I${S}/src/vlc/include -I${S}/src/ffmpeg/include -I${S}/src/expat-2.2.0 -I${S}/src/ttml/include -I${D}/${libdir} -I${D}/${includedir} -I${STAGING_DIR_TARGET}/${includedir}/python2.7 -lm -lpython2.7 -o _subparser.so -Wl,--gc-sections ${LDFLAGS}
}
do_install() {
install -d ${D}${libdir}/enigma2/python/Plugins/Extensions/IPTVPlayer/libs/iptvsubparser
install -m 0777 ${S}/_subparser.so ${D}${libdir}/enigma2/python/Plugins/Extensions/IPTVPlayer/libs/iptvsubparser/
}
FILES_${PN} = "${libdir}/enigma2/python/Plugins/Extensions/IPTVPlayer/libs/iptvsubparser"