Skip to contentSkip to conversation

Introducing XBMC

PATCH Superseded Maxime Hadjinlian 3 participants 12 messages Jan 26, 2014 – Jan 29, 2014

v4 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

v4 cover Introducing XBMC

Hi all,

This is a new version (trimmed down), to the series of patch introducing XBMC. A few changes has been made to libenca, where I merged the patch from Bernd Kuhls (http://patchwork.ozlabs.org/patch/312284/).
And also XBMC, where I have reworked the init script, and added one for systemd.

As always, I wait for your reviews and comments !

Maxime Hadjinlian (5):
sdl: add host version
sdl_image: add host version
libenca: new package
libass: new package
xbmc: new package

 package/Config.in                                  |   3 +
 package/libass/Config.in                           |  11 ++
 package/libass/libass.mk                           |  14 ++
 package/libenca/Config.in                          |   7 +
 .../libenca/libenca-000-do-not-build-tools.patch   |  44 +++++
 .../libenca-001-fix-installation-error.patch       |  44 +++++
 ...benca-002-remove-prefix-hack-in-configure.patch |  33 ++++
 package/libenca/libenca-003-iconv.patch            |  15 ++
 package/libenca/libenca.mk                         |  33 ++++
 package/sdl/sdl.mk                                 |   2 +
 package/sdl_image/sdl_image.mk                     |  11 ++
 package/xbmc/Config.in                             | 202 +++++++++++++++++++++
 package/xbmc/S50xbmc                               |  41 +++++
 package/xbmc/xbmc-0001-Fixup-include-path.patch    |  79 ++++++++
 .../xbmc-0002-RaspberryPi-Default-Settings.patch   | 167 +++++++++++++++++
 package/xbmc/xbmc.mk                               | 176 ++++++++++++++++++
 package/xbmc/xbmc.service                          |  12 ++
 17 files changed, 894 insertions(+)
 create mode 100644 package/libass/Config.in
 create mode 100644 package/libass/libass.mk
 create mode 100644 package/libenca/Config.in
 create mode 100644 package/libenca/libenca-000-do-not-build-tools.patch
 create mode 100644 package/libenca/libenca-001-fix-installation-error.patch
 create mode 100644 package/libenca/libenca-002-remove-prefix-hack-in-configure.patch
 create mode 100644 package/libenca/libenca-003-iconv.patch
 create mode 100644 package/libenca/libenca.mk
 create mode 100644 package/xbmc/Config.in
 create mode 100755 package/xbmc/S50xbmc
 create mode 100644 package/xbmc/xbmc-0001-Fixup-include-path.patch
 create mode 100644 package/xbmc/xbmc-0002-RaspberryPi-Default-Settings.patch
 create mode 100644 package/xbmc/xbmc.mk
 create mode 100644 package/xbmc/xbmc.service

--
1.8.5.2

#1 lore raw

PATCH v4 1/5 sdl: add host version

Host version is needed to build xbmc

---
Changes v3 -> v4:
- None
Changes v2 -> v3:
- None
Changes v1 -> v2:
- None

---
 package/sdl/sdl.mk | 2 ++
 1 file changed, 2 insertions(+)
package/sdl/sdl.mk +2 -0
index ba5fbca..0972acb 100644
@@ -18,6 +18,7 @@ define SDL_RUN_AUTOGEN
 endef
 
 SDL_POST_PATCH_HOOKS += SDL_RUN_AUTOGEN
+HOST_SDL_POST_PATCH_HOOKS += SDL_RUN_AUTOGEN
 SDL_DEPENDENCIES += host-automake host-autoconf host-libtool
 
 
@@ -80,3 +81,4 @@ endef
 SDL_POST_INSTALL_STAGING_HOOKS += SDL_FIXUP_SDL_CONFIG
 
 $(eval $(autotools-package))
+$(eval $(host-autotools-package))
Signature · 1 line
1.8.5.2
#2 lore raw

PATCH v4 1/5 sdl: add host version

Dear Maxime Hadjinlian,

Quoted 4 lines · Maxime Hadjinlian

Host version is needed to build xbmc

For my curiosity, which specific SDL and SDL_image host tools are used by XBMC ?

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH v4 1/5 sdl: add host version

Thomas, all

Quoted 10 lines · Thomas Petazzoni

Dear Maxime Hadjinlian,

Quoted 4 lines · Maxime Hadjinlian

Host version is needed to build xbmc

For my curiosity, which specific SDL and SDL_image host tools are used by XBMC ?

This is needed by TexturePacker which is a host tool, that is used to pack the various images (jpeg and png) found in XBMC's GUI (Since it supports themes), it will generate a XBT file, wich will be read by XBMC on the target to depack and display the GUI.

Quoted 6 lines

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

#4 lore raw

PATCH v4 1/5 sdl: add host version

Dear Maxime Hadjinlian,

Quoted 4 lines · Maxime Hadjinlian

This is needed by TexturePacker which is a host tool, that is used to pack the various images (jpeg and png) found in XBMC's GUI (Since it supports themes), it will generate a XBT file, wich will be read by XBMC on the target to depack and display the GUI.

Ok, thanks! It answers my curiosity question :)

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#5 lore raw

