comparison Makefile @ 1437:181c89101ae0

changed download mechanism to allow for simple integration of post-download filters, at the cost of not being able to contine interrupted downloads
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 28 Nov 2010 13:11:32 +0100
parents b14677f6af57
children 698e4de6d9a6
comparison
equal deleted inserted replaced
1434:5e1db3421f8e 1437:181c89101ae0
58 [ '$($(1)_CHECKSUM)' == "`$$(call PKG_CHECKSUM,$(1))`" ] 58 [ '$($(1)_CHECKSUM)' == "`$$(call PKG_CHECKSUM,$(1))`" ]
59 59
60 DOWNLOAD_PKG_ARCHIVE = \ 60 DOWNLOAD_PKG_ARCHIVE = \
61 mkdir -p '$(PKG_DIR)' && \ 61 mkdir -p '$(PKG_DIR)' && \
62 $(if $($(1)_URL_2), \ 62 $(if $($(1)_URL_2), \
63 wget -T 30 -t 3 -c -O '$(PKG_DIR)/$($(1)_FILE)' '$($(1)_URL)' \ 63 ( wget -T 30 -O - '$($(1)_URL)' || wget -O - '$($(1)_URL_2)' ), \
64 || wget -c -O '$(PKG_DIR)/$($(1)_FILE)' '$($(1)_URL_2)', \ 64 wget -O - '$($(1)_URL)') \
65 wget -c -O '$(PKG_DIR)/$($(1)_FILE)' '$($(1)_URL)') 65 > '$(PKG_DIR)/$($(1)_FILE)'
66 66
67 SOURCEFORGE_FILES = \ 67 SOURCEFORGE_FILES = \
68 wget -q -O- '$(1)' | \ 68 wget -q -O- '$(1)' | \
69 grep 'title="/' | \ 69 grep 'title="/' | \
70 $(SED) -n 's,.*title="\(/[^:]*\).*released on \([0-9-]*\)",\2 \1,p' | \ 70 $(SED) -n 's,.*title="\(/[^:]*\).*released on \([0-9-]*\)",\2 \1,p' | \