Radix cross Linux

Radix Linux distribution for embedded systems.

637 Commits   4 Branches   3 Tags
author: Andrey V.Kosteltsev <kx@radix.pro> 2016-10-21 09:11:23 +0000 committer: Andrey V.Kosteltsev <kx@radix.pro> 2016-10-21 09:11:23 +0000 commit: 934bb1124a5b95b6f8a8bde48392545c0f932ce4 parent: eec02d9c721a9ffa39c916f52fc0e6975574f63c
Commit Summary:
IIDC Camera Control Library
Diffstat:
9 files changed, 446 insertions, 64 deletions
diff --git a/libs/libdc1394/2.2.4-x86_32/Makefile b/libs/libdc1394/2.2.4-x86_32/Makefile
new file mode 100644
index 000000000..0be78cc27
--- /dev/null
+++ b/libs/libdc1394/2.2.4-x86_32/Makefile
@@ -0,0 +1,181 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/m/libdc1394
+
+REQUIRES           = libs/libdc1394/2.2.4
+REQUIRES          += libs/libraw1394/2.1.2-x86_32
+REQUIRES          += libs/libusb/1.0.20-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.2.4
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/m/libdc1394/libdc1394-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/libdc1394-$(version)
+src_dir_name       = libdc1394-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = libs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+DC1394_32_PKG_NAME                = libdc1394-x32
+DC1394_32_PKG_VERSION             = 2.2.4
+DC1394_32_PKG_ARCH                = $(TOOLCHAIN)
+DC1394_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+DC1394_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+DC1394_32_PKG_GROUP               = $(PKG_GROUP)
+###                                |---handy-ruler-------------------------------|
+DC1394_32_PKG_SHORT_DESCRIPTION   = IIDC Camera Control Library
+DC1394_32_PKG_URL                 = $(BUG_URL)
+DC1394_32_PKG_LICENSE             = LGPLv2.1
+DC1394_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(DC1394_32_PKG_NAME)-pkg-description
+DC1394_32_PKG_DESCRIPTION_FILE_IN = $(DC1394_32_PKG_NAME)-pkg-description.in
+DC1394_32_PKG_INSTALL_SCRIPT      = $(DC1394_32_PKG_NAME)-pkg-install.sh
+
+DC1394_32_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(DC1394_32_PKG_NAME)-package
+
+pkg_basename      = $(DC1394_32_PKG_NAME)-$(DC1394_32_PKG_VERSION)-$(DC1394_32_PKG_ARCH)-$(DC1394_32_PKG_DISTRO_NAME)-$(DC1394_32_PKG_DISTRO_VERSION)
+
+pkg_archive       = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature     = $(call sign-name,$(pkg_archive))
+pkg_description   = $(call desc-name,$(pkg_archive))
+products          = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS     = $(build_target)
+BUILD_TARGETS    += $(install_target)
+
+PRODUCT_TARGETS   = $(products)
+
+ROOTFS_TARGETS    = $(pkg_archive)
+
+
+include ../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(DC1394_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --htmldir=/usr/share/doc/$(src_dir_name)/html
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+
+extra_configure_switches += --disable-doxygen-doc
+
+extra_configure_switches += --disable-sdltest
+extra_configure_switches += --disable-examples
+
+extra_configure_switches += --with-pic
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+CFLAGS += -Wno-enum-compare -Wno-format -Wno-deprecated-declarations
+
+
+TARGET_LIB_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../lib$(MULTILIB_X86_32_SUFFIX)
+
+LDFLAGS += -Wl,-rpath,$(TARGET_LIB_RPATH)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@cd $(SRC_DIR) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(DC1394_32_PKG)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(DC1394_32_PKG)/usr/include
+	@rm -rf $(DC1394_32_PKG)/usr/share
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(DC1394_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libdc1394.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(DC1394_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libdc1394.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libdc1394.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,=/usr,=$(TARGET_DEST_DIR)/usr,g" libdc1394-?.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(DC1394_32_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(DC1394_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(DC1394_32_PKG_DESCRIPTION_FILE): $(DC1394_32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(DC1394_32_PKG_DESCRIPTION_FILE) $(DC1394_32_PKG_INSTALL_SCRIPT)
+	@cp $(DC1394_32_PKG_DESCRIPTION_FILE) $(DC1394_32_PKG)/.DESCRIPTION
+	@cp $(DC1394_32_PKG_INSTALL_SCRIPT) $(DC1394_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(DC1394_32_PKG)/.REQUIRES
+	@echo "pkgname=$(DC1394_32_PKG_NAME)"                            >  $(DC1394_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(DC1394_32_PKG_VERSION)"                          >> $(DC1394_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(DC1394_32_PKG_ARCH)"                               >> $(DC1394_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(DC1394_32_PKG_DISTRO_NAME)"                  >> $(DC1394_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(DC1394_32_PKG_DISTRO_VERSION)"                >> $(DC1394_32_PKG)/.PKGINFO ; \
+	 echo "group=$(DC1394_32_PKG_GROUP)"                             >> $(DC1394_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(DC1394_32_PKG_SHORT_DESCRIPTION)\"" >> $(DC1394_32_PKG)/.PKGINFO ; \
+	 echo "url=$(DC1394_32_PKG_URL)"                                 >> $(DC1394_32_PKG)/.PKGINFO ; \
+	 echo "license=$(DC1394_32_PKG_LICENSE)"                         >> $(DC1394_32_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(DC1394_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
diff --git a/libs/libdc1394/2.2.4-x86_32/PATCHES b/libs/libdc1394/2.2.4-x86_32/PATCHES
new file mode 100644
index 000000000..e69de29bb
diff --git a/libs/libdc1394/2.2.4-x86_32/libdc1394-x32-pkg-description.in b/libs/libdc1394/2.2.4-x86_32/libdc1394-x32-pkg-description.in
new file mode 100644
index 000000000..d42d961e5
--- /dev/null
+++ b/libs/libdc1394/2.2.4-x86_32/libdc1394-x32-pkg-description.in
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+             |-----handy-ruler------------------------------------------------------|
+libdc1394-x32: libdc1394-x32 @VERSION@ (x86_32 IIDC Camera Control Library)
+libdc1394-x32:
+libdc1394-x32: libdc1394 is a library that provides a high level programming
+libdc1394-x32: interface for application developers who wish to control and
+libdc1394-x32: capture streams from IEEE 1394 based cameras that conform to
+libdc1394-x32: the 1394-based Digital Camera Specifications (also known as
+libdc1394-x32: the IIDC or DCAM Specifications). libdc1394 also supports
+libdc1394-x32: some USB cameras that are IIDC compliant.
+libdc1394-x32:
+libdc1394-x32: Homepage: https://sourceforge.net/projects/libdc1394
+libdc1394-x32:
diff --git a/libs/libdc1394/2.2.4-x86_32/libdc1394-x32-pkg-install.sh b/libs/libdc1394/2.2.4-x86_32/libdc1394-x32-pkg-install.sh
new file mode 100755
index 000000000..8e8683cd6
--- /dev/null
+++ b/libs/libdc1394/2.2.4-x86_32/libdc1394-x32-pkg-install.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*
diff --git a/libs/libdc1394/2.2.4/Makefile b/libs/libdc1394/2.2.4/Makefile
new file mode 100644
index 000000000..d28dd21ce
--- /dev/null
+++ b/libs/libdc1394/2.2.4/Makefile
@@ -0,0 +1,221 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_PC32)
+COMPONENT_TARGETS += $(HARDWARE_PC64)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB2X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_M201)
+COMPONENT_TARGETS += $(HARDWARE_MXQ)
+COMPONENT_TARGETS += $(HARDWARE_NIT6Q)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_DRA7XXEVM)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+COMPONENT_TARGETS += $(HARDWARE_BT1)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/m/libdc1394
+
+REQUIRES           = libs/libraw1394/2.1.2
+REQUIRES          += libs/libusb/1.0.20
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.2.4
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/m/libdc1394/libdc1394-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/libdc1394-$(version)
+src_dir_name       = libdc1394-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = libs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+DC1394_PKG_NAME                = libdc1394
+DC1394_PKG_VERSION             = 2.2.4
+DC1394_PKG_ARCH                = $(TOOLCHAIN)
+DC1394_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+DC1394_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+DC1394_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+DC1394_PKG_SHORT_DESCRIPTION   = IIDC Camera Control Library
+DC1394_PKG_URL                 = $(BUG_URL)
+DC1394_PKG_LICENSE             = LGPLv2.1
+DC1394_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(DC1394_PKG_NAME)-pkg-description
+DC1394_PKG_DESCRIPTION_FILE_IN = $(DC1394_PKG_NAME)-pkg-description.in
+DC1394_PKG_INSTALL_SCRIPT      = $(DC1394_PKG_NAME)-pkg-install.sh
+
+DC1394_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(DC1394_PKG_NAME)-package
+
+pkg_basename     = $(DC1394_PKG_NAME)-$(DC1394_PKG_VERSION)-$(DC1394_PKG_ARCH)-$(DC1394_PKG_DISTRO_NAME)-$(DC1394_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(DC1394_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --htmldir=/usr/share/doc/$(src_dir_name)/html
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+
+extra_configure_switches += --sysconfdir=/etc
+
+extra_configure_switches += --enable-doxygen-man
+extra_configure_switches += --enable-doxygen-html
+extra_configure_switches += --enable-doxygen-pdf
+
+extra_configure_switches += --disable-sdltest
+extra_configure_switches += --disable-examples
+
+extra_configure_switches += --with-pic
+
+extra_configure_switches += --enable-static=yes
+extra_configure_switches += --enable-shared=yes
+
+
+CFLAGS += -Wno-enum-compare -Wno-format -Wno-deprecated-declarations
+
+
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+LDFLAGS += -Wl,-rpath,$(TARGET_LIB_RPATH)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@cd $(SRC_DIR) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(DC1394_PKG)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(DC1394_PKG)/usr/share/man ]; then \
+	  ( cd $(DC1394_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(DC1394_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(DC1394_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(DC1394_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING INSTALL NEWS README \
+	         doc/html doc/libdc1394.pdf \
+	         $(DC1394_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(DC1394_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(DC1394_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libdc1394.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(DC1394_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	  sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libdc1394.la ; \
+	  sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libdc1394.la ; \
+	 )
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,=/usr,=$(TARGET_DEST_DIR)/usr,g" libdc1394-?.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(DC1394_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(CHRPATH),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(DC1394_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(DC1394_PKG_DESCRIPTION_FILE): $(DC1394_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(DC1394_PKG_DESCRIPTION_FILE) $(DC1394_PKG_INSTALL_SCRIPT)
+	@cp $(DC1394_PKG_DESCRIPTION_FILE) $(DC1394_PKG)/.DESCRIPTION
+	@cp $(DC1394_PKG_INSTALL_SCRIPT) $(DC1394_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(DC1394_PKG)/.REQUIRES
+	@echo "pkgname=$(DC1394_PKG_NAME)"                            >  $(DC1394_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(DC1394_PKG_VERSION)"                          >> $(DC1394_PKG)/.PKGINFO ; \
+	 echo "arch=$(DC1394_PKG_ARCH)"                               >> $(DC1394_PKG)/.PKGINFO ; \
+	 echo "distroname=$(DC1394_PKG_DISTRO_NAME)"                  >> $(DC1394_PKG)/.PKGINFO ; \
+	 echo "distrover=$(DC1394_PKG_DISTRO_VERSION)"                >> $(DC1394_PKG)/.PKGINFO ; \
+	 echo "group=$(DC1394_PKG_GROUP)"                             >> $(DC1394_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(DC1394_PKG_SHORT_DESCRIPTION)\"" >> $(DC1394_PKG)/.PKGINFO ; \
+	 echo "url=$(DC1394_PKG_URL)"                                 >> $(DC1394_PKG)/.PKGINFO ; \
+	 echo "license=$(DC1394_PKG_LICENSE)"                         >> $(DC1394_PKG)/.PKGINFO
+	@$(FAKEROOT) sh -c "cd $(DC1394_PKG) && chown -R root:root . && $(MAKE_PACKAGE) --linkadd yes .."
diff --git a/libs/libdc1394/2.2.4/PATCHES b/libs/libdc1394/2.2.4/PATCHES
new file mode 100644
index 000000000..e69de29bb
diff --git a/libs/libdc1394/2.2.4/libdc1394-pkg-description.in b/libs/libdc1394/2.2.4/libdc1394-pkg-description.in
new file mode 100644
index 000000000..cc2d2be2b
--- /dev/null
+++ b/libs/libdc1394/2.2.4/libdc1394-pkg-description.in
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+         |-----handy-ruler------------------------------------------------------|
+libdc1394: libdc1394 @VERSION@ (IIDC Camera Control Library)
+libdc1394:
+libdc1394: libdc1394 is a library that provides a high level programming
+libdc1394: interface for application developers who wish to control and
+libdc1394: capture streams from IEEE 1394 based cameras that conform to
+libdc1394: the 1394-based Digital Camera Specifications (also known as
+libdc1394: the IIDC or DCAM Specifications). libdc1394 also supports
+libdc1394: some USB cameras that are IIDC compliant.
+libdc1394:
+libdc1394: Homepage: https://sourceforge.net/projects/libdc1394
+libdc1394:
diff --git a/libs/libdc1394/2.2.4/libdc1394-pkg-install.sh b/libs/libdc1394/2.2.4/libdc1394-pkg-install.sh
new file mode 100755
index 000000000..b44c4e648
--- /dev/null
+++ b/libs/libdc1394/2.2.4/libdc1394-pkg-install.sh
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*
diff --git a/products/X11/Makefile b/products/X11/Makefile
index 5ea2e166d..a6f0e710c 100644
--- a/products/X11/Makefile
+++ b/products/X11/Makefile
@@ -753,47 +753,15 @@ endif
 REQUIRES += app/icecast/2.4.3
 REQUIRES += app/ices/2.0.2
 
-REQUIRES += app/openjpeg/1.5.2
-ifeq ($(HARDWARE),$(HARDWARE_PC64))
-REQUIRES += app/openjpeg/1.5.2-x86_32
-endif
 REQUIRES += app/openjpeg2/2.1.2
 ifeq ($(HARDWARE),$(HARDWARE_PC64))
 REQUIRES += app/openjpeg2/2.1.2-x86_32
 endif
-REQUIRES += libs/libsoxr/0.1.2
-ifeq ($(HARDWARE),$(HARDWARE_PC64))
-REQUIRES += libs/libsoxr/0.1.2-x86_32
-endif
-REQUIRES += libs/libmikmod/3.1.20
-ifeq ($(HARDWARE),$(HARDWARE_PC64))
-REQUIRES += libs/libmikmod/3.1.20-x86_32
-endif
 
-REQUIRES += libs/schroedinger/1.0.11
-ifeq ($(HARDWARE),$(HARDWARE_PC64))
-REQUIRES += libs/schroedinger/1.0.11-x86_32
-endif
-REQUIRES += libs/ladspa/1.13
-ifeq ($(HARDWARE),$(HARDWARE_PC64))
-REQUIRES += libs/ladspa/1.13-x86_32
-endif
-REQUIRES += app/rtmpdump/2.4
-ifeq ($(HARDWARE),$(HARDWARE_PC64))
-REQUIRES += app/rtmpdump/2.4-x86_32
-endif
 REQUIRES += app/dcadec/0.2.0
 ifeq ($(HARDWARE),$(HARDWARE_PC64))
 REQUIRES += app/dcadec/0.2.0-x86_32
 endif
-REQUIRES += libs/libvidstab/1.1
-ifeq ($(HARDWARE),$(HARDWARE_PC64))
-REQUIRES += libs/libvidstab/1.1-x86_32
-endif
-REQUIRES += libs/xvidcore/1.3.4
-ifeq ($(HARDWARE),$(HARDWARE_PC64))
-REQUIRES += libs/xvidcore/1.3.4-x86_32
-endif
 
 
 ####################################################################################################
diff --git a/products/base/Makefile b/products/base/Makefile
index cae302b8e..b4ceeaa98 100644
--- a/products/base/Makefile
+++ b/products/base/Makefile
@@ -753,47 +753,15 @@ endif
 REQUIRES += app/icecast/2.4.3
 REQUIRES += app/ices/2.0.2
 
-REQUIRES += app/openjpeg/1.5.2
-ifeq ($(HARDWARE),$(HARDWARE_PC64))
-REQUIRES += app/openjpeg/1.5.2-x86_32
-endif
 REQUIRES += app/openjpeg2/2.1.2
 ifeq ($(HARDWARE),$(HARDWARE_PC64))
 REQUIRES += app/openjpeg2/2.1.2-x86_32
 endif
-REQUIRES += libs/libsoxr/0.1.2
-ifeq ($(HARDWARE),$(HARDWARE_PC64))
-REQUIRES += libs/libsoxr/0.1.2-x86_32
-endif
-REQUIRES += libs/libmikmod/3.1.20
-ifeq ($(HARDWARE),$(HARDWARE_PC64))
-REQUIRES += libs/libmikmod/3.1.20-x86_32
-endif
 
-REQUIRES += libs/schroedinger/1.0.11
-ifeq ($(HARDWARE),$(HARDWARE_PC64))
-REQUIRES += libs/schroedinger/1.0.11-x86_32
-endif
-REQUIRES += libs/ladspa/1.13
-ifeq ($(HARDWARE),$(HARDWARE_PC64))
-REQUIRES += libs/ladspa/1.13-x86_32
-endif
-REQUIRES += app/rtmpdump/2.4
-ifeq ($(HARDWARE),$(HARDWARE_PC64))
-REQUIRES += app/rtmpdump/2.4-x86_32
-endif
 REQUIRES += app/dcadec/0.2.0
 ifeq ($(HARDWARE),$(HARDWARE_PC64))
 REQUIRES += app/dcadec/0.2.0-x86_32
 endif
-REQUIRES += libs/libvidstab/1.1
-ifeq ($(HARDWARE),$(HARDWARE_PC64))
-REQUIRES += libs/libvidstab/1.1-x86_32
-endif
-REQUIRES += libs/xvidcore/1.3.4
-ifeq ($(HARDWARE),$(HARDWARE_PC64))
-REQUIRES += libs/xvidcore/1.3.4-x86_32
-endif
 
 
 # ======= __END_OF_REQUIRES__ =======
diff --git a/sources/packages/m/libdc1394/Makefile b/sources/packages/m/libdc1394/Makefile
new file mode 100644
index 000000000..59746041a
--- /dev/null
+++ b/sources/packages/m/libdc1394/Makefile
@@ -0,0 +1,47 @@
+
+COMPONENT_TARGETS = $(HARDWARE_NOARCH)
+
+
+include ../../../../build-system/constants.mk
+
+
+url         = $(DOWNLOAD_SERVER)/sources/packages/m/libdc1394
+
+versions    = 2.2.4
+pkgname     = libdc1394
+suffix      = tar.gz
+
+tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+
+
+BUILD_TARGETS = $(tarballs) $(sha1s)
+
+
+include ../../../../build-system/core.mk
+
+
+.PHONY: download_clean
+
+
+$(tarballs):
+	@echo -e "\n======= Downloading source tarballs =======" ; \
+	 for tarball in $(tarballs) ; do \
+	   echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & \
+	 done ; wait
+
+$(sha1s): $(tarballs)
+	@for sha in $@ ; do \
+	   echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
+	   echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) -i & wait %1 ; \
+	   touch $$sha ; \
+	   echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
+	   sha1sum --check $$sha ; ret="$$?" ; \
+	   if [ "$$ret" == "1" ]; then \
+	     echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
+	     exit 1 ; \
+	   fi ; \
+	 done
+
+download_clean:
+	@rm -f $(tarballs) $(sha1s)