diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-12-13 09:13:15 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-12-13 09:13:15 +0000 |
commit | 8aa6504ed2213b006422948ed147c32269397e73 (patch) | |
tree | 68ca2d89be97fa98c3b6b3f7551b87e39aa76cb8 /package/libraw1394 | |
parent | c3848942cf6671c25dfa3a968f6a603e8e7cb668 (diff) | |
download | buildroot-novena-8aa6504ed2213b006422948ed147c32269397e73.tar.gz buildroot-novena-8aa6504ed2213b006422948ed147c32269397e73.zip |
- add libraw1394, thanks to Lars Munch
Diffstat (limited to 'package/libraw1394')
-rw-r--r-- | package/libraw1394/Config.in | 11 | ||||
-rw-r--r-- | package/libraw1394/libraw1394.mk | 60 |
2 files changed, 71 insertions, 0 deletions
diff --git a/package/libraw1394/Config.in b/package/libraw1394/Config.in new file mode 100644 index 000000000..859a0b308 --- /dev/null +++ b/package/libraw1394/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_LIBRAW1394 + bool "libraw1394" + default n + help + Library for direct access to IEEE 1394 bus. + + Through libraw1394/raw1394, applications can directly + send to and receive from other nodes without requiring + a kernel driver for the protocol in question. + + http://www.linux1394.org/ diff --git a/package/libraw1394/libraw1394.mk b/package/libraw1394/libraw1394.mk new file mode 100644 index 000000000..5eaf80d65 --- /dev/null +++ b/package/libraw1394/libraw1394.mk @@ -0,0 +1,60 @@ +############################################################# +# +# 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); \ + $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \ + CFLAGS="$(TARGET_CFLAGS)" \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=$(STAGING_DIR) \ + ); + 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 + make -C $(LIBRAW1394_DIR)/src install + +$(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 + |