PATCH v4 2/5 sdl_image: add host version

In reply to Maxime Hadjinlian

Host version is needed to build xbmc

---
Changes v3 -> v4:
- None
Changes v2 -> v3:
- None
Changes v1 -> v2:
- None

---
 package/sdl_image/sdl_image.mk | 11 +++++++++++
 1 file changed, 11 insertions(+)
package/sdl_image/sdl_image.mk +11 -0
index ba9751d..05b9a1f 100644
@@ -38,4 +38,15 @@ SDL_IMAGE_DEPENDENCIES = sdl \
 	$(if $(BR2_PACKAGE_SDL_IMAGE_TIFF),tiff) \
 	$(if $(BR2_PACKAGE_SDL_IMAGE_WEBP),webp)
 
+HOST_SDL_IMAGE_CONF_OPT = --with-sdl-prefix=$(HOST_DIR)/usr \
+                --with-sdl-exec-prefix=$(HOST_DIR)/usr \
+                --disable-sdltest \
+                --disable-static \
+                --disable-jpg-shared \
+                --disable-png-shared \
+                --disable-tif-shared \
+
+HOST_SDL_IMAGE_DEPENDENCIES = host-libjpeg host-libpng host-sdl
+
 $(eval $(autotools-package))
+$(eval $(host-autotools-package))
Signature · 1 line
1.8.5.2
#6 lore raw

PATCH v4 3/5 libenca: new package

In reply to Maxime Hadjinlian

Extremely Naive Charset Analyser.

This package was originally found at : https://github.com/huceke/buildroot-rbp
By gimli <[email protected]>

---
Changes v3 --> v4:
- Add support for libiconv (Patch from Bernd Kuhls)
Changes v2 --> v3:
- Bump libenca to 1.15 (1.9 was 4 years ago)
- Rework the whole libenca.mk file
- Switch source to github
- New patch against Makefile.am and do AUTORECONF (Thomas Petazzoni, Yann E. Morin)
- Remove the uses of prefix by adding a patch which removes a hack in the configure.ac (Yann E. Morin)
Changes v1 --> v2:
- Rename patch files (Thomas Petazzoni)
- Fix header of the mk files (Thomas Petazzoni)
- Fix indent (Thomas Petazzoni)
- Put LIBENCA_CONF_ENV on one line (Thomas Petazzoni)

