--
project = "Yoink"
-package = project:lower()
version = "0.1"
-bugreport = "chaz@dogcows.com"
+bugreport = "onefriedrice@brokenzipper.com"
function ShowHelp()
-- Define the dependent values.
+ package = project:lower()
+ tarname = package.."-"..version
+
if not host then host = ReadCommand("tools/config.guess") end
alt_host = ReadCommand("tools/config.sub "..host)
CFLAGS = CFLAGS.." "..pc_cflags
CXXFLAGS = CXXFLAGS.." "..pc_cflags
- local pc_libs = ReadCommand(command.." --libs "..deps)
+ local pc_libs = " "..ReadCommand(command.." --libs "..deps)
if not pc_libs then Die("Couldn't determine LDFLAGS or LIBS.") end
- for lib in pc_libs:gmatch("%-l%S+") do
+ for lib in pc_libs:gmatch("%s%-l%S+") do
LIBS = LIBS.." "..lib
end
- for ldflag in pc_libs:gmatch("%-[^l]%S*") do
+ for ldflag in pc_libs:gmatch("%s%-[^l]%S*") do
LDFLAGS = LDFLAGS.." "..ldflag
end
do
-- Determine and define the git revision.
- local head = ReadCommand("git log -n1 --date=short --pretty=format:\"%h (%ad)\"")
+ local head = ReadCommand("git describe master")
config.YOINK_GITHEAD = head
end
config.PACKAGE_STRING = project.." "..version
config.PACKAGE_BUGREPORT = bugreport
+define.PACKAGE = project
+define.TARNAME = tarname
define.TARGET = host
define.PLATFORM = platform
define.CC = CC