[pvr] configure and build pvr add-ons if the tree is found in /pvr-addons, so these...
authorLars Op den Kamp <lars@opdenkamp.eu>
Sat, 15 Sep 2012 14:01:03 +0000 (16:01 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 18 Sep 2012 08:20:59 +0000 (10:20 +0200)
.gitignore
Makefile.in
bootstrap
configure.in

index a33dc04..d453959 100644 (file)
@@ -1290,3 +1290,5 @@ xbmc/visualizations/EGLHelpers/Makefile
 /addons/library.xbmc.gui/libXBMC_gui.lib
 /addons/library.xbmc.pvr/libXBMC_pvr.dll
 /addons/library.xbmc.pvr/libXBMC_pvr.lib
+
+/pvr-addons
index 2395da6..d06ff45 100644 (file)
@@ -388,11 +388,16 @@ endif
 imagelib: dllloader
        $(MAKE) -C lib/cximage-6.0
 
+pvraddons: exports
+ifeq (@USE_PVR_ADDONS@,1)
+       $(MAKE) -C pvr-addons
+endif
+
 codecs: papcodecs dvdpcodecs
 
 libs: libhdhomerun libid3tag imagelib libexif system/libcpluff-@ARCH@.so $(CMYTH)
 
-externals: codecs libs visualizations screensavers libaddon
+externals: codecs libs visualizations screensavers libaddon pvraddons
 
 ADDON_BINDINGS = xbmc/interfaces/legacy/legacy.a
 ADDON_BINDINGS += xbmc/interfaces/python/python_binding.a
@@ -495,6 +500,9 @@ endif
 
 install-arch:
        @# Arch dependent files
+ifeq (@USE_PVR_ADDONS@,1)
+       $(MAKE) -C pvr-addons install
+endif
 ifeq ($(findstring freebsd,@ARCH@), freebsd)
        @find -E system addons -type f -not -iregex ".*svn.*" \
                -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs" \
@@ -511,7 +519,7 @@ ifeq ($(findstring Darwin,$(shell uname -s)),Darwin)
                -exec install "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; \
                -exec printf " -- %-75.75s\r" "{}" \;
 else
-       @find system addons -regextype posix-extended -type f -not -iregex ".*svn.*" -iregex ".*\.so|.*\.vis|.*\.xbs" -exec install -D "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; -printf " -- %-75.75f\r"
+       @find system addons -regextype posix-extended -type f -not -iregex ".*svn.*" -iregex ".*\.so|.*\.vis|.*\.xbs|.*\.pvr" -exec install -D "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; -printf " -- %-75.75f\r"
 endif
 endif
 
@@ -550,7 +558,7 @@ ifeq ($(findstring Darwin,$(shell uname -s)),Darwin)
                -exec install -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; \
                -exec printf " -- %-75.75s\r" "{}" \;
 else
-       @find addons language media sounds userdata system -regextype posix-extended -type f -not -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs|.*svn.*|.*\.so|.*\.dll" -exec install -D -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; -printf " -- %-75.75f\r"
+       @find addons language media sounds userdata system -regextype posix-extended -type f -not -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs|.*svn.*|.*\.so|.*\.dll|.*\.pvr" -exec install -D -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; -printf " -- %-75.75f\r"
 endif
 endif
        @# Icons and links
@@ -591,11 +599,15 @@ clean-visualisations:
        for d in $(VIS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
 clean-libaddons:
        for d in $(LIBADDON_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
+clean-pvraddons:
+ifeq (@USE_PVR_ADDONS@,1)
+       if test -f pvr-addons/Makefile; then $(MAKE) -C pvr-addons clean; fi;
+endif
 
 clean-codecs: clean-dvdpcodecs clean-papcodecs
 
 clean-externals: clean-codecs clean-eventclients clean-xbmctex clean-libs \
-       clean-screensavers clean-visualisations clean-libaddons
+       clean-screensavers clean-visualisations clean-libaddons clean-pvraddons
 
 ifeq (1,@GTEST_CONFIGURED@)
 check: testsuite
index cc06770..86b5189 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -15,6 +15,10 @@ autoreconf -vif lib/libdvd/libdvdread
 autoreconf -vif lib/libdvd/libdvdnav
 autoreconf -vif lib/gtest
 
+if [ -f pvr-addons/Makefile.am ]; then
+  autoreconf -vif pvr-addons
+fi
+
 # Clean the generated files
 find . -depth -type d -name "autom4te.cache" -exec rm -rf {} \;
 
index 38ab0d9..7c32b73 100644 (file)
@@ -2261,6 +2261,16 @@ if test "$host_vendor" = "apple" ; then
   LIBS="$LIBS -L\$(abs_top_srcdir)/lib/ffmpeg/libswscale -lswscale"
 fi
 
+USE_PVR_ADDONS=0
+DISABLE_PVR_ADDON_CONFIG=1
+if [[ -f "pvr-addons/Makefile.am" ]]; then
+  final_message="$final_message\n  PVR add-ons:\t\tYes"
+  USE_PVR_ADDONS=1
+  DISABLE_PVR_ADDON_CONFIG=0
+else
+  final_message="$final_message\n  PVR add-ons:\t\tNo"
+fi
+
 OUTPUT_FILES="Makefile \
     Makefile.include \
     addons/skin.confluence/media/Makefile \
@@ -2402,7 +2412,7 @@ AC_SUBST(USE_OMXLIB)
 AC_SUBST(USE_ANDROID)
 AC_SUBST(GTEST_CONFIGURED)
 AC_SUBST(USE_DOXYGEN)
-
+AC_SUBST(USE_PVR_ADDONS)
 
 # pushd and popd are not available in other shells besides bash, so implement
 # our own pushd/popd functions
@@ -2731,6 +2741,18 @@ XB_CONFIG_MODULE([lib/gtest], [
     --with-pthreads
 ], [$SKIP_CONFIG_GTEST])
 
+XB_CONFIG_MODULE([pvr-addons], [
+  ./configure \
+    --prefix="${prefix}" \
+    --host=$host_alias \
+    --build=$build_alias \
+    --target=$target_alias \
+    CC="$CC" \
+    CXX="$CXX" \
+    CFLAGS="$CFLAGS" \
+    CXXFLAGS="$CXXFLAGS"
+], [$DISABLE_PVR_ADDON_CONFIG])
+
 AC_OUTPUT
 
 final_message="$final_message\n  prefix:\t$prefix\n$dashes"