4 |
4 |
EAPI=7
|
5 |
5 |
|
6 |
6 |
PYTHON_REQ_USE="sqlite,ssl"
|
7 |
|
LIBDVDCSS_VERSION="1.4.2-Leia-Beta-5"
|
8 |
|
LIBDVDREAD_VERSION="6.0.0-Leia-Alpha-3"
|
9 |
|
LIBDVDNAV_VERSION="6.0.0-Leia-Alpha-3"
|
10 |
|
FFMPEG_VERSION="4.3.2"
|
11 |
|
CODENAME="Matrix"
|
12 |
|
FFMPEG_KODI_VERSION="19.1"
|
|
7 |
LIBDVDCSS_VERSION="1.4.3-Next-Nexus-Alpha2-2"
|
|
8 |
LIBDVDREAD_VERSION="6.1.3-Next-Nexus-Alpha2-2"
|
|
9 |
LIBDVDNAV_VERSION="6.1.1-Next-Nexus-Alpha2-2"
|
|
10 |
FFMPEG_VERSION="5.1.2"
|
|
11 |
CODENAME="Nexus"
|
|
12 |
FFMPEG_KODI_VERSION="Alpha3"
|
13 |
13 |
PYTHON_COMPAT=( python3_{10..11} )
|
14 |
14 |
SRC_URI="https://github.com/xbmc/libdvdcss/archive/${LIBDVDCSS_VERSION}.tar.gz -> libdvdcss-${LIBDVDCSS_VERSION}.tar.gz
|
15 |
15 |
https://github.com/xbmc/libdvdread/archive/${LIBDVDREAD_VERSION}.tar.gz -> libdvdread-${LIBDVDREAD_VERSION}.tar.gz
|
... | ... | |
17 |
17 |
!system-ffmpeg? ( https://github.com/xbmc/FFmpeg/archive/${FFMPEG_VERSION}-${CODENAME}-${FFMPEG_KODI_VERSION}.tar.gz -> ffmpeg-${PN}-${FFMPEG_VERSION}-${CODENAME}-${FFMPEG_KODI_VERSION}.tar.gz )"
|
18 |
18 |
if [[ ${PV} == *9999 ]] ; then
|
19 |
19 |
EGIT_REPO_URI="https://github.com/xbmc/xbmc.git"
|
20 |
|
EGIT_BRANCH="Matrix"
|
21 |
20 |
inherit git-r3
|
22 |
21 |
else
|
23 |
22 |
MY_PV=${PV/_p/_r}
|
24 |
23 |
MY_PV=${MY_PV/_alpha/a}
|
25 |
24 |
MY_PV=${MY_PV/_beta/b}
|
26 |
25 |
MY_PV=${MY_PV/_rc/RC}
|
27 |
|
MY_PV="${MY_PV}-${CODENAME}"
|
28 |
26 |
MY_P="${PN}-${MY_PV}"
|
29 |
|
SRC_URI+=" https://github.com/xbmc/xbmc/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
|
|
27 |
SRC_URI+=" https://github.com/xbmc/xbmc/archive/${MY_PV}-${CODENAME}.tar.gz -> ${MY_P}.tar.gz"
|
30 |
28 |
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
31 |
|
S=${WORKDIR}/xbmc-${MY_PV}
|
|
29 |
S=${WORKDIR}/xbmc-${MY_PV}-${CODENAME}
|
32 |
30 |
fi
|
33 |
31 |
|
34 |
32 |
inherit autotools cmake desktop libtool linux-info pax-utils python-single-r1 xdg
|
... | ... | |
41 |
39 |
# use flag is called libusb so that it doesn't fool people in thinking that
|
42 |
40 |
# it is _required_ for USB support. Otherwise they'll disable udev and
|
43 |
41 |
# that's going to be worse.
|
44 |
|
IUSE="airplay alsa bluetooth bluray caps cec +css dav1d dbus eventclients gbm gles lcms libusb lirc mariadb mysql nfs +optical power-control pulseaudio raspberry-pi samba +system-ffmpeg test udf udev udisks upnp upower vaapi vdpau wayland webserver +X +xslt zeroconf"
|
|
42 |
IUSE="airplay alsa bluetooth bluray caps cec +css dav1d dbus eventclients gbm gles lcms libusb lirc mariadb mysql nfs +optical pipewire power-control pulseaudio raspberry-pi samba +system-ffmpeg test udf udev udisks upnp upower vaapi vdpau wayland webserver +X +xslt zeroconf"
|
45 |
43 |
IUSE="${IUSE} cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_arm_neon"
|
46 |
44 |
REQUIRED_USE="
|
47 |
45 |
${PYTHON_REQUIRED_USE}
|
... | ... | |
63 |
61 |
|
64 |
62 |
COMMON_DEPEND="
|
65 |
63 |
>=dev-libs/lzo-2.04
|
66 |
|
>=dev-libs/flatbuffers-1.12.0:=
|
67 |
|
>=media-libs/libjpeg-turbo-2.0.4:=
|
|
64 |
>=dev-libs/flatbuffers-1.11.0:=
|
|
65 |
>=media-libs/libjpeg-turbo-2.1.4:=
|
68 |
66 |
>=media-libs/libpng-1.6.26:0=
|
69 |
67 |
"
|
70 |
68 |
COMMON_TARGET_DEPEND="${PYTHON_DEPS}
|
... | ... | |
74 |
72 |
)
|
75 |
73 |
alsa? ( >=media-libs/alsa-lib-1.1.4.1 )
|
76 |
74 |
bluetooth? ( net-wireless/bluez )
|
77 |
|
bluray? ( >=media-libs/libbluray-1.1.2 )
|
|
75 |
bluray? ( >=media-libs/libbluray-1.3.2 )
|
78 |
76 |
caps? ( sys-libs/libcap )
|
79 |
77 |
dbus? ( sys-apps/dbus )
|
80 |
78 |
dev-db/sqlite
|
81 |
|
<dev-libs/crossguid-0.2.2_p20190529
|
|
79 |
dev-libs/crossguid
|
82 |
80 |
>=dev-libs/fribidi-1.0.5
|
83 |
81 |
cec? ( >=dev-libs/libcec-4.0[raspberry-pi?] )
|
84 |
82 |
dev-libs/libpcre[cxx]
|
... | ... | |
89 |
87 |
dev-python/pycryptodome[${PYTHON_USEDEP}]
|
90 |
88 |
')
|
91 |
89 |
>=dev-libs/libcdio-2.1.0[cxx]
|
92 |
|
>=dev-libs/libfmt-6.1.2
|
|
90 |
>=dev-libs/libfmt-9.1.0
|
93 |
91 |
dev-libs/libfstrcmp
|
94 |
92 |
gbm? (
|
95 |
93 |
>=dev-libs/libinput-1.10.5
|
... | ... | |
104 |
102 |
virtual/ttf-fonts
|
105 |
103 |
media-fonts/roboto
|
106 |
104 |
>=media-libs/freetype-2.10.1
|
107 |
|
>=media-libs/libass-0.13.4
|
|
105 |
>=media-libs/libass-0.15.1
|
108 |
106 |
!raspberry-pi? ( media-libs/mesa[egl(+)] )
|
109 |
107 |
>=media-libs/taglib-1.11.1
|
110 |
108 |
system-ffmpeg? (
|
111 |
109 |
>=media-video/ffmpeg-${FFMPEG_VERSION}:=[dav1d?,encode,postproc]
|
112 |
|
=media-video/ffmpeg-4*[openssl]
|
|
110 |
media-video/ffmpeg[openssl]
|
113 |
111 |
)
|
114 |
112 |
!system-ffmpeg? (
|
115 |
113 |
app-arch/bzip2
|
... | ... | |
118 |
116 |
mysql? ( dev-db/mysql-connector-c:= )
|
119 |
117 |
mariadb? ( dev-db/mariadb-connector-c:= )
|
120 |
118 |
>=net-misc/curl-7.68.0[http2]
|
121 |
|
nfs? ( >=net-fs/libnfs-2.0.0:= )
|
|
119 |
nfs? ( >=net-fs/libnfs-5.0.2:= )
|
122 |
120 |
!gles? ( media-libs/glu )
|
123 |
|
>=dev-libs/openssl-1.1.1k:0=
|
|
121 |
>=dev-libs/openssl-1.1.0:0=
|
124 |
122 |
raspberry-pi? (
|
125 |
123 |
|| ( media-libs/raspberrypi-userland media-libs/raspberrypi-userland-bin media-libs/mesa[egl(+),gles2,video_cards_vc4] )
|
126 |
124 |
)
|
|
125 |
pipewire? ( media-video/pipewire )
|
127 |
126 |
pulseaudio? ( media-libs/libpulse )
|
128 |
127 |
samba? ( >=net-fs/samba-3.4.6[smbclient(+)] )
|
129 |
128 |
>=sys-libs/zlib-1.2.11
|
... | ... | |
146 |
145 |
>=dev-libs/wayland-protocols-1.7
|
147 |
146 |
>=x11-libs/libxkbcommon-0.4.1
|
148 |
147 |
)
|
149 |
|
webserver? ( >=net-libs/libmicrohttpd-0.9.55:=[messages(+)] )
|
|
148 |
webserver? ( >=net-libs/libmicrohttpd-0.9.75:=[messages(+)] )
|
150 |
149 |
X? (
|
151 |
150 |
media-libs/mesa[X]
|
152 |
151 |
!gles? ( media-libs/libglvnd[X] )
|
... | ... | |
158 |
157 |
x11-libs/libdrm
|
159 |
158 |
xslt? (
|
160 |
159 |
dev-libs/libxslt
|
161 |
|
>=dev-libs/libxml2-2.9.4
|
|
160 |
>=dev-libs/libxml2-2.10.1
|
162 |
161 |
)
|
163 |
162 |
zeroconf? ( net-dns/avahi[dbus] )
|
164 |
163 |
"
|
... | ... | |
285 |
284 |
-DENABLE_OPENGL=$(usex !gles)
|
286 |
285 |
-DENABLE_OPTICAL=$(usex optical)
|
287 |
286 |
-DENABLE_PLIST=$(usex airplay)
|
|
287 |
-DENABLE_PIPEWIRE=$(usex pipewire)
|
288 |
288 |
-DENABLE_PULSEAUDIO=$(usex pulseaudio)
|
289 |
289 |
-DENABLE_SMBCLIENT=$(usex samba)
|
290 |
290 |
-DENABLE_SNDIO=OFF
|
... | ... | |
298 |
298 |
-Dlibdvdread_URL="${DISTDIR}/libdvdread-${LIBDVDREAD_VERSION}.tar.gz"
|
299 |
299 |
-Dlibdvdnav_URL="${DISTDIR}/libdvdnav-${LIBDVDNAV_VERSION}.tar.gz"
|
300 |
300 |
-Dlibdvdcss_URL="${DISTDIR}/libdvdcss-${LIBDVDCSS_VERSION}.tar.gz"
|
301 |
|
-DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
|
302 |
|
-DPYTHON_LIBRARY="$(python_get_library_path)"
|
|
301 |
-DPYTHON_VER="${EPYTHON#python}"
|
303 |
302 |
-DAPP_RENDER_SYSTEM="$(usex gles gles gl)"
|
304 |
303 |
-DCORE_PLATFORM_NAME="${core_platform_name}"
|
305 |
304 |
)
|