---
 package/Config.in                                  |  1 +
 package/libenca/Config.in                          |  7 ++++
 .../libenca/libenca-000-do-not-build-tools.patch   | 44 ++++++++++++++++++++++
 .../libenca-001-fix-installation-error.patch       | 44 ++++++++++++++++++++++
 ...benca-002-remove-prefix-hack-in-configure.patch | 33 ++++++++++++++++
 package/libenca/libenca-003-iconv.patch            | 15 ++++++++
 package/libenca/libenca.mk                         | 33 ++++++++++++++++
 7 files changed, 177 insertions(+)
 create mode 100644 package/libenca/Config.in
 create mode 100644 package/libenca/libenca-000-do-not-build-tools.patch
 create mode 100644 package/libenca/libenca-001-fix-installation-error.patch
 create mode 100644 package/libenca/libenca-002-remove-prefix-hack-in-configure.patch
 create mode 100644 package/libenca/libenca-003-iconv.patch
 create mode 100644 package/libenca/libenca.mk
package/Config.in +1 -0
index 397cc11..677f01e 100644
@@ -773,6 +773,7 @@ menu "Text and terminal handling"
 source "package/enchant/Config.in"
 source "package/icu/Config.in"
 source "package/libedit/Config.in"
+source "package/libenca/Config.in"
 source "package/libfribidi/Config.in"
 source "package/libiconv/Config.in"
 source "package/linenoise/Config.in"
package/libenca/Config.in new file +7 -0
new file mode 100644
index 0000000..58217dc
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LIBENCA
+	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
+	bool "libenca"
+	help
+	  Extremely Naive Charset Analyser
+
+	  http://cihar.com/software/enca/
package/libenca/libenca-000-do-not-build-tools.patch new file +44 -0

44 lines not on this page · raw message

package/libenca/libenca-001-fix-installation-error.patch new file +44 -0

44 lines not on this page · raw message

package/libenca/libenca-002-remove-prefix-hack-in-configure.patch new file +33 -0
new file mode 100644
index 0000000..45701f9
@@ -0,0 +1,33 @@
+From 354a8217eb735c9678f42436d647571fcebc3ead Mon Sep 17 00:00:00 2001
+From: Maxime Hadjinlian <[email protected]>
+Date: Wed, 15 Jan 2014 00:46:10 +0100
+Subject: [PATCH 3/3] Remove prefix hack in configure
+
+Signed-off-by: Maxime Hadjinlian <[email protected]>
+---
+ configure.ac | 9 ---------
+ 1 file changed, 9 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 9db3b21..9b99df4 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -100,15 +100,6 @@ gtk_CHECK_GTK_DOC
+ dnl Check for good random number sources
+ AC_CHECK_FILES(/dev/random /dev/urandom /dev/srandom /dev/arandom)
+ 
+-dnl Dirty path hack.  Helps some people with badly set up search paths.
+-if test "$prefix" = "NONE"; then
+-  LDFLAGS="$LDFLAGS -L$ac_default_prefix/lib"
+-  CPPFLAGS="$CPPFLAGS -I$ac_default_prefix/include"
+-else
+-  LDFLAGS="$LDFLAGS -L$prefix/lib"
+-  CPPFLAGS="$CPPFLAGS -I$prefix/include"
+-fi
+-
+ dnl Checks for libraries.
+ ye_CHECK_LIBM
+ 
+-- 
+1.8.5.2
+
package/libenca/libenca-003-iconv.patch new file +15 -0
new file mode 100644
index 0000000..2ea43c0
@@ -0,0 +1,15 @@
+libiconv.m4: Fix AM_ICONV macro usage
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+
+--- a/m4/libiconv.m4 2013-09-30 09:48:22.000000000 +0200
++++ b/m4/libiconv.m4 2014-01-18 12:56:32.634514555 +0100
+@@ -17,7 +17,7 @@
+ dnl
+
+ dnl Use standard iconv test
+-AM_ICONV
++m4_pattern_allow([AM_ICONV])
+ CONVERTER_LIBS="$CONVERTER_LIBS $LIBICONV"
+
+ dnl Compile iconvcap.c and run it to determine what encodings iconv actually
package/libenca/libenca.mk new file +33 -0
new file mode 100644
index 0000000..1c5c162
@@ -0,0 +1,33 @@
+################################################################################
+#
+# libenca
+#
+################################################################################
+
+LIBENCA_VERSION = 1.15
+LIBENCA_SITE = $(call github,nijel,enca,$(LIBENCA_VERSION))
+LIBENCA_INSTALL_STAGING = YES
+LIBENCA_AUTORECONF = YES
+LIBENCA_LICENSE = GPLv2
+LIBENCA_LICENSE_FILES = COPYING
+LIBENCA_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBICONV),libiconv)
+
+LIBENCA_CONF_ENV += ac_cv_file__dev_random=yes \
+			ac_cv_file__dev_urandom=yes \
+			ac_cv_file__dev_arandom=no \
+			ac_cv_file__dev_srandom=no
+
+define LIBENCA_MAKE_HOST_TOOL
+	cd $(@D)/tools && sed -e 's/^#define \([A-Z0-9_]*\) \(.*\)/@\1@ \2/' \
+		-e 's/"//g' \
+		-e 's/NULL$$//' \
+		-e 's/ /\//' \
+		-e 's/^\(.*\)$$/s\/\1\//' \
+		../iconvenc.h >encodings.sed
+	cd $(@D)/tools && $(HOSTCC) -o make_hash make_hash.c
+	cd $(@D)/tools && sed -f encodings.sed ./encodings.dat | ./make_hash >encodings.h
+endef
+
+LIBENCA_POST_CONFIGURE_HOOKS += LIBENCA_MAKE_HOST_TOOL
+
+$(eval $(autotools-package))
Signature · 1 line
1.8.5.2
#7 lore raw

