X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=build-hc-pkg.git;a=blobdiff_plain;f=mk%2Fmain.mk;h=ad46595d22ee6a9ebec76f490116b4fea3d84848;hp=815f6531a31177041c203bac574e9bde5c3071c4;hb=HEAD;hpb=2a032631b7bfccfa2044dd50863d0e1c119c8b2e diff --git a/mk/main.mk b/mk/main.mk index 815f653..ad46595 100644 --- a/mk/main.mk +++ b/mk/main.mk @@ -1,5 +1,6 @@ DIRNAME := $(patsubst %-src.tar.bz2,%,$(notdir $(SRCPATH))) -GNUTAR ?= gnutar +GNUTAR ?= gtar +GNUSED ?= gsed HC_TARNAME ?= $(DIRNAME)-boot-$(PLATFORM).tar.bz2 all: work/pack-hc-pkg.stamp @@ -10,7 +11,7 @@ work/extract-src.stamp: work/patch-src.stamp: work/extract-src.stamp @echo "Executing an inner shell." - @echo "Apply some patch to the source tree, then exit." + @echo "Apply some patches to the source tree if you want to, then exit." @echo "(pwd: `pwd`/$(DIRNAME))" @cd "work/$(DIRNAME)" && "$(SHELL)" touch $@ @@ -69,7 +70,7 @@ work/extract-boot-tarball.stamp: work/build-boot-tarball.stamp work/replace-paths.stamp: work/extract-boot-tarball.stamp cd "work/$(DIRNAME)" && \ - gsed -i \ + $(GNUSED) -i \ -e 's#/usr/pkg#[[PREFIX]]#g' \ -e 's#'`pwd`'-host#[[GHC_SOURCE_PATH]]#g' \ inplace/lib/package.conf.d/*.conf \