Permalink
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (22 sloc) 670 Bytes
include ../../Library/Unix.mk
Title= Lua
Name= lua
Version= 5.3.4
Site= http://www.lua.org/
Source= http://www.lua.org/ftp/$(Name)-$(Version).tar.gz
License= MIT
LicenseFile= license.txt
MakeExtra = MYCFLAGS="$(CFlags)" MYCXXFLAGS="$(CxxFlags)" MYLDFLAGS="$(LdFlags)"
MakeExtra += macosx
MakeInstallExtra += INSTALL_TOP=$(DestDir)$(Prefix)
MakeInstallExtra += INSTALL_MAN=$(DestDir)$(ManDir)/man1
define check_post_hook
otool -L $(BuildDir)/src/lua | grep libedit
nm $(BuildDir)/src/lua | grep _readline
endef
define install_post_hook
install -m 644 $(SourceDir)/doc/* $(DestDir)$(DocDir)/$(Name)
endef
define test_hook
$(BinDir)/lua -v | grep $(Version)
endef