]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
- Install the library under $(STAGING_DIR)/usr/lib (Julien Letessier)
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 25 Jun 2007 08:58:38 +0000 (08:58 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 25 Jun 2007 08:58:38 +0000 (08:58 -0000)
package/libraw1394/libraw1394.mk

index 0d84271349a80144dbc77ec8644e0e636521de7e..e4d78f8ddbc63ce57efaa783c4a5677081f4876a 100644 (file)
@@ -12,15 +12,13 @@ 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)
+$(LIBRAW1394_DIR)/.unpacked: $(DL_DIR)/$(LIBRAW1394_SOURCE)
        $(ZCAT) $(DL_DIR)/$(LIBRAW1394_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
-       touch $(LIBRAW1394_DIR)/.source
+       touch $@
 
-$(LIBRAW1394_DIR)/.configured: $(LIBRAW1394_DIR)/.source
-       (cd $(LIBRAW1394_DIR); \
+$(LIBRAW1394_DIR)/.configured: $(LIBRAW1394_DIR)/.unpacked
+       (cd $(LIBRAW1394_DIR); rm -rf config.cache ; \
                $(TARGET_CONFIGURE_OPTS) \
-               CFLAGS="$(TARGET_CFLAGS)" \
-               LDFLAGS="$(TARGET_LDFLAGS)" \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
@@ -29,7 +27,7 @@ $(LIBRAW1394_DIR)/.configured: $(LIBRAW1394_DIR)/.source
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
-               --libdir=/lib \
+               --libdir=/usr/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
@@ -38,17 +36,17 @@ $(LIBRAW1394_DIR)/.configured: $(LIBRAW1394_DIR)/.source
                --mandir=/usr/man \
                --infodir=/usr/info \
        );
-       touch $(LIBRAW1394_DIR)/.configured;
+       touch $@
 
 $(LIBRAW1394_DIR)/.compiled: $(LIBRAW1394_DIR)/.configured
        $(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
 
 $(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