Browse Source

Merge pull request #41 from bmx-ng/pub_hk

Haiku initial support.
Brucey 5 years ago
parent
commit
293427a579

+ 1 - 1
freeprocess.mod/freeprocess.c

@@ -6,7 +6,7 @@
 
 #define HIDECONSOLE 1
 
-#if __APPLE__ || __linux
+#if __APPLE__ || __linux || __HAIKU__
 
 #include <sys/ioctl.h>
 #include <unistd.h>

+ 6 - 0
freetype.mod/freetype.bmx

@@ -63,6 +63,12 @@ ModuleInfo "CC_OPTS: `pkg-config --cflags freetype2`"
 
 Import "-lfreetype"
 
+?haiku
+
+ModuleInfo "CC_OPTS: `freetype-config --cflags`"
+
+Import "-lfreetype"
+
 ?win32
 ModuleInfo "CC_OPTS: -DFT2_BUILD_LIBRARY"
 Import "source.bmx"

+ 1 - 1
libuuid.mod/glue.c

@@ -1,5 +1,5 @@
 /*
- Copyright (c) 2015 Bruce A Henderson
+ Copyright (c) 2015-2020 Bruce A Henderson
  All rights reserved.
 
  Redistribution and use in source and binary forms, with or without

+ 7 - 3
libuuid.mod/libuuid.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2015-2019 Bruce A Henderson
+' Copyright (c) 2015-2020 Bruce A Henderson
 ' All rights reserved.
 '
 ' Redistribution and use in source and binary forms, with or without
@@ -27,10 +27,12 @@ SuperStrict
 
 Module Pub.LibUUID
 
-ModuleInfo "Version: 1.02"
+ModuleInfo "Version: 1.03"
 ModuleInfo "License: BSD"
-ModuleInfo "Copyright: Wrapper - 2015-2019 Bruce A Henderson"
+ModuleInfo "Copyright: Wrapper - 2015-2020 Bruce A Henderson"
 
+ModuleInfo "History: 1.02"
+ModuleInfo "History: Updated for Haiku."
 ModuleInfo "History: 1.02"
 ModuleInfo "History: Fixed Linux build."
 ModuleInfo "History: 1.01"
@@ -42,6 +44,8 @@ ModuleInfo "History: Initial Release."
 ModuleInfo "CC_OPTS: -DHAVE_NANOSLEEP -DHAVE_STRNDUP"
 ?macos
 ModuleInfo "CC_OPTS: -DHAVE_NANOSLEEP"
+?haiku
+ModuleInfo "CC_OPTS: -DHAVE_NANOSLEEP -DHAVE_STRNDUP -DHAVE_SYS_FILE_H"
 ?
 
 

+ 5 - 0
opengl.mod/opengl.bmx

@@ -31,6 +31,11 @@ Import "GL/gl.h"
 Import "-lGL"
 Import "-lGLU"
 Import "glu.bmx"
+?haiku
+Import "GL/gl.h"
+Import "-lGL"
+Import "-lGLU"
+Import "glu.bmx"
 ?
 
 ?Not nx

+ 4 - 0
physfs.mod/physfs.bmx

@@ -4,6 +4,8 @@ Module Pub.PhysFs
 
 ?macos
 Import "-framework IOKit"
+?haiku
+Import "-lbe -lroot"
 ?
 
 Import "physfs/src/*.h"
@@ -30,4 +32,6 @@ Import "physfs/src/physfs_platform_windows.c"
 Import "physfs/src/physfs_unicode.c"
 ?macos
 Import "physfs/src/physfs_platform_apple.m"
+?haiku
+Import "physfs/src/physfs_platform_haiku.cpp"
 ?

+ 2 - 0
stdc.mod/stdc.bmx

@@ -43,6 +43,8 @@ ModuleInfo "CC_OPTS: -D_FILE_OFFSET_BITS=64"
 ?win32
 Import "-lWs2_32"
 Import "inet_pton.c"
+?haiku
+Import "-lnetwork"
 ?
 
 Import "stdc.c"