2006-12-13 10:13:15 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libraw1394
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
|
|
|
LIBRAW1394_VERSION:=1.2.1
|
|
|
|
LIBRAW1394_SOURCE:=libraw1394-$(LIBRAW1394_VERSION).tar.gz
|
|
|
|
LIBRAW1394_SITE:=http://www.linux1394.org/dl
|
|
|
|
LIBRAW1394_DIR:=$(BUILD_DIR)/libraw1394-$(LIBRAW1394_VERSION)
|
|
|
|
|
|
|
|
$(DL_DIR)/$(LIBRAW1394_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(LIBRAW1394_SITE)/$(LIBRAW1394_SOURCE)
|
|
|
|
|
|
|
|
$(LIBRAW1394_DIR)/.source: $(DL_DIR)/$(LIBRAW1394_SOURCE)
|
|
|
|
$(ZCAT) $(DL_DIR)/$(LIBRAW1394_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
|
|
touch $(LIBRAW1394_DIR)/.source
|
|
|
|
|
|
|
|
$(LIBRAW1394_DIR)/.configured: $(LIBRAW1394_DIR)/.source
|
|
|
|
(cd $(LIBRAW1394_DIR); \
|
2007-01-14 04:52:21 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2006-12-13 10:13:15 +01:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2007-03-13 23:59:59 +01:00
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
2006-12-13 10:13:15 +01:00
|
|
|
./configure \
|
2007-01-14 04:52:21 +01:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--libdir=/lib \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--includedir=/include \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
2006-12-13 10:13:15 +01:00
|
|
|
);
|
|
|
|
touch $(LIBRAW1394_DIR)/.configured;
|
|
|
|
|
|
|
|
$(LIBRAW1394_DIR)/.compiled: $(LIBRAW1394_DIR)/.configured
|
|
|
|
$(MAKE) -C $(LIBRAW1394_DIR)
|
|
|
|
touch $(LIBRAW1394_DIR)/.compiled
|
|
|
|
|
|
|
|
$(STAGING_DIR)/lib/libraw1394.so: $(LIBRAW1394_DIR)/.compiled
|
2007-01-14 04:52:21 +01:00
|
|
|
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBRAW1394_DIR)/src install
|
2006-12-13 10:13:15 +01:00
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/lib/libraw1394.so: $(STAGING_DIR)/lib/libraw1394.so
|
|
|
|
cp -dpf $(STAGING_DIR)/lib/libraw1394.so* $(TARGET_DIR)/usr/lib/
|
|
|
|
|
|
|
|
libraw1394: uclibc $(TARGET_DIR)/usr/lib/libraw1394.so
|
|
|
|
|
|
|
|
libraw1394-source: $(DL_DIR)/$(LIBRAW1394_SOURCE)
|
|
|
|
|
|
|
|
libraw1394-clean:
|
|
|
|
rm $(TARGET_DIR)/usr/lib/libraw1394.so*
|
|
|
|
-$(MAKE) -C $(LIBRAW1394_DIR) clean
|
|
|
|
|
|
|
|
libraw1394-dirclean:
|
|
|
|
rm -rf $(LIBRAW1394_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_LIBRAW1394)),y)
|
|
|
|
TARGETS+=libraw1394
|
|
|
|
endif
|
|
|
|
|