LIBCGI_SOURCE:=libcgi-$(LIBCGI_VERSION).tar.gz
LIBCGI_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/libcgi
LIBCGI_DIR:=$(BUILD_DIR)/libcgi-$(LIBCGI_VERSION)
-LIBCGI_LIBRARY:=libcgi
-LIBCGI_TARGET_LIBRARY:=usr/bin/libcgi
+LIBCGI_LIBRARY:=src/libcgi.so
+LIBCGI_TARGET_LIBRARY:=usr/lib/libcgi.so
$(DL_DIR)/$(LIBCGI_SOURCE):
$(WGET) -P $(DL_DIR) $(LIBCGI_SITE)/$(LIBCGI_SOURCE)
$(LIBCGI_DIR)/$(LIBCGI_LIBRARY): $(LIBCGI_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(LIBCGI_DIR)
-$(STAGING_DIR)/lib/libcgi.so: $(LIBCGI_DIR)/$(LIBCGI_LIBRARY)
+$(STAGING_DIR)/usr/lib/libcgi.so: $(LIBCGI_DIR)/$(LIBCGI_LIBRARY)
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBCGI_DIR) install
- touch -c $(STAGING_DIR)/lib/libcgi.so
+ touch -c $(STAGING_DIR)/usr/lib/libcgi.so
-$(TARGET_DIR)/$(LIBCGI_TARGET_LIBRARY): $(STAGING_DIR)/lib/libcgi.so
- cp -dpf $(STAGING_DIR)/lib/libcgi.so* $(TARGET_DIR)/usr/lib/
+$(TARGET_DIR)/$(LIBCGI_TARGET_LIBRARY): $(STAGING_DIR)/$(LIBCGI_TARGET_LIBRARY)
+ cp -dpf $(STAGING_DIR)/$(LIBCGI_TARGET_LIBRARY)* $(TARGET_DIR)/usr/lib/
libcgi: uclibc $(TARGET_DIR)/$(LIBCGI_TARGET_LIBRARY)
libcgi-dirclean:
rm -rf $(LIBCGI_DIR)
+.PHONY: libcgi
#############################################################
#
# Toplevel Makefile options