Fix plugin compile issues on FreeBSD

This commit is contained in:
rdb 2010-04-25 07:42:37 +00:00
parent e01ebd5ecb
commit f85fe03335
2 changed files with 108 additions and 101 deletions

View File

@ -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;

View File

@ -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