--
project = "Yoink"
-package = project:lower()
version = "0.1"
-bugreport = "chaz@dogcows.com"
+bugreport = "onefriedrice@brokenzipper.com"
function ShowHelp()
--enable-threads use threads for concurrency
--enable-hotloading watch assets for automatic reloading
- --with-gtk use gtk2 toolkit (overrides --with-qt4)
+ --with-gtk use the gtk2 toolkit (overrides --with-qt4)
--with-qt4 use the qt4 gui toolkit
]])
end
-- Define the dependent values.
- if not host then host = ReadCommand("build/config.guess") end
- alt_host = ReadCommand("build/config.sub "..host)
+ package = project:lower()
+ tarname = package.."-"..version
+
+ if not host then host = ReadCommand("tools/config.guess") end
+ alt_host = ReadCommand("tools/config.sub "..host)
if not eprefix then eprefix = prefix end
if not bindir then bindir = eprefix.."/bin" end
{
printf("Hello world!\n");
return 0;
-}]])
+}
+]])
tmpfile:close()
function extra() if not cross_compile then return "gcc", "cc" end end
{
std::cout << "Hello world!" << std::endl;
return 0;
-}]])
+}
+]])
tmpfile:close()
function extra() if not cross_compile then return "g++", "c++" end end
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.TARGET = host
-define.PLATFORM = platform
-define.CC = CC
-define.CXX = CXX
-define.AR = AR
-define.RANLIB = RANLIB
-define.WINDRES = WINDRES
-define.CFLAGS = CFLAGS
-define.CXXFLAGS = CXXFLAGS
-define.LDFLAGS = LDFLAGS
-define.LIBS = LIBS
-define.prefix = prefix
-define.bindir = bindir
-define.datadir = datadir
-define.mandir = mandir
-define.EXEEXT = exe_extension
+define.PACKAGE = project
+define.TARNAME = tarname
+define.TARGET = host
+define.PLATFORM = platform
+define.CC = CC
+define.CXX = CXX
+define.AR = AR
+define.RANLIB = RANLIB
+define.WINDRES = WINDRES
+define.CFLAGS = CFLAGS
+define.CXXFLAGS = CXXFLAGS
+define.LDFLAGS = LDFLAGS
+define.LIBS = LIBS
+define.prefix = prefix
+define.bindir = bindir
+define.datadir = datadir
+define.mandir = mandir
+define.EXEEXT = exe_extension
+
+export.PACKAGE_BUGREPORT = bugreport
--