kumquat-buildroot/package/libdvdread/libdvdread.mk
Valentine Barshak 152f2329e4 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>
2012-10-04 23:25:30 +02:00

29 lines
822 B
Makefile

#############################################################
#
# libdvdread
#
#############################################################
LIBDVDREAD_VERSION = 4.1.3
LIBDVDREAD_SOURCE = libdvdread-$(LIBDVDREAD_VERSION).tar.bz2
LIBDVDREAD_SITE = http://dvdnav.mplayerhq.hu/releases
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))