Skip to content

Commit

Permalink
kodi-pre-release: Fix build problems, add missing sources
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Reimer committed Jul 22, 2018
1 parent 97e3cba commit d831be0
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 5 deletions.
13 changes: 10 additions & 3 deletions kodi-pre-release/.SRCINFO
@@ -1,8 +1,6 @@
# Generated by mksrcinfo v8
# Sat Jun 30 19:25:29 UTC 2018
pkgbase = kodi-pre-release
pkgver = 18.0a2
pkgrel = 4
pkgrel = 5
url = http://kodi.tv
arch = x86_64
license = GPL2
Expand Down Expand Up @@ -60,19 +58,27 @@ pkgbase = kodi-pre-release
noextract = libdvdnav-6.0.0-Leia-Alpha-3.tar.gz
noextract = libdvdread-6.0.0-Leia-Alpha-3.tar.gz
noextract = ffmpeg-4.0.1-Leia-Alpha3-1.tar.gz
noextract = fmt-3.0.1.tar.gz
noextract = crossguid-8f399e8bd4.tar.gz
source = kodi-18.0a2-Leia.tar.gz::https://github.com/xbmc/xbmc/archive/18.0a2-Leia.tar.gz
source = ffmpeg-4.0.1-Leia-Alpha3-1.tar.gz::https://github.com/xbmc/FFmpeg/archive/4.0.1-Leia-Alpha3-1.tar.gz
source = libdvdcss-1.4.1-Leia-Alpha-3.tar.gz::https://github.com/xbmc/libdvdcss/archive/1.4.1-Leia-Alpha-3.tar.gz
source = libdvdnav-6.0.0-Leia-Alpha-3.tar.gz::https://github.com/xbmc/libdvdnav/archive/6.0.0-Leia-Alpha-3.tar.gz
source = libdvdread-6.0.0-Leia-Alpha-3.tar.gz::https://github.com/xbmc/libdvdread/archive/6.0.0-Leia-Alpha-3.tar.gz
source = http://mirrors.kodi.tv/build-deps/sources/fmt-3.0.1.tar.gz
source = http://mirrors.kodi.tv/build-deps/sources/crossguid-8f399e8bd4.tar.gz
source = cheat-sse-build.patch
source = fix-fmt-race-condition.patch
source = cpuinfo
sha256sums = 937d755c638324bf388fc9e971c5d8f90fcc0ab9362f0b15bbad5e47f0bc67d6
sha256sums = 20c38f8153384335a777806facdd4444e6b1a73bec9a16f557d6f98ca7a30f54
sha256sums = 6af3d4f60e5af2c11ebe402b530c07c8878df1a6cf19372e16c92848d69419a5
sha256sums = 071e414e61b795f2ff9015b21a85fc009dde967f27780d23092643916538a57a
sha256sums = a30b6aa0aad0f2c505bc77948af2d5531a80b6e68112addb4c123fca24d5d3bf
sha256sums = dce62ab75a161dd4353a98364feb166d35e7eea382169d59d9ce842c49c55bad
sha256sums = 3d77d09a5df0de510aeeb940df4cb534787ddff3bb1828779753f5dfa1229d10
sha256sums = 304d4581ef024bdb302ed0f2dcdb9c8dea03f78ba30d2a52f4a0d1c8fc4feecd
sha256sums = d4ce2791cbf6fe6a4ea3507816e253a39d6562c7163dbf8ec30f5006484b75fa
sha256sums = 27387e49043127f09c5ef0a931fffb864f5730e79629100a6e210b68a1b9f2c1

pkgname = kodi-pre-release
Expand All @@ -81,6 +87,7 @@ pkgname = kodi-pre-release
depends = desktop-file-utils
depends = freetype2
depends = fribidi
depends = curl
depends = hicolor-icon-theme
depends = libass
depends = libcdio
Expand Down
19 changes: 17 additions & 2 deletions kodi-pre-release/PKGBUILD
Expand Up @@ -12,14 +12,15 @@
# Contributor: Zeqadious <zeqadious.at.gmail.dot.com>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Maxime Gauduin <alucryd@gmail.com>
# Contributor: Manuel Reimer <manuel.reimer@gmx.de>
#
# Original credits go to Edgar Hucek <gimli at dark-green dot com>
# for his xbmc-vdpau-vdr PKGBUILD at https://archvdr.svn.sourceforge.net/svnroot/archvdr/trunk/archvdr/xbmc-vdpau-vdr/PKGBUILD

