mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
Fix plugin compile issues on FreeBSD
This commit is contained in:
parent
e01ebd5ecb
commit
f85fe03335
@ -24,9 +24,9 @@
|
||||
#include <errno.h>
|
||||
#endif // _WIN32
|
||||
|
||||
#if !defined(_WIN32) && !defined(__APPLE__)
|
||||
#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__FreeBSD__)
|
||||
#include <libio.h>
|
||||
#endif // !_WIN32 && !__APPLE__
|
||||
#endif // !_WIN32 && !__APPLE__ && !__FreeBSD__
|
||||
|
||||
static const size_t handle_buffer_size = 4096;
|
||||
|
||||
|
@ -467,6 +467,10 @@ if (COMPILER=="LINUX"):
|
||||
IncDirectory("ALWAYS", "/usr/PCBSD/local/include")
|
||||
LibDirectory("ALWAYS", "/usr/PCBSD/local/lib")
|
||||
|
||||
if (sys.platform.startswith("freebsd")):
|
||||
IncDirectory("ALWAYS", "/usr/local/include")
|
||||
LibDirectory("ALWAYS", "/usr/local/lib")
|
||||
|
||||
if (os.path.exists("/usr/lib64")):
|
||||
IncDirectory("GTK2", "/usr/lib64/glib-2.0/include")
|
||||
IncDirectory("GTK2", "/usr/lib64/gtk-2.0/include")
|
||||
@ -507,6 +511,9 @@ if (COMPILER=="LINUX"):
|
||||
if (RTDIST):
|
||||
SmartPkgEnable("WX", tool = "wx-config")
|
||||
if (RUNTIME):
|
||||
if (sys.platform.startswith("freebsd")):
|
||||
SmartPkgEnable("NPAPI", "", (), ("xulrunner", "nspr*/prtypes.h", "nspr*"))
|
||||
else:
|
||||
SmartPkgEnable("NPAPI", "", (), ("xulrunner-*/stable", "xulrunner-*/stable/npapi.h", "nspr*/prtypes.h", "nspr*"))
|
||||
if (sys.platform != "darwin"):
|
||||
# CgGL is covered by the Cg framework, and we don't need X11 components on OSX
|
||||
|
Loading…
x
Reference in New Issue
Block a user