diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2013-05-15 15:29:10 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2013-05-20 15:21:14 +0000 |
commit | 1d6fc298099b4359e9ec50af1811419f5ab8d514 (patch) | |
tree | 8a08b874cd40e765f68abc35b048d79591f316a5 /libeditline.morph | |
parent | 7d01cc699a583ad79086bcbff698fb9420d1b0e7 (diff) | |
download | libeditline-baserock/morph.tar.gz |
Make libeditline build successfullybaserock/morph
np/vis.h had to be added because we do not have that header
installed.
makelist had to be given exec permissions.
config.h had to be modified to make it use np/vis.h
Diffstat (limited to 'libeditline.morph')
-rw-r--r-- | libeditline.morph | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libeditline.morph b/libeditline.morph new file mode 100644 index 0000000..eece48b --- /dev/null +++ b/libeditline.morph @@ -0,0 +1,27 @@ +name: libeditline +kind: chunk +build-system: manual +build-commands: + # Notes: + # 1. bmake does not look for system headers if DESTDIR is defined. + # 2. MAKEFLAGS contained commands for parallel builds, which broke + # when it tried to use common.h before it was created. + # 3. Making manpages calls `nroff` and we don't want manpages anyway. + # 4. The macro __RCSID is not defined in our cdefs.h, so is defined as + # something else. + - | + `# [1]` unset DESTDIR; \ + `# [2]` unset MAKEFLAGS; \ + bmake \ + `# [3]` MK_MAN=no \ + PREFIX="$PREFIX" \ + `# [4]` CFLAGS="\"-D__RCSID(foo)=static const char rcsid[]=foo\"" +install-commands: + # Notes: + # 1. It tries to use "install -C" which is not available with busybox + # 2. It tries to install manpages that we didn't build. + - | + bmake PREFIX="$PREFIX" DESTDIR="$DESTDIR" \ + `# [1]` INC_COPY=" " \ + `# [2]` MK_MAN=no \ + install |