diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-03-09 08:36:22 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-03-09 08:36:22 +0000 |
commit | ed5893f398e92983136c9da40b25740bb212cdda (patch) | |
tree | c33e2eeb49477e830ec9ba00b6e794f848de8302 /package/sed/sed.mk | |
parent | 1506b0cfd5708c81fe286549d63843c5030c0e8a (diff) | |
download | buildroot-novena-ed5893f398e92983136c9da40b25740bb212cdda.tar.gz buildroot-novena-ed5893f398e92983136c9da40b25740bb212cdda.zip |
Include a patch for GNU sed that allows building it on Mac OS X and
remove a spurious --prefix from sed.mk. (Heikki Lindholm)
Diffstat (limited to 'package/sed/sed.mk')
-rw-r--r-- | package/sed/sed.mk | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/package/sed/sed.mk b/package/sed/sed.mk index 875689d8e..978abe7be 100644 --- a/package/sed/sed.mk +++ b/package/sed/sed.mk @@ -18,6 +18,7 @@ endif HOST_SED_DIR:=$(TOOL_BUILD_DIR) SED:=$(HOST_SED_DIR)/bin/sed -i -e HOST_SED_TARGET=$(shell package/sed/sedcheck.sh) +HOST_SED_IF_ANY=$(shell toolchain/dependencies/check-host-sed.sh) $(DL_DIR)/$(SED_SOURCE): mkdir -p $(DL_DIR) @@ -35,13 +36,13 @@ $(SED_DIR1)/.unpacked: $(DL_DIR)/$(SED_SOURCE) mkdir -p $(TOOL_BUILD_DIR) mkdir -p $(HOST_SED_DIR)/bin; $(SED_CAT) $(DL_DIR)/$(SED_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) - + toolchain/patch-kernel.sh $(SED_DIR1) package/sed/ configure.patch touch $(SED_DIR1)/.unpacked $(SED_DIR1)/.configured: $(SED_DIR1)/.unpacked (cd $(SED_DIR1); rm -rf config.cache; \ ./configure \ --prefix=$(HOST_SED_DIR) \ - --prefix=/usr \ ); touch $(SED_DIR1)/.configured @@ -62,17 +63,10 @@ build-sed-host-binary: $(SED_DIR1)/$(SED_BINARY) $(HOST_SED_DIR)/usr/man $(HOST_SED_DIR)/usr/share/doc; fi use-sed-host-binary: - @if [ -x /usr/bin/sed ] ; then \ - SED="/usr/bin/sed" ; \ - else \ - if [ -x /bin/sed ] ; then \ - SED="/bin/sed" ; \ - fi \ - fi ; \ - if [ ! -e "$(HOST_SED_DIR)/$(SED_TARGET_BINARY)" ] ; then \ + @if [ ! -e "$(HOST_SED_DIR)/$(SED_TARGET_BINARY)" ] ; then \ mkdir -p "$(HOST_SED_DIR)/bin"; \ rm -f "$(HOST_SED_DIR)/$(SED_TARGET_BINARY)"; \ - ln -sf "$$SED" "$(HOST_SED_DIR)/$(SED_TARGET_BINARY)"; \ + ln -sf "$(HOST_SED_IF_ANY)" "$(HOST_SED_DIR)/$(SED_TARGET_BINARY)"; \ fi host-sed: $(HOST_SED_TARGET) |