find swscale in ffmpeg thirdparty package

This commit is contained in:
rdb 2009-11-18 09:41:18 +00:00
parent 1f6b7283bc
commit b53d78d694

View File

@ -1063,6 +1063,11 @@ def SmartPkgEnable(pkg, pkgconfig = None, libs = None, incs = None, defs = None,
for d in olddefs:
defs[d] = ""
if (pkg.lower() == "swscale" and os.path.isfile(GetThirdpartyDir() + "ffmpeg/include/libswscale/swscale.h")):
# Let it be handled by the ffmpeg package
LibName(pkg, "-lswscale")
return
if (os.path.isdir(GetThirdpartyDir() + pkg.lower())):
IncDirectory(pkg, GetThirdpartyDir() + pkg.lower() + "/include")
LibDirectory(pkg, GetThirdpartyDir() + pkg.lower() + "/lib")