OSX framework app support dir needs version
|Reported by:||kyngchaos||Owned by:||hobu|
With the approach of v1.6 and considering that drivers are now verified to match the library version, the OSX framework Application Support GDAL dir should have subdirs for versions. This will keep driver plugins separate for different GDAL versions. This is especially helpful when software linking GDAL doesn't update its GDAL version in a timely manner.
The suggested structure is:
Library Application Support GDAL major.minor
This matches the major.minor version structure of the framework package.
The attached patches take care of this in gdaldrivermanager.cpp and ogrdriverregistrar.cpp, and are for v1.6. I got the num2str/str define idea from http://en.wikibooks.org/wiki/C_Programming/Preprocessor. I didn't check (don't really know where to check) if GDAL has such a mechanism already.
I marked the version/milestone as 1.6 but it should be backported to 1.5 as well.