summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-08-22 15:52:01 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-08-22 15:52:01 +0000
commit7d8e28cc91923de8e032ce9da781f10e4c540b1b (patch)
treea40c73bc5d934bf6b8bc5df96534093008d42f07
parentbe4051a5f761280f8fdb902c9573ced47df6644e (diff)
- fix typo
- Start to add infrastructure to be able to download a patch.
-rw-r--r--package/Makefile.autotools.in17
1 files changed, 9 insertions, 8 deletions
diff --git a/package/Makefile.autotools.in b/package/Makefile.autotools.in
index 768d040a6..41e466216 100644
--- a/package/Makefile.autotools.in
+++ b/package/Makefile.autotools.in
@@ -26,7 +26,7 @@
# file name of the package source
# FOO_SITE [default sourceforge project "foo"]
# URL under wich $(FOO_SOURCE) can be found
-# FOO_DEPENDANCIES [default empty]
+# FOO_DEPENDENCIES [default empty]
# list of (package) targets that must be built before foo
# FOO_AUTORECONF [YES/NO, default NO]
# run <autoreconf> before <configure>
@@ -98,7 +98,7 @@
# UPPERCASE Macro -- transform its argument to uppercase and replace dots and
# hyphens to underscores
-UPPERCASE = $(shell echo $(1) | tr "a-z.-" "A-Z__")
+UPPERCASE = echo $(1) | tr "a-z.-" "A-Z__"
# Define extrators for different archive suffixes
INFLATE.bz2 = $(BZCAT)
@@ -109,10 +109,10 @@ INFLATE.tar = cat
# MESSAGE Macro -- display a message in bold type
MESSAGE = @echo $(TERM_BOLD) ; \
- echo ">>> $($(PKG)_NAME) $($(PKG)_VERSION) $(1)$(shell tput rmso)" ; \
+ echo ">>> $($(PKG)_NAME) $($(PKG)_VERSION) $(1)"; \
echo $(TERM_RESET)
-TERM_BOLD = $(shell tput bold)
-TERM_RESET = $(shell tput rmso)
+TERM_BOLD = #$(shell tput bold)
+TERM_RESET = #$(shell tput rmso)
# Utility programs used to build packages
TAR ?= tar
@@ -130,6 +130,7 @@ TAR ?= tar
$(BUILD_DIR)/%/.stamp_downloaded:
$(call MESSAGE,"Downloading")
test -e $(DL_DIR)/$($(PKG)_SOURCE) || $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE)
+ $(if $($(PKG)_PATCH),test -e $(DL_DIR)/$($(PKG)_PATCH) || $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_PATCH))
mkdir -p $(@D)
touch $@
@@ -255,7 +256,7 @@ $(2)_DIR = $$(BUILD_DIR)/$(1)-$$($(2)_VERSION)
$(2)_SOURCE ?= $(1)-$$($(2)_VERSION).tar.gz
$(2)_SITE ?= \
http://$$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/$(1)
-$(2)_DEPENDANCIES ?=
+$(2)_DEPENDENCIES ?=
$(2)_AUTORECONF ?= NO
$(2)_CONF_ENV ?=
$(2)_CONF_OPT ?=
@@ -311,7 +312,7 @@ $(1)-configure: $(1)-autoreconf $$($(2)_TARGET_CONFIGURE)
ifeq ($$($(2)_AUTORECONF),YES)
$(1)-autoreconf: $(1)-patch $$($(2)_TARGET_AUTORECONF)
-$(2)_DEPENDANCIES += host-automake host-autoconf host-libtool
+$(2)_DEPENDENCIES += host-automake host-autoconf host-libtool
else
$(1)-autoreconf: $(1)-patch
endif
@@ -320,7 +321,7 @@ $(1)-patch: $(1)-extract $$($(2)_TARGET_PATCH)
$(1)-extract: $(1)-depends $$($(2)_TARGET_EXTRACT)
-$(1)-depends: $(1)-source $$($(2)_DEPENDANCIES)
+$(1)-depends: $(1)-source $$($(2)_DEPENDENCIES)
$(1)-source: $$($(2)_TARGET_SOURCE)