* [Buildroot] [PATCH 1/3] libdvdread: Fix dvdread-config
2012-09-26 19:31 [Buildroot] [PATCH 0/3] Fix libdvdread and libdvdnav support Valentine Barshak
@ 2012-09-26 19:33 ` Valentine Barshak
0 siblings, 0 replies; 5+ messages in thread
From: Valentine Barshak @ 2012-09-26 19:33 UTC (permalink / raw)
To: buildroot
This fixes path prefix in the staging dvdread-config
and removes dvdread-config from the target filesystem
if BR2_HAVE_DEVFILES is not set.
Signed-off-by: Valentine Barshak <gvaxon@gmail.com>
---
package/libdvdread/libdvdread.mk | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/package/libdvdread/libdvdread.mk b/package/libdvdread/libdvdread.mk
index 6e17731..ee616f0 100644
--- a/package/libdvdread/libdvdread.mk
+++ b/package/libdvdread/libdvdread.mk
@@ -11,4 +11,18 @@ LIBDVDREAD_AUTORECONF = YES
LIBDVDREAD_LIBTOOL_PATCH = YES
LIBDVDREAD_INSTALL_STAGING = YES
+define LIBDVDREAD_TARGET_CLEANUP
+ $(RM) -f $(TARGET_DIR)/usr/bin/dvdread-config
+endef
+
+ifneq ($(BR2_HAVE_DEVFILES),y)
+LIBDVDREAD_POST_INSTALL_TARGET_HOOKS += LIBDVDREAD_TARGET_CLEANUP
+endif
+
+define LIBDVDREAD_STAGING_FIXUP_DVDREAD_CONFIG
+ $(SED) "s,prefix=/usr,prefix=$(STAGING_DIR)/usr," $(STAGING_DIR)/usr/bin/dvdread-config
+endef
+
+LIBDVDREAD_POST_INSTALL_STAGING_HOOKS += LIBDVDREAD_STAGING_FIXUP_DVDREAD_CONFIG
+
$(eval $(autotools-package))
--
1.7.11.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 0/3] Fix libdvdread and libdvdnav support v2
@ 2012-09-27 18:13 Valentine Barshak
2012-09-27 18:16 ` [Buildroot] [PATCH 1/3] libdvdread: Fix dvdread-config Valentine Barshak
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Valentine Barshak @ 2012-09-27 18:13 UTC (permalink / raw)
To: buildroot
The following patches fix dvdread-config and dvdnav-config
scripts installed to staging directory and make mplayer
use these libraries when they are enabled.
Otherwise DVD support is disabled in mplayer config.
This is the updated patch set, that has the comments
by Thomas Petazzoni addressed.
These patches have been tested on an x86 machine.
Thanks,
Val.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 1/3] libdvdread: Fix dvdread-config
2012-09-27 18:13 [Buildroot] [PATCH 0/3] Fix libdvdread and libdvdnav support v2 Valentine Barshak
@ 2012-09-27 18:16 ` Valentine Barshak
2012-09-27 18:17 ` [Buildroot] [PATCH 2/3] libdvdnav: Fix dvdnav-config Valentine Barshak
2012-09-27 18:17 ` [Buildroot] [PATCH 3/3] mplayer: Fix DVD support Valentine Barshak
2 siblings, 0 replies; 5+ messages in thread
From: Valentine Barshak @ 2012-09-27 18:16 UTC (permalink / raw)
To: buildroot
This fixes path prefix in the staging dvdread-config
and removes dvdread-config from the target filesystem
if BR2_HAVE_DEVFILES is not set.
Signed-off-by: Valentine Barshak <gvaxon@gmail.com>
---
package/libdvdread/libdvdread.mk | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/package/libdvdread/libdvdread.mk b/package/libdvdread/libdvdread.mk
index 6e17731..6e64bdd 100644
--- a/package/libdvdread/libdvdread.mk
+++ b/package/libdvdread/libdvdread.mk
@@ -11,4 +11,18 @@ LIBDVDREAD_AUTORECONF = YES
LIBDVDREAD_LIBTOOL_PATCH = YES
LIBDVDREAD_INSTALL_STAGING = YES
+define LIBDVDREAD_TARGET_CLEANUP
+ $(RM) -f $(TARGET_DIR)/usr/bin/dvdread-config
+endef
+
+ifeq ($(BR2_HAVE_DEVFILES),)
+LIBDVDREAD_POST_INSTALL_TARGET_HOOKS += LIBDVDREAD_TARGET_CLEANUP
+endif
+
+define LIBDVDREAD_STAGING_FIXUP_DVDREAD_CONFIG
+ $(SED) "s,prefix=/usr,prefix=$(STAGING_DIR)/usr," $(STAGING_DIR)/usr/bin/dvdread-config
+endef
+
+LIBDVDREAD_POST_INSTALL_STAGING_HOOKS += LIBDVDREAD_STAGING_FIXUP_DVDREAD_CONFIG
+
$(eval $(autotools-package))
--
1.7.11.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 2/3] libdvdnav: Fix dvdnav-config
2012-09-27 18:13 [Buildroot] [PATCH 0/3] Fix libdvdread and libdvdnav support v2 Valentine Barshak
2012-09-27 18:16 ` [Buildroot] [PATCH 1/3] libdvdread: Fix dvdread-config Valentine Barshak
@ 2012-09-27 18:17 ` Valentine Barshak
2012-09-27 18:17 ` [Buildroot] [PATCH 3/3] mplayer: Fix DVD support Valentine Barshak
2 siblings, 0 replies; 5+ messages in thread
From: Valentine Barshak @ 2012-09-27 18:17 UTC (permalink / raw)
To: buildroot
This fixes path prefix in the staging dvdnav-config
and removes dvdnav-config from the target filesystem
if BR2_HAVE_DEVFILES is not set.
Signed-off-by: Valentine Barshak <gvaxon@gmail.com>
---
package/libdvdnav/libdvdnav.mk | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/package/libdvdnav/libdvdnav.mk b/package/libdvdnav/libdvdnav.mk
index e2d42f3..099ba8e 100644
--- a/package/libdvdnav/libdvdnav.mk
+++ b/package/libdvdnav/libdvdnav.mk
@@ -16,4 +16,18 @@ LIBDVDNAV_DEPENDENCIES = libdvdread host-pkg-config
# of cross compilation, we prefer using pkg-config.
LIBDVDNAV_CONF_OPT = --with-dvdread-config="$(PKG_CONFIG_HOST_BINARY) dvdread"
+define LIBDVDNAV_TARGET_CLEANUP
+ $(RM) -f $(TARGET_DIR)/usr/bin/dvdnav-config
+endef
+
+ifeq ($(BR2_HAVE_DEVFILES),)
+LIBDVDNAV_POST_INSTALL_TARGET_HOOKS += LIBDVDNAV_TARGET_CLEANUP
+endif
+
+define LIBDVDNAV_STAGING_FIXUP_DVDNAV_CONFIG
+ $(SED) "s,prefix=/usr,prefix=$(STAGING_DIR)/usr," $(STAGING_DIR)/usr/bin/dvdnav-config
+endef
+
+LIBDVDNAV_POST_INSTALL_STAGING_HOOKS += LIBDVDNAV_STAGING_FIXUP_DVDNAV_CONFIG
+
$(eval $(autotools-package))
--
1.7.11.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 3/3] mplayer: Fix DVD support
2012-09-27 18:13 [Buildroot] [PATCH 0/3] Fix libdvdread and libdvdnav support v2 Valentine Barshak
2012-09-27 18:16 ` [Buildroot] [PATCH 1/3] libdvdread: Fix dvdread-config Valentine Barshak
2012-09-27 18:17 ` [Buildroot] [PATCH 2/3] libdvdnav: Fix dvdnav-config Valentine Barshak
@ 2012-09-27 18:17 ` Valentine Barshak
2 siblings, 0 replies; 5+ messages in thread
From: Valentine Barshak @ 2012-09-27 18:17 UTC (permalink / raw)
To: buildroot
This sets paths to dvdread-config and dvdnav-config,
and configuration options to enable external libdvdread
and libdvdnav support when these libraries are enabled.
Otherwise DVD support is disabled.
Signed-off-by: Valentine Barshak <gvaxon@gmail.com>
---
package/multimedia/mplayer/mplayer.mk | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/package/multimedia/mplayer/mplayer.mk b/package/multimedia/mplayer/mplayer.mk
index 05120bf..0458507 100644
--- a/package/multimedia/mplayer/mplayer.mk
+++ b/package/multimedia/mplayer/mplayer.mk
@@ -42,6 +42,26 @@ else
MPLAYER_CONF_OPTS += --disable-freetype
endif
+MPLAYER_CONF_OPTS += --disable-dvdread-internal
+
+ifeq ($(BR2_PACKAGE_LIBDVDREAD),y)
+MPLAYER_CONF_OPTS += \
+ --enable-dvdread \
+ --with-dvdread-config=$(STAGING_DIR)/usr/bin/dvdread-config
+MPLAYER_DEPENDENCIES += libdvdread
+else
+MPLAYER_CONF_OPTS += --disable-dvdread
+endif
+
+ifeq ($(BR2_PACKAGE_LIBDVDNAV),y)
+MPLAYER_CONF_OPTS += \
+ --enable-dvdnav \
+ --with-dvdnav-config=$(STAGING_DIR)/usr/bin/dvdnav-config
+MPLAYER_DEPENDENCIES += libdvdnav
+else
+MPLAYER_CONF_OPTS += --disable-dvdnav
+endif
+
ifeq ($(BR2_PACKAGE_MPLAYER_MPLAYER),y)
MPLAYER_CONF_OPTS += --enable-mplayer
else
--
1.7.11.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-09-27 18:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-27 18:13 [Buildroot] [PATCH 0/3] Fix libdvdread and libdvdnav support v2 Valentine Barshak
2012-09-27 18:16 ` [Buildroot] [PATCH 1/3] libdvdread: Fix dvdread-config Valentine Barshak
2012-09-27 18:17 ` [Buildroot] [PATCH 2/3] libdvdnav: Fix dvdnav-config Valentine Barshak
2012-09-27 18:17 ` [Buildroot] [PATCH 3/3] mplayer: Fix DVD support Valentine Barshak
-- strict thread matches above, loose matches on Subject: below --
2012-09-26 19:31 [Buildroot] [PATCH 0/3] Fix libdvdread and libdvdnav support Valentine Barshak
2012-09-26 19:33 ` [Buildroot] [PATCH 1/3] libdvdread: Fix dvdread-config Valentine Barshak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox