As requested, please find below my curl package file

#############################################################
#
# curl
#
#
#############################################################
CURL_VERSION:=7.18.0
CURL_SOURCE:=curl-$(CURL_VERSION).tar.gz
CURL_SITE:=http://curl.haxx.se/download
CURL_DIR:=$(BUILD_DIR)/curl-$(CURL_VERSION)
CURL_BINARY:=curl
CURL_TARGET_BINARY:=usr/bin/curl

$(DL_DIR)/$(CURL_SOURCE):
         $(WGET) -P $(DL_DIR) $(CURL_SITE)/$(CURL_SOURCE)

$(CURL_DIR)/.source: $(DL_DIR)/$(CURL_SOURCE)
         zcat $(DL_DIR)/$(CURL_SOURCE) | tar -C $(BUILD_DIR) 
$(TAR_OPTIONS) -
         touch $(CURL_DIR)/.source

$(CURL_DIR)/.configured: $(CURL_DIR)/.source
         (cd $(CURL_DIR); \
                 $(TARGET_CONFIGURE_OPTS) \
                 CFLAGS="$(TARGET_CFLAGS)" \
                 ./configure \
                 --target=$(GNU_TARGET_NAME) \
                 --host=$(GNU_TARGET_NAME) \
                 --build=$(GNU_HOST_NAME) \
                 --prefix=/usr \
                 --with-random=/dev/urandom \
                 --sysconfdir=/etc \
         );
         touch $(CURL_DIR)/.configured;

$(CURL_DIR)/$(CURL_BINARY): $(CURL_DIR)/.configured
         $(MAKE) CC=$(TARGET_CC) -C $(CURL_DIR)

$(TARGET_DIR)/$(CURL_TARGET_BINARY): $(CURL_DIR)/$(CURL_BINARY)
         $(MAKE) prefix=$(TARGET_DIR)/usr -C $(CURL_DIR) install
         rm -Rf $(TARGET_DIR)/usr/man

curl: uclibc ncurses $(TARGET_DIR)/$(CURL_TARGET_BINARY)

curl-source: $(DL_DIR)/$(CURL_SOURCE)

curl-clean:
         $(MAKE) prefix=$(TARGET_DIR)/usr -C $(CURL_DIR) uninstall
         -$(MAKE) -C $(CURL_DIR) clean

curl-dirclean:
         rm -rf $(CURL_DIR)

#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(strip $(BR2_PACKAGE_CURL)),y)
TARGETS+=curl
endif

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to