summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorValentine Barshak <gvaxon@gmail.com>2012-09-26 09:33:08 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-10-04 23:25:30 +0200
commit152f2329e445110f1959c9af129e764f47b9e4d4 (patch)
tree71438c6e4178c2f92ce586eb00e5bbbad5cffdf7 /package
parent437a4446f25232cba6c385f26063ce61a1ffd08f (diff)
downloadbuildroot-novena-152f2329e445110f1959c9af129e764f47b9e4d4.tar.gz
buildroot-novena-152f2329e445110f1959c9af129e764f47b9e4d4.zip
libdvdread: Fix dvdread-config
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> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/libdvdread/libdvdread.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/libdvdread/libdvdread.mk b/package/libdvdread/libdvdread.mk
index 6e17731a3..ee616f04c 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))