PATCH v4 3/5 libenca: new package

Quoted 59 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Maxime" == Maxime Hadjinlian <[email protected]> writes:

Extremely Naive Charset Analyser.
This package was originally found at : https://github.com/huceke/buildroot-rbp
By gimli <[email protected]>

---
Changes v3 --> v4:
- Add support for libiconv (Patch from Bernd Kuhls)
Changes v2 --> v3:
- Bump libenca to 1.15 (1.9 was 4 years ago)
- Rework the whole libenca.mk file
- Switch source to github
- New patch against Makefile.am and do AUTORECONF (Thomas Petazzoni, Yann E. Morin)
- Remove the uses of prefix by adding a patch which removes a hack in the configure.ac (Yann E. Morin)
Changes v1 --> v2:
- Rename patch files (Thomas Petazzoni)
- Fix header of the mk files (Thomas Petazzoni)
- Fix indent (Thomas Petazzoni)
- Put LIBENCA_CONF_ENV on one line (Thomas Petazzoni)

---
 package/Config.in                                  |  1 +
 package/libenca/Config.in                          |  7 ++++
 .../libenca/libenca-000-do-not-build-tools.patch   | 44 ++++++++++++++++++++++
 .../libenca-001-fix-installation-error.patch       | 44 ++++++++++++++++++++++
 ...benca-002-remove-prefix-hack-in-configure.patch | 33 ++++++++++++++++
 package/libenca/libenca-003-iconv.patch            | 15 ++++++++
 package/libenca/libenca.mk                         | 33 ++++++++++++++++
 7 files changed, 177 insertions(+)
 create mode 100644 package/libenca/Config.in
 create mode 100644 package/libenca/libenca-000-do-not-build-tools.patch
 create mode 100644 package/libenca/libenca-001-fix-installation-error.patch
 create mode 100644 package/libenca/libenca-002-remove-prefix-hack-in-configure.patch
 create mode 100644 package/libenca/libenca-003-iconv.patch
 create mode 100644 package/libenca/libenca.mk
package/Config.in +1 -0
index 397cc11..677f01e 100644
@@ -773,6 +773,7 @@ menu "Text and terminal handling"
 source "package/enchant/Config.in"
 source "package/icu/Config.in"
 source "package/libedit/Config.in"
