about summary refs log tree commit diff stats
path: root/premake5.lua
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2022-06-06 20:56:06 -0400
committerCharadon <dev@iotib.net>2022-06-06 20:56:06 -0400
commitf8c9385aa6ed3adce597007cf3d190490d713c89 (patch)
tree175a1b5fc34421414caecc3942507898faeac590 /premake5.lua
parent31075f54f510d59af4f5a135ddf435284a395bb1 (diff)
downloadPong-C-f8c9385aa6ed3adce597007cf3d190490d713c89.tar.gz
FreeBSD fixes
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/premake5.lua b/premake5.lua
index 53ee6d2..f42bea7 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -43,8 +43,8 @@ project("Pong")
         -- Check Result
         if(BSD_OS_NAME == "NetBSD\n") then
             links {RaylibStaticLibrary, "m", "pthread"}
-        elseif(BSD_OS_NAME == "freebsd") then
-            links {RaylibStaticLibrary, "m", "stdthreads"}
+        elseif(BSD_OS_NAME == "FreeBSD\n") then
+            links {RaylibStaticLibrary, "m", "stdthreads", "pthread"}
         elseif(BSD_OS_NAME == "OpenBSD\n") then
 	    
 	    -- Work around the fact openbsd doesn't have c11 threads.
@@ -71,8 +71,8 @@ project("Pong")
         trigger = "install",
         description = "Install the game to prefix.",
         execute = function()
-            os.executef("mkdir -p %s/Pong", prefix)
-            os.executef("cp -rv resources/ %s/Pong/", prefix)
+            os.executef("mkdir -p %s/Pong/resources", prefix)
+            os.executef("cp -v resources/* %s/Pong/resources/", prefix)
             os.executef("install -Dm755 bin/*/Pong %s/Pong/pong", prefix)
         end
     }