diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-05-31 14:50:55 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-05-31 14:50:55 +0100 |
commit | 4f9115eae7c6a96a60f8913da56b5d6310c17ef6 (patch) | |
tree | 4e4051a5b5f8a12cb62bfec339a99b87d3616540 | |
parent | 3011a2c9948ef7490e0473dafb27c123fa229872 (diff) | |
download | lua-4f9115eae7c6a96a60f8913da56b5d6310c17ef6.tar.gz |
lua: define morphology
The build system for lua is too odd to be morphless.
The maintainer of this repository has converted it to CMake, but we
don't support CMake yet and he moved luaconf.h, so it can't use the
default configuration without effort.
PLAT=linux is required because lua can build on many different systems,
but won't deduce which one it is built on.
Unfortunately, it assumes that if it is built on linux, then it has
libreadline, and I would prefer if it didn't depend on it.
So an ugly sed command is used to stop it.
-rw-r--r-- | lua.morph | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lua.morph b/lua.morph new file mode 100644 index 0000000..06ba749 --- /dev/null +++ b/lua.morph @@ -0,0 +1,13 @@ +{ + "name": "lua", + "kind": "chunk", + "configure-commands": [ + "sed -e 's/defined(LUA_USE_READLINE)/0/g' src/luaconf.h.orig >src/luaconf.h" + ], + "build-commands": [ + "make PLAT=linux INSTALL_TOP=\"$PREFIX\"" + ], + "install-commands": [ + "make INSTALL_TOP=\"$DESTDIR/$PREFIX\" install" + ] +} |