+source "package/libenca/Config.in"
 source "package/libfribidi/Config.in"
 source "package/libiconv/Config.in"
 source "package/linenoise/Config.in"
package/libenca/Config.in new file +0 -0
new file mode 100644
index 0000000..58217dc

package/libenca/Config.in line 2

Quoted 2 lines
package/libenca/Config.in new file +2 -0
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LIBENCA
+	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE

A quick test shows that locale / libiconv actually isn't needed. Configure warns if they aren't available, but it does build.

Quoted 13 lines
package/libenca/Config.in new file +5 -0
+	bool "libenca"
+	help
+	  Extremely Naive Charset Analyser
+
+	  http://cihar.com/software/enca/
package/libenca/libenca-000-do-not-build-tools.patch new file +2 -0
new file mode 100644
index 0000000..83db61b
@@ -0,0 +1,44 @@
+From be1fe3e057ccb90fd476bf855f19ecbe97bf4e1e Mon Sep 17 00:00:00 2001
+From: Maxime Hadjinlian <[email protected]>

package/libenca/libenca-000-do-not-build-tools.patch line 12

Quoted 10 lines
package/libenca/libenca-000-do-not-build-tools.patch new file +10 -0
+Date: Wed, 15 Jan 2014 00:18:34 +0100
+Subject: [PATCH 1/3] Do not build tools
+
+We don't want to build tools using buildroot because there is currently no
+support for cross compile.
+And we need to execute make_hash (which seems to be the only things that get
+compiled in tools) to create encodings.h which will later be used during the
+build process.
+Thus, we disable the build of the tools, and we do ourselves using a
+POST_CONFIGURE_HOOKS.

As long as we build make_hash in advance, the make file won't try to rebuild it so we don't actually need this patch.

package/libenca/libenca-000-do-not-build-tools.patch line 21

Quoted 9 lines
package/libenca/libenca-000-do-not-build-tools.patch new file +9 -0
+define LIBENCA_MAKE_HOST_TOOL
+	cd $(@D)/tools && sed -e 's/^#define \([A-Z0-9_]*\) \(.*\)/@\1@ \2/' \
+		-e 's/"//g' \
+		-e 's/NULL$$//' \
+		-e 's/ /\//' \
+		-e 's/^\(.*\)$$/s\/\1\//' \
+		../iconvenc.h >encodings.sed
+	cd $(@D)/tools && $(HOSTCC) -o make_hash make_hash.c
+	cd $(@D)/tools && sed -f encodings.sed ./encodings.dat | ./make_hash >encodings.h

It would be good to use HOST_CFLAGS / HOST_LDFLAGS as well. We might as well use util/Makefile instead of hardcoding all these steps.

Committed with those changes, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#8 lore raw

PATCH v4 3/5 libenca: new package

In reply to Maxime Hadjinlian
Quoted 25 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Maxime" == Maxime Hadjinlian <[email protected]> writes:

Extremely Naive Charset Analyser.
This package was originally found at : https://github.com/huceke/buildroot-rbp
By gimli <[email protected]>

---
Changes v3 --> v4:
- Add support for libiconv (Patch from Bernd Kuhls)
Changes v2 --> v3:
- Bump libenca to 1.15 (1.9 was 4 years ago)
- Rework the whole libenca.mk file
- Switch source to github
- New patch against Makefile.am and do AUTORECONF (Thomas Petazzoni, Yann E. Morin)
- Remove the uses of prefix by adding a patch which removes a hack in the configure.ac (Yann E. Morin)
Changes v1 --> v2:
- Rename patch files (Thomas Petazzoni)
- Fix header of the mk files (Thomas Petazzoni)
- Fix indent (Thomas Petazzoni)
- Put LIBENCA_CONF_ENV on one line (Thomas Petazzoni)

Quoted 7 lines
---
 package/Config.in                                  |  1 +
 package/libenca/Config.in                          |  7 ++++
 .../libenca/libenca-000-do-not-build-tools.patch   | 44 ++++++++++++++++++++++
 .../libenca-001-fix-installation-error.patch       | 44 ++++++++++++++++++++++
 ...benca-002-remove-prefix-hack-in-configure.patch | 33 ++++++++++++++++
 package/libenca/libenca-003-iconv.patch            | 15 ++++++++

Oh and plese don't forget to send the patches upstream!

Signature · 1 line
Bye, Peter Korsgaard
#9 lore raw

PATCH v4 4/5 libass: new package

In reply to Maxime Hadjinlian

libass is a portable subtitle renderer for the
ASS/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format. This package was originally found at : https://github.com/huceke/buildroot-rbp
By gimli <[email protected]>

---
Changes v3 -> v4:
- None
Changes v2 -> v3
- Add missing libfribidi dependency
- Fix header
Changes v1 -> v2
- Bump version to 0.10.2 (Bernd Kuhls)

---
 package/Config.in        |  1 +
 package/libass/Config.in | 11 +++++++++++
 package/libass/libass.mk | 14 ++++++++++++++
 3 files changed, 26 insertions(+)
 create mode 100644 package/libass/Config.in
 create mode 100644 package/libass/libass.mk
package/Config.in +1 -0
index 677f01e..fa637cf 100644
@@ -630,6 +630,7 @@ source "package/yajl/Config.in"
 endmenu
 
 menu "Multimedia"
+source "package/libass/Config.in"
 source "package/libbluray/Config.in"
 source "package/libdvbsi/Config.in"
 source "package/libdvdnav/Config.in"
package/libass/Config.in new file +11 -0
new file mode 100644
index 0000000..9170c6f
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_LIBASS
+	bool "libass"
+	select BR2_PACKAGE_FREETYPE
+	select BR2_PACKAGE_FONTCONFIG
+	select BR2_PACKAGE_LIBENCA
+	select BR2_PACKAGE_LIBFRIBIDI
+	help
+	  libass is a portable subtitle renderer for the ASS/SSA
+	  (Advanced Substation Alpha/Substation Alpha) subtitle format
+
+	  http://code.google.com/p/libass/
package/libass/libass.mk new file +14 -0
new file mode 100644
index 0000000..5c2a1b3
@@ -0,0 +1,14 @@
+################################################################################
+#
+# libass
+#
+################################################################################
+
+LIBASS_VERSION = 0.10.2
+LIBASS_SITE = http://libass.googlecode.com/files
+LIBASS_INSTALL_STAGING = YES
+LIBASS_DEPENDENCIES = freetype fontconfig libenca libfribidi
+LIBASS_LICENSE = BSD-3c
+LIBASS_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
Signature · 1 line
1.8.5.2
#10 lore raw

PATCH v4 4/5 libass: new package

Quoted 21 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Maxime" == Maxime Hadjinlian <[email protected]> writes:

libass is a portable subtitle renderer for the
ASS/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format. This package was originally found at : https://github.com/huceke/buildroot-rbp
By gimli <[email protected]>

---
Changes v3 -> v4:
- None
Changes v2 -> v3
- Add missing libfribidi dependency
- Fix header
Changes v1 -> v2
- Bump version to 0.10.2 (Bernd Kuhls)

+++ b/package/libass/Config.in

package/libass/Config.in line 6

Quoted 6 lines
package/libass/Config.in new file +6 -0
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_LIBASS
+	bool "libass"
+	select BR2_PACKAGE_FREETYPE
+	select BR2_PACKAGE_FONTCONFIG
+	select BR2_PACKAGE_LIBENCA
+	select BR2_PACKAGE_LIBFRIBIDI

fontconfig and libenca are optional, so we shouldn't select them here.

Quoted 11 lines
package/libass/Config.in new file +5 -0
+	help
+	  libass is a portable subtitle renderer for the ASS/SSA
+	  (Advanced Substation Alpha/Substation Alpha) subtitle format
+
+	  http://code.google.com/p/libass/
package/libass/libass.mk new file +0 -0
new file mode 100644
index 0000000..5c2a1b3