pkgbase=kodi-pre-release
pkgname=("kodi-${pkgbase#kodi-*}" "kodi-eventclients-${pkgbase#kodi-*}" "kodi-tools-texturepacker-${pkgbase#kodi-*}" "kodi-dev-${pkgbase#kodi-*}")
pkgver=18.0a2
pkgrel=4
pkgrel=5
arch=('x86_64')
url="http://kodi.tv"
license=('GPL2')
Expand Down Expand Up @@ -47,27 +48,37 @@ _ffmpeg_version="4.0.1-$_codename-$_rtype"3-1
_libdvdcss_version="1.4.1-$_codename-$_rtype"-3
_libdvdnav_version="6.0.0-$_codename-$_rtype"-3
_libdvdread_version="6.0.0-$_codename-$_rtype"-3
_fmt_version="3.0.1"
_crossguid_version="8f399e8bd4"
source=(
"${pkgbase%%-*}-$pkgver-$_codename.tar.gz::https://github.com/xbmc/xbmc/archive/$pkgver-$_codename.tar.gz"
"ffmpeg-$_ffmpeg_version.tar.gz::https://github.com/xbmc/FFmpeg/archive/$_ffmpeg_version.tar.gz"
"libdvdcss-$_libdvdcss_version.tar.gz::https://github.com/xbmc/libdvdcss/archive/$_libdvdcss_version.tar.gz"
"libdvdnav-$_libdvdnav_version.tar.gz::https://github.com/xbmc/libdvdnav/archive/$_libdvdnav_version.tar.gz"
"libdvdread-$_libdvdread_version.tar.gz::https://github.com/xbmc/libdvdread/archive/$_libdvdread_version.tar.gz"
"http://mirrors.kodi.tv/build-deps/sources/fmt-$_fmt_version.tar.gz"
"http://mirrors.kodi.tv/build-deps/sources/crossguid-$_crossguid_version.tar.gz"
'cheat-sse-build.patch'
'fix-fmt-race-condition.patch'
'cpuinfo'
)
noextract=(
"libdvdcss-$_libdvdcss_version.tar.gz"
"libdvdnav-$_libdvdnav_version.tar.gz"
"libdvdread-$_libdvdread_version.tar.gz"
"ffmpeg-$_ffmpeg_version.tar.gz"
"fmt-$_fmt_version.tar.gz"
"crossguid-$_crossguid_version.tar.gz"
)
sha256sums=('937d755c638324bf388fc9e971c5d8f90fcc0ab9362f0b15bbad5e47f0bc67d6'
'20c38f8153384335a777806facdd4444e6b1a73bec9a16f557d6f98ca7a30f54'
'6af3d4f60e5af2c11ebe402b530c07c8878df1a6cf19372e16c92848d69419a5'
'071e414e61b795f2ff9015b21a85fc009dde967f27780d23092643916538a57a'
'a30b6aa0aad0f2c505bc77948af2d5531a80b6e68112addb4c123fca24d5d3bf'
'dce62ab75a161dd4353a98364feb166d35e7eea382169d59d9ce842c49c55bad'
'3d77d09a5df0de510aeeb940df4cb534787ddff3bb1828779753f5dfa1229d10'
'304d4581ef024bdb302ed0f2dcdb9c8dea03f78ba30d2a52f4a0d1c8fc4feecd'
'd4ce2791cbf6fe6a4ea3507816e253a39d6562c7163dbf8ec30f5006484b75fa'
'27387e49043127f09c5ef0a931fffb864f5730e79629100a6e210b68a1b9f2c1')

