mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Fix incorrect PC-BSD checks
This commit is contained in:
parent
181663ad66
commit
85bd762709
@ -443,7 +443,7 @@ if (COMPILER=="LINUX"):
|
||||
IncDirectory("FREETYPE", "/usr/X11/include/freetype2")
|
||||
IncDirectory("OPENGL", "/usr/X11R6/include")
|
||||
|
||||
if (platform.uname()[1]=="pcbsd"):
|
||||
if (os.path.exists("/usr/PCBSD")):
|
||||
IncDirectory("ALWAYS", "/usr/PCBSD/local/include")
|
||||
LibDirectory("ALWAYS", "/usr/PCBSD/local/lib")
|
||||
|
||||
|
@ -1178,7 +1178,7 @@ def SmartPkgEnable(pkg, pkgconfig = None, libs = None, incs = None, defs = None,
|
||||
incdir = sorted(glob.glob("/usr/include/" + i))[-1]
|
||||
elif (len(glob.glob("/usr/local/include/" + i)) > 0):
|
||||
incdir = sorted(glob.glob("/usr/local/include/" + i))[-1]
|
||||
elif (platform.uname()[1]=="pcbsd" and len(glob.glob("/usr/PCBSD/local/include/" + i)) > 0):
|
||||
elif (os.path.isdir("/usr/PCBSD") and len(glob.glob("/usr/PCBSD/local/include/" + i)) > 0):
|
||||
incdir = sorted(glob.glob("/usr/PCBSD/local/include/" + i))[-1]
|
||||
else:
|
||||
have_pkg = False
|
||||
@ -1629,7 +1629,7 @@ def CheckLinkerLibraryPath():
|
||||
os.environ["DYLD_LIBRARY_PATH"] = builtlib
|
||||
|
||||
# Workaround around compile issue on PCBSD
|
||||
if (platform.uname()[1]=="pcbsd"):
|
||||
if (os.path.exists("/usr/PCBSD")):
|
||||
os.environ["LD_LIBRARY_PATH"] += ":/usr/PCBSD/local/lib"
|
||||
|
||||
########################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user