openwrt_archive/multimedia/rygel/patches/010-vapidirs-from-pkg-config.patch
Florian Fainelli 23af1f0713 rygel: add package
Plugins other than playbin are untested.

Rygel is normally run as a desktop service under a user account. It
doesn't behave like a system daemon. Since running as a desktop service
doesn't make sense for OpenWrt, I've included an init script and made a
crude change to send the output to syslog.

Signed-off-by: Andy Leiserson <andy@leiserson.org>
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 34528
2012-12-05 17:31:34 +00:00

29 lines
1.3 KiB
Diff

--- a/m4/rygel.m4 2012-04-12 08:47:08.000000000 -0700
+++ b/m4/rygel.m4 2012-06-15 11:55:36.000000000 -0700
@@ -99,6 +99,25 @@
[dnl check for vala
AM_PROG_VALAC([$1])
+ dnl See where we should look for vapi files. If it's under
+ dnl $datadir, then assume it's one of the standard locations where
+ dnl vala will look. Otherwise, specify explicitly.
+ dnl
+ dnl Note the distinction between these directories (where we look
+ dnl for APIs when we do vala builds) and VAPIDIR, which is where we
+ dnl install our own vapi files.
+
+ for var in vapidir vapidir_versioned; do
+ AS_IF([dir=`$PKG_CONFIG --variable=$var vapigen`],
+ [
+ AC_MSG_NOTICE([got $var=$dir from pkg-config])
+ AS_IF([expr "$dir" : "${datadir}"],
+ [],
+ [RYGEL_ADD_VALAFLAGS([--vapidir $dir])])
+ ],
+ [AC_MSG_NOTICE([pkg-config didn't return a value for $var, relying on valac built-in defaults])])
+ done
+
AS_IF([test x$VALAC = "x"],
[AC_MSG_ERROR([Cannot find the "valac" compiler in your PATH])],
[