@@ -13,25 +13,29 @@ ARCHS = $(NATIVE_ARCH)
13
13
// QGIS version info & config
14
14
//////////////////////////////////////////////////////////////////////
15
15
16
- // major-minor-micro must be integers for Mac OS X
16
+ // major-minor-patch must be integers for Mac OS X
17
17
QGIS_RELEASE_NAME = Unstable-trunk
18
18
QGIS_VERSION_MAJOR = 1
19
19
QGIS_VERSION_MINOR = 1
20
20
QGIS_VERSION_PATCH = 0
21
- QGIS_VERSION_BUILD = 20090215
21
+ QGIS_VERSION_BUILD = 20090221
22
22
QGIS_VERSION_FULL = $(QGIS_VERSION_MAJOR).$(QGIS_VERSION_MINOR).$(QGIS_VERSION_PATCH)-$(QGIS_VERSION_BUILD)
23
23
QGIS_VERSION_INT = 10100
24
24
25
25
// library version - generally, keep in sync with qgis version
26
- LIBQGIS_VERSION_MAJOR = 1
27
- LIBQGIS_VERSION_MINOR = 1
26
+ LIBQGIS_VERSION_MAJOR = $(QGIS_VERSION_MAJOR)
27
+ LIBQGIS_VERSION_MINOR = $(QGIS_VERSION_MINOR)
28
28
LIBQGIS_VERSION_CURRENT = $(LIBQGIS_VERSION_MAJOR).$(LIBQGIS_VERSION_MINOR)
29
29
LIBQGIS_VERSION_COMPAT = $(LIBQGIS_VERSION_MAJOR).0
30
30
31
31
//////////////////////////////////////////////////////////////////////
32
32
// Qt and other support
33
33
//////////////////////////////////////////////////////////////////////
34
34
35
+ // ***TODO*** - detect current version, only used in bundle script
36
+ QT_FWVER = 4 // the Versions/ folder name
37
+ QT_MVER = 4 // the install_name version
38
+
35
39
QTDIR = /Developer/Tools/Qt
36
40
QTMOC = $(QTDIR)/moc
37
41
QTUIC = $(QTDIR)/uic
@@ -57,8 +61,7 @@ GDAL_FORM = fw // fw or shared
57
61
PROJ_FORM = fw // fw or shared
58
62
GEOS_FORM = fw // fw or shared
59
63
60
- // system sqlite3 only on Tiger+
61
- // could also have source form for in-source copy
64
+ // could also have source form for in-source copy ***TODO***
62
65
SQLITE_FORM = fw // fw, system, static or shared
63
66
64
67
GSL_FORM = shared // static or shared
@@ -73,6 +76,7 @@ GRASS_VERSION = 6.4
73
76
74
77
// system Python only on Leopard+
75
78
PYTHON_FORM = fw // fw, system or disabled
79
+ // ***TODO*** "Current" will autodetect version
76
80
PYTHON_VERSION = 2.5 // can't auto-detect here
77
81
78
82
//////////////////////////////////////////////////////////////////////
@@ -83,39 +87,16 @@ PYTHON_VERSION = 2.5 // can't auto-detect here
83
87
//////////////////////////////////////////////////////////////////////
84
88
85
89
// bundling GRASS doesn't make sense, as a full GRASS install is required
90
+ // Qt always bundled - else Qt plugins will load that cause grief
86
91
87
- //BUNDLE_QT = YES // always - else Qt plugins will load that cause grief
88
92
BUNDLE_GSL = YES
89
93
BUNDLE_PGSQL = YES
90
94
BUNDLE_GPSBABEL = YES
91
-
92
- // no need to bundle frameworks
93
- BUNDLE_GDAL = NO
94
- BUNDLE_GEOS = NO
95
- BUNDLE_PROJ = NO
96
- BUNDLE_SQLITE = NO
97
-
98
- //////////////////////////////////////////////////////////////////////
99
- // support library versions
100
- // if shared libraries are bundled, need to change install_names
101
- // and need to know library version as it currently is specified
102
- // in the library
103
- // check a library version with otool -L /path/to/library
104
- //////////////////////////////////////////////////////////////////////
105
- // ***** need to figure out install_names in script
106
-
107
- GSL_LIBVER = 0
108
- PGSQL_LIBVER = 5
109
- QT_FWVER = 4 // the Versions/ folder name
110
- QT_MVER = 4 // the install_name version
111
-
112
- // these only need to be checked for unix forms
113
- // since bundling is not set up yet for these, ignore them
114
- GDAL_LIBVER = 12
115
- PROJ_LIBVER = 4
116
- GEOS_LIBVER = 2
117
- GEOSC_LIBVER = 1 // GEOS has 2 libs, diff versions
118
- SQLITE_LIBVER = 0
95
+ // frameworks not bundled
96
+ BUNDLE_GDAL = YES
97
+ BUNDLE_GEOS = YES
98
+ BUNDLE_PROJ = YES
99
+ BUNDLE_SQLITE = YES
119
100
120
101
//////////////////////////////////////////////////////////////////////
121
102
// locations of user forms of dependencies
@@ -130,16 +111,15 @@ GEOS_PREFIX_shared = /usr/local
130
111
131
112
GSL_PREFIX = /usr/local
132
113
133
- // this must match exactly how GRASS was * built*, not where it is currently
134
- // installed, if it was moved. ie GRASS.app must be directly in /Applications
135
- // prefix is the equivalent of the GRASS GISBASE
114
+ // This must match exactly how GRASS was built and installed.
115
+ // If it was moved or renamed, qgis GRASS plugin will not work.
116
+ // Prefix is the equivalent of the GRASS GISBASE
136
117
GRASS_PREFIX_app = /Applications/GRASS-$(GRASS_VERSION).app/Contents/MacOS
137
118
GRASS_PREFIX_unix = /usr/local/grass-$(GRASS_VERSION)
138
119
139
120
EXPAT_PREFIX = /usr/local // not used for system expat
140
121
141
- // unix SQLite defaults to system, but that's Tiger+ -only
142
- // use custom unix build for Panther-compatibility
122
+ // unix SQLite defaults to system
143
123
SQLITE_PREFIX_shared = /usr
144
124
145
125
PGSQL_PREFIX = /usr/local/pgsql
@@ -166,13 +146,13 @@ QGIS_BUILD_PATH = $(SYMROOT)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/$(QGIS_P
166
146
// subdirs are relative to MacOS dir, as if MacOS is unix "prefix"
167
147
QGIS_BIN_SUBDIR = bin // leave this alone for now
168
148
QGIS_FW_SUBDIR = ../Frameworks
169
- QGIS_LIB_SUBDIR = lib
149
+ QGIS_LIB_SUBDIR = lib // qgispython lib MUST be in MacOS/lib
170
150
QGIS_DATA_SUBDIR = ../Resources
171
151
QGIS_PLUGIN_SUBDIR = ../PlugIns/qgis
172
152
HEADER_SEARCH_PATHS = generated
173
153
//LIBRARY_SEARCH_PATHS = $(PROJECT_TARGET_APP_DIR)/../Frameworks
174
154
ALWAYS_SEARCH_USER_PATHS = NO
175
- USE_HEADERMAP = NO
155
+ USE_HEADERMAP = NO // else headers with same name cause confusion
176
156
177
157
DYLIB_CURRENT_VERSION = $(LIBQGIS_VERSION_MAJOR).$(LIBQGIS_VERSION_MINOR)
178
158
DYLIB_COMPATIBILITY_VERSION = $(LIBQGIS_VERSION_MAJOR).0
@@ -209,20 +189,18 @@ QTDEFS_Debug = -DQT_DEBUG
209
189
QTDEFS_Release = -DQT_NO_DEBUG
210
190
QT_CXXFLAGS_APP = $(PGSQL_HAVE)
211
191
QT_INC_QT3 = /Library/Frameworks/Qt3Support.framework/Headers
212
- // old qt: -D_REENTRANT -DQT_THREAD_SUPPORT
213
- // -I/Library/Frameworks/QtTest.framework/Headers
214
192
QT_LIB_CORE = -framework QtCore
215
193
QT_LIB_GUI = -framework QtGui
216
194
QT_LIB_NET = -framework QtNetwork
217
195
QT_LIB_XML = -framework QtXml
218
196
QT_LIB_SVG = -framework QtSvg
219
197
QT_LIB_SQL = -framework QtSql
220
198
QT_LIB_QT3 = -framework Qt3Support
199
+ // convenience for all Qt:
221
200
QT_LIB = $(QT_LIB_CORE) $(QT_LIB_GUI) $(QT_LIB_NET) $(QT_LIB_XML) $(QT_LIB_SVG) $(QT_LIB_SQL)
222
- // -framework QtDesigner
223
201
224
202
// with a choice of system vs user unix libs, use full path to lib file
225
- // to avoid possible accidental linking to system lib
203
+ // to avoid possible accidental linking to system lib (ie expat)
226
204
227
205
GDAL_PREFIX_fw = /Library/Frameworks/GDAL.framework
228
206
GDAL_PREFIX = $(GDAL_PREFIX_$(GDAL_FORM))
0 commit comments