2006-01-23 20:58:19 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
2007-07-17 14:01:09 +02:00
|
|
|
# libcgicc
|
2006-01-23 20:58:19 +01:00
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2009-01-13 19:42:37 +01:00
|
|
|
LIBCGICC_VERSION=3.2.7
|
2006-01-23 20:58:19 +01:00
|
|
|
LIBCGICC_DIR=$(BUILD_DIR)/cgicc-$(LIBCGICC_VERSION)
|
2009-01-13 19:42:37 +01:00
|
|
|
LIBCGICC_SITE=$(BR2_GNU_MIRROR)/cgicc
|
|
|
|
LIBCGICC_SOURCE=cgicc-$(LIBCGICC_VERSION).tar.gz
|
|
|
|
LIBCGICC_CAT:=$(ZCAT)
|
2006-01-23 20:58:19 +01:00
|
|
|
|
|
|
|
$(DL_DIR)/$(LIBCGICC_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(LIBCGICC_SITE),$(LIBCGICC_SOURCE))
|
2006-01-23 20:58:19 +01:00
|
|
|
|
|
|
|
libcgicc-source: $(DL_DIR)/$(LIBCGICC_SOURCE)
|
|
|
|
|
|
|
|
$(LIBCGICC_DIR)/.unpacked: $(DL_DIR)/$(LIBCGICC_SOURCE)
|
|
|
|
$(LIBCGICC_CAT) $(DL_DIR)/$(LIBCGICC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2009-01-21 01:21:43 +01:00
|
|
|
toolchain/patch-kernel.sh $(LIBCGICC_DIR) package/libcgicc cgicc\*.patch
|
|
|
|
touch $@
|
2006-01-23 20:58:19 +01:00
|
|
|
|
|
|
|
$(LIBCGICC_DIR)/.configured: $(LIBCGICC_DIR)/.unpacked
|
2007-09-25 14:34:09 +02:00
|
|
|
(cd $(LIBCGICC_DIR); rm -f config.cache; \
|
2006-01-23 20:58:19 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2009-10-01 21:24:42 +02:00
|
|
|
./configure $(QUIET) \
|
2006-01-23 20:58:19 +01:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
2007-01-14 04:52:21 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
2009-01-26 20:41:47 +01:00
|
|
|
--disable-demos \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2009-01-21 01:21:43 +01:00
|
|
|
touch $@
|
2006-01-23 20:58:19 +01:00
|
|
|
|
|
|
|
$(LIBCGICC_DIR)/.compiled: $(LIBCGICC_DIR)/.configured
|
|
|
|
$(MAKE) -C $(LIBCGICC_DIR)
|
2009-01-21 01:21:43 +01:00
|
|
|
touch $@
|
2006-01-23 20:58:19 +01:00
|
|
|
|
2009-01-26 20:41:32 +01:00
|
|
|
$(STAGING_DIR)/usr/lib/libcgicc.so: $(LIBCGICC_DIR)/.compiled
|
2007-01-14 04:52:21 +01:00
|
|
|
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBCGICC_DIR) install
|
2009-01-26 20:41:32 +01:00
|
|
|
touch -c $(STAGING_DIR)/usr/lib/libcgicc.so
|
2006-01-23 20:58:19 +01:00
|
|
|
|
2009-01-26 20:41:32 +01:00
|
|
|
$(TARGET_DIR)/usr/lib/libcgicc.so: $(STAGING_DIR)/usr/lib/libcgicc.so
|
|
|
|
cp -dpf $(STAGING_DIR)/usr/lib/libcgicc.so* $(TARGET_DIR)/usr/lib/
|
2006-01-23 20:58:19 +01:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
libcgicc: $(TARGET_DIR)/usr/lib/libcgicc.so
|
2006-01-23 20:58:19 +01:00
|
|
|
|
2009-01-21 01:21:43 +01:00
|
|
|
libcgicc-unpacked: $(LIBCGICC_DIR)/.unpacked
|
|
|
|
|
2006-01-23 20:58:19 +01:00
|
|
|
libcgicc-clean:
|
|
|
|
-$(MAKE) -C $(LIBCGICC_DIR) clean
|
|
|
|
|
|
|
|
libcgicc-dirclean:
|
|
|
|
rm -rf $(LIBCGICC_DIR)
|
2007-08-22 14:35:41 +02:00
|
|
|
|
2006-01-23 20:58:19 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCGICC),y)
|
2006-01-23 20:58:19 +01:00
|
|
|
TARGETS+=libcgicc
|
|
|
|
endif
|