prepare() {
Expand All @@ -79,6 +90,8 @@ prepare() {
if [[ "$srcdir" =~ ^\/build.* ]]; then
patch -Np1 -i "$srcdir/cheat-sse-build.patch"
fi

patch -p1 -i "$srcdir/fix-fmt-race-condition.patch"
}

build() {
Expand All @@ -95,6 +108,8 @@ build() {
-Dlibdvdnav_URL="$srcdir/libdvdnav-$_libdvdnav_version.tar.gz" \
-Dlibdvdread_URL="$srcdir/libdvdread-$_libdvdread_version.tar.gz" \
-DFFMPEG_URL="$srcdir/ffmpeg-$_ffmpeg_version.tar.gz" \
-DFMT_URL="$srcdir/fmt-$_fmt_version.tar.gz" \
-DCROSSGUID_URL="$srcdir/crossguid-$_crossguid_version.tar.gz" \
-DENABLE_INTERNAL_FMT=ON \
../"xbmc-$pkgver-$_codename"
make
Expand All @@ -107,7 +122,7 @@ build() {
package_kodi-pre-release() {
pkgdesc="Alpha, Beta, or RC version of a media player and entertainment hub for digital media."
depends=(
'bluez-libs' 'desktop-file-utils' 'freetype2' 'fribidi'
'bluez-libs' 'desktop-file-utils' 'freetype2' 'fribidi' 'curl'
'hicolor-icon-theme' 'libass' 'libcdio' 'libjpeg-turbo' 'libmariadbclient'
'libmicrohttpd' 'libpulse' 'libssh' 'libva' 'libvdpau' 'libxrandr' 'libcec'
'libxslt' 'lirc' 'lzo' 'mesa' 'python2-pillow' 'python2-simplejson' 'smbclient'
Expand Down
53 changes: 53 additions & 0 deletions kodi-pre-release/fix-fmt-race-condition.patch
@@ -0,0 +1,53 @@
commit c2d8c14a29018a6dbd39a00454addd5944f67fcb
Author: wsnipex <wsnipex@a1.net>
Date: Sun Jul 22 12:34:38 2018 +0200

fmt

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4350a82bd1..9676919ce5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -288,7 +288,7 @@ endif()

# main library (used for main binary and tests)
add_library(lib${APP_NAME_LC} STATIC $<TARGET_OBJECTS:compileinfo>)
-add_dependencies(lib${APP_NAME_LC} libcpluff ffmpeg dvdnav crossguid ${PLATFORM_GLOBAL_TARGET_DEPS})
+add_dependencies(lib${APP_NAME_LC} libcpluff ffmpeg dvdnav crossguid Fmt ${PLATFORM_GLOBAL_TARGET_DEPS})
set_target_properties(lib${APP_NAME_LC} PROPERTIES PREFIX "")

# Other files (IDE)
diff --git a/cmake/modules/FindFmt.cmake b/cmake/modules/FindFmt.cmake
index ec0a12cb9e..60a6978a11 100644
--- a/cmake/modules/FindFmt.cmake
+++ b/cmake/modules/FindFmt.cmake
@@ -34,7 +34,7 @@ if(ENABLE_INTERNAL_FMT)

set(FMT_LIBRARY ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/lib/libfmt.a)
set(FMT_INCLUDE_DIR ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/include)
- externalproject_add(fmt
+ externalproject_add(Fmt
URL ${FMT_URL}
DOWNLOAD_DIR ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/download
PREFIX ${CORE_BUILD_DIR}/fmt
@@ -43,8 +43,10 @@ if(ENABLE_INTERNAL_FMT)
-DFMT_DOC=OFF
-DFMT_TEST=OFF
"${EXTRA_ARGS}"
- BUILD_BYPRODUCTS ${FMT_LIBRARY})
- set_target_properties(fmt PROPERTIES FOLDER "External Projects")
+ BUILD_BYPRODUCTS ${FMT_LIBRARY} ${FMT_INCLUDE_DIR})
+ set_target_properties(Fmt PROPERTIES FOLDER "External Projects"
+ IMPORTED_LOCATION "${FMT_LIBRARY}"
+ INTERFACE_INCLUDE_DIRECTORIES "${FMT_INCLUDE_DIR}")

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Fmt
@@ -98,6 +100,5 @@ if(FMT_FOUND)
endif()
endif()

-mark_as_advanced(FMT_INCLUDE_DIR FMT_LIBRARY)
-
endif()
+mark_as_advanced(FMT_INCLUDE_DIR FMT_LIBRARY)

0 comments on commit d831be0

Please sign in to comment.