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):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(LIBRAW1394_SITE),$(LIBRAW1394_SOURCE))
|
2006-12-13 10:13:15 +01:00
|
|
|
|
2007-06-25 10:58:38 +02:00
|
|
|
$(LIBRAW1394_DIR)/.unpacked: $(DL_DIR)/$(LIBRAW1394_SOURCE)
|
2006-12-13 10:13:15 +01:00
|
|
|
$(ZCAT) $(DL_DIR)/$(LIBRAW1394_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-06-25 10:58:38 +02:00
|
|
|
touch $@
|
2006-12-13 10:13:15 +01:00
|
|
|
|
2007-06-25 10:58:38 +02:00
|
|
|
$(LIBRAW1394_DIR)/.configured: $(LIBRAW1394_DIR)/.unpacked
|
2007-08-22 11:56:41 +02:00
|
|
|
(cd $(LIBRAW1394_DIR); rm -rf config.cache; \
|
2007-01-14 04:52:21 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
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 \
|
2007-06-25 10:58:38 +02:00
|
|
|
--libdir=/usr/lib \
|
2007-01-14 04:52:21 +01:00
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--includedir=/include \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-06-25 10:58:38 +02:00
|
|
|
touch $@
|
2006-12-13 10:13:15 +01:00
|
|
|
|
|
|
|
$(LIBRAW1394_DIR)/.compiled: $(LIBRAW1394_DIR)/.configured
|
|
|
|
$(MAKE) -C $(LIBRAW1394_DIR)
|
2007-06-25 10:58:38 +02:00
|
|
|
touch $@
|
2006-12-13 10:13:15 +01:00
|
|
|
|
2007-06-25 10:58:38 +02:00
|
|
|
$(STAGING_DIR)/usr/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
|
|
|
|
2009-01-11 21:12:11 +01:00
|
|
|
$(TARGET_DIR)/usr/lib/libraw1394.so: $(STAGING_DIR)/usr/lib/libraw1394.so
|
2007-06-25 10:58:38 +02:00
|
|
|
cp -dpf $(STAGING_DIR)/usr/lib/libraw1394.so* $(TARGET_DIR)/usr/lib/
|
2006-12-13 10:13:15 +01:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
libraw1394: $(TARGET_DIR)/usr/lib/libraw1394.so
|
2006-12-13 10:13:15 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBRAW1394),y)
|
2006-12-13 10:13:15 +01:00
|
|
|
TARGETS+=libraw1394
|
|
|
|
endif
|
|
|
|
|