mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
- Install the library under $(STAGING_DIR)/usr/lib (Julien Letessier)
This commit is contained in:
parent
a56ecc4aee
commit
b63654f352
@ -12,15 +12,13 @@ LIBRAW1394_DIR:=$(BUILD_DIR)/libraw1394-$(LIBRAW1394_VERSION)
|
|||||||
$(DL_DIR)/$(LIBRAW1394_SOURCE):
|
$(DL_DIR)/$(LIBRAW1394_SOURCE):
|
||||||
$(WGET) -P $(DL_DIR) $(LIBRAW1394_SITE)/$(LIBRAW1394_SOURCE)
|
$(WGET) -P $(DL_DIR) $(LIBRAW1394_SITE)/$(LIBRAW1394_SOURCE)
|
||||||
|
|
||||||
$(LIBRAW1394_DIR)/.source: $(DL_DIR)/$(LIBRAW1394_SOURCE)
|
$(LIBRAW1394_DIR)/.unpacked: $(DL_DIR)/$(LIBRAW1394_SOURCE)
|
||||||
$(ZCAT) $(DL_DIR)/$(LIBRAW1394_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
$(ZCAT) $(DL_DIR)/$(LIBRAW1394_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
touch $(LIBRAW1394_DIR)/.source
|
touch $@
|
||||||
|
|
||||||
$(LIBRAW1394_DIR)/.configured: $(LIBRAW1394_DIR)/.source
|
$(LIBRAW1394_DIR)/.configured: $(LIBRAW1394_DIR)/.unpacked
|
||||||
(cd $(LIBRAW1394_DIR); \
|
(cd $(LIBRAW1394_DIR); rm -rf config.cache ; \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
CFLAGS="$(TARGET_CFLAGS)" \
|
|
||||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
||||||
./configure \
|
./configure \
|
||||||
--target=$(GNU_TARGET_NAME) \
|
--target=$(GNU_TARGET_NAME) \
|
||||||
--host=$(GNU_TARGET_NAME) \
|
--host=$(GNU_TARGET_NAME) \
|
||||||
@ -29,7 +27,7 @@ $(LIBRAW1394_DIR)/.configured: $(LIBRAW1394_DIR)/.source
|
|||||||
--exec-prefix=/usr \
|
--exec-prefix=/usr \
|
||||||
--bindir=/usr/bin \
|
--bindir=/usr/bin \
|
||||||
--sbindir=/usr/sbin \
|
--sbindir=/usr/sbin \
|
||||||
--libdir=/lib \
|
--libdir=/usr/lib \
|
||||||
--libexecdir=/usr/lib \
|
--libexecdir=/usr/lib \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--datadir=/usr/share \
|
--datadir=/usr/share \
|
||||||
@ -38,17 +36,17 @@ $(LIBRAW1394_DIR)/.configured: $(LIBRAW1394_DIR)/.source
|
|||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
);
|
);
|
||||||
touch $(LIBRAW1394_DIR)/.configured;
|
touch $@
|
||||||
|
|
||||||
$(LIBRAW1394_DIR)/.compiled: $(LIBRAW1394_DIR)/.configured
|
$(LIBRAW1394_DIR)/.compiled: $(LIBRAW1394_DIR)/.configured
|
||||||
$(MAKE) -C $(LIBRAW1394_DIR)
|
$(MAKE) -C $(LIBRAW1394_DIR)
|
||||||
touch $(LIBRAW1394_DIR)/.compiled
|
touch $@
|
||||||
|
|
||||||
$(STAGING_DIR)/lib/libraw1394.so: $(LIBRAW1394_DIR)/.compiled
|
$(STAGING_DIR)/usr/lib/libraw1394.so: $(LIBRAW1394_DIR)/.compiled
|
||||||
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBRAW1394_DIR)/src install
|
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBRAW1394_DIR)/src install
|
||||||
|
|
||||||
$(TARGET_DIR)/usr/lib/libraw1394.so: $(STAGING_DIR)/lib/libraw1394.so
|
$(TARGET_DIR)/usr/lib/libraw1394.so: $(STAGING_DIR)/lib/libraw1394.so
|
||||||
cp -dpf $(STAGING_DIR)/lib/libraw1394.so* $(TARGET_DIR)/usr/lib/
|
cp -dpf $(STAGING_DIR)/usr/lib/libraw1394.so* $(TARGET_DIR)/usr/lib/
|
||||||
|
|
||||||
libraw1394: uclibc $(TARGET_DIR)/usr/lib/libraw1394.so
|
libraw1394: uclibc $(TARGET_DIR)/usr/lib/libraw1394.so
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user