package/libass/libass.mk line 10

Quoted 10 lines
package/libass/libass.mk new file +10 -0
@@ -0,0 +1,14 @@
+################################################################################
+#
+# libass
+#
+################################################################################
+
+LIBASS_VERSION = 0.10.2
+LIBASS_SITE = http://libass.googlecode.com/files
+LIBASS_INSTALL_STAGING = YES
+LIBASS_DEPENDENCIES = freetype fontconfig libenca libfribidi

It uses pkg-config to find the libraries, so we also need host-pkgconf. It also looks for libiconv if available, so we need to add it. As mentioned fontconfig and libenca are optional. There's also optional support for harfbuzz so I added that as well.

package/libass/libass.mk line 12

Quoted 2 lines
package/libass/libass.mk new file +2 -0
+LIBASS_LICENSE = BSD-3c
+LIBASS_LICENSE_FILES = COPYING

I know the website states that, but COPYING and the file headers are ISC, so I changed it to that.

Committed with those fixes, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#11 lore raw

PATCH v4 5/5 xbmc: new package

In reply to Maxime Hadjinlian

XBMC is an award-winning free and open source (GPL) software media player and entertainment hub for digital media.
This package was originally found at : https://github.com/huceke/buildroot-rbp
By gimli <[email protected]>

---
Changes v3 -> v4:
- Rework init script
- Add systemd startup service
Changes v2 -> v3:
- Fix indent
- Change librtmp to rtmpdump
Changes v1 -> v2:
- Fix header (Yann E. Morin)
- Fix comment on toolchain option (Peter Korsgaard)

---
 package/Config.in                                  |   1 +
 package/xbmc/Config.in                             | 202 +++++++++++++++++++++
 package/xbmc/S50xbmc                               |  41 +++++
 package/xbmc/xbmc-0001-Fixup-include-path.patch    |  79 ++++++++
 .../xbmc-0002-RaspberryPi-Default-Settings.patch   | 167 +++++++++++++++++
 package/xbmc/xbmc.mk                               | 176 ++++++++++++++++++
 package/xbmc/xbmc.service                          |  12 ++
 7 files changed, 678 insertions(+)
 create mode 100644 package/xbmc/Config.in
 create mode 100755 package/xbmc/S50xbmc
 create mode 100644 package/xbmc/xbmc-0001-Fixup-include-path.patch
 create mode 100644 package/xbmc/xbmc-0002-RaspberryPi-Default-Settings.patch
 create mode 100644 package/xbmc/xbmc.mk
 create mode 100644 package/xbmc/xbmc.service
package/Config.in +1 -0
index fa637cf..0c4b296 100644
@@ -26,6 +26,7 @@ source "package/tstools/Config.in"
 source "package/vlc/Config.in"
 source "package/vorbis-tools/Config.in"
 source "package/wavpack/Config.in"
+source "package/xbmc/Config.in"
 source "package/yavta/Config.in"
 endmenu
 
package/xbmc/Config.in new file +202 -0

202 lines not on this page · raw message

package/xbmc/S50xbmc new file +41 -0

41 lines not on this page · raw message

package/xbmc/xbmc-0001-Fixup-include-path.patch new file +79 -0

79 lines not on this page · raw message

package/xbmc/xbmc-0002-RaspberryPi-Default-Settings.patch new file +167 -0

167 lines not on this page · raw message

package/xbmc/xbmc.mk new file +176 -0

176 lines not on this page · raw message

package/xbmc/xbmc.service new file +12 -0
new file mode 100644
index 0000000..3fe5895
@@ -0,0 +1,12 @@
+[Unit]
+Description = XBMC media center
+After = network.target
+
+[Service]
+Type = simple
+ExecStart = /usr/lib/xbmc/xbmc.bin --standalone -fs -n
+Restart = on-failure
+
+[Install]
+WantedBy = multi-user.target
+
Signature · 1 line
1.8.5.2