kumquat-buildroot/package/libcgi/libcgi.mk

75 lines
2.1 KiB
Makefile
Raw Normal View History

2006-01-23 20:49:38 +01:00
#############################################################
#
# libcgi
#
#############################################################
LIBCGI_VERSION:=1.0
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)
2007-07-16 11:32:07 +02:00
LIBCGI_LIBRARY:=src/libcgi.so
2007-07-16 21:03:46 +02:00
LIBCGI_DESTDIR:=usr/lib
LIBCGI_TARGET_LIBRARY=$(LIBCGI_DESTDIR)/libcgi.so
2006-01-23 20:49:38 +01:00
$(DL_DIR)/$(LIBCGI_SOURCE):
2009-01-16 12:42:52 +01:00
$(call DOWNLOAD,$(LIBCGI_SITE),$(LIBCGI_SOURCE))
2006-01-23 20:49:38 +01:00
$(LIBCGI_DIR)/.source: $(DL_DIR)/$(LIBCGI_SOURCE)
$(ZCAT) $(DL_DIR)/$(LIBCGI_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
toolchain/patch-kernel.sh $(LIBCGI_DIR) package/libcgi/ libcgi\*.patch
2006-01-23 20:49:38 +01:00
touch $(LIBCGI_DIR)/.source
$(LIBCGI_DIR)/.configured: $(LIBCGI_DIR)/.source
(cd $(LIBCGI_DIR); rm -f config.cache; \
2006-01-23 20:49:38 +01:00
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
./configure $(QUIET) \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--libdir=/lib \
--libexecdir=/$(LIBCGI_DESTDIR) \
--sysconfdir=/etc \
--datadir=/usr/share \
--localstatedir=/var \
--includedir=/include \
--mandir=/usr/man \
--infodir=/usr/info \
)
touch $(LIBCGI_DIR)/.configured
2006-01-23 20:49:38 +01:00
$(LIBCGI_DIR)/$(LIBCGI_LIBRARY): $(LIBCGI_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(LIBCGI_DIR)
2007-07-16 21:03:46 +02:00
$(STAGING_DIR)/$(LIBCGI_TARGET_LIBRARY): $(LIBCGI_DIR)/$(LIBCGI_LIBRARY)
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBCGI_DIR) install
2007-07-16 21:03:46 +02:00
touch -c $@
2007-07-16 11:32:07 +02:00
$(TARGET_DIR)/$(LIBCGI_TARGET_LIBRARY): $(STAGING_DIR)/$(LIBCGI_TARGET_LIBRARY)
2007-07-16 21:03:46 +02:00
cp -dpf $<* $(TARGET_DIR)/$(LIBCGI_DESTDIR)
2006-01-23 20:49:38 +01:00
libcgi: $(TARGET_DIR)/$(LIBCGI_TARGET_LIBRARY)
2006-01-23 20:49:38 +01:00
libcgi-source: $(DL_DIR)/$(LIBCGI_SOURCE)
libcgi-clean:
2007-07-16 21:03:46 +02:00
rm -f $(TARGET_DIR)/$(LIBCGI_TARGET_LIBRARY)*
2006-01-23 20:49:38 +01:00
-$(MAKE) -C $(LIBCGI_DIR) clean
libcgi-dirclean:
rm -rf $(LIBCGI_DIR)
2007-08-20 19:21:16 +02:00
.PHONY: libcgi
2006-01-23 20:49:38 +01:00
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(BR2_PACKAGE_LIBCGI),y)
TARGETS+=libcgi
2006-01-23 20:49:38 +01:00
endif