Lines 14-20
Link Here
|
14 |
# components (with run and/or build dependencies). It can be used after and/or |
14 |
# components (with run and/or build dependencies). It can be used after and/or |
15 |
# before bsd.port.pre.mk, but Python components will only work if Python |
15 |
# before bsd.port.pre.mk, but Python components will only work if Python |
16 |
# variables (e.g. USE_PYTHON) are defined before it (this is a bsd.python.mk |
16 |
# variables (e.g. USE_PYTHON) are defined before it (this is a bsd.python.mk |
17 |
# limitation). |
17 |
# limitation), at least it is manually included. |
18 |
# USE_WX - Set to the list of WxWidgets versions that can be used by |
18 |
# USE_WX - Set to the list of WxWidgets versions that can be used by |
19 |
# the port. The syntax allows the following elements: |
19 |
# the port. The syntax allows the following elements: |
20 |
# - Single version (e.g. "2.4"). |
20 |
# - Single version (e.g. "2.4"). |
Lines 29-35
Link Here
|
29 |
# WX_COMPS - Set to the list of WxWidgets components the port uses. |
29 |
# WX_COMPS - Set to the list of WxWidgets components the port uses. |
30 |
# Several components can be specified separated by spaces. By |
30 |
# Several components can be specified separated by spaces. By |
31 |
# default it will have the value of "wx". Suffixes in the form |
31 |
# default it will have the value of "wx". Suffixes in the form |
32 |
# "_xxx" may be added to the components to determine the |
32 |
# ":xxx" may be added to the components to determine the |
33 |
# dependency type. |
33 |
# dependency type. |
34 |
# The available components are: |
34 |
# The available components are: |
35 |
# wx - The WxWidgets library. |
35 |
# wx - The WxWidgets library. |
Lines 41-60
Link Here
|
41 |
# build - Requires component for building. |
41 |
# build - Requires component for building. |
42 |
# lib - Requires component for building and running. |
42 |
# lib - Requires component for building and running. |
43 |
# run - Requires component for running. |
43 |
# run - Requires component for running. |
44 |
# If no suffix is present then "lib" will be used. |
44 |
# If no suffix is present then "run" will be used for "python" |
|
|
45 |
# and "lib" for others. |
45 |
# WX_CONF_ARGS - Set to "absolute" or "relative" if the port needs configure |
46 |
# WX_CONF_ARGS - Set to "absolute" or "relative" if the port needs configure |
46 |
# arguments in addition to the WX_CONFIG environment variable. |
47 |
# arguments in addition to the WX_CONFIG environment variable. |
47 |
# It determines the type of parameters that have to be passed |
48 |
# It determines the type of parameters that have to be passed |
48 |
# to the configure script. In the first case it adds |
49 |
# to the configure script. In the first case it adds |
49 |
# "--with-wx-config=${WX_CONFIG}" (absolute path of WX_CONFIG), |
50 |
# "--with-wx-config=${WX_CONFIG}" (absolute path of |
50 |
# and in second one "--with-wx=${X11BASE}" and |
51 |
# WX_CONFIG), and in second one "--with-wx=${X11BASE}" plus |
51 |
# "--with-wx-config=${WX_CONFIG:T} (prefix and name). |
52 |
# "--with-wx-config=${WX_CONFIG:T} (prefix and name). |
52 |
# WX_UNICODE - Set to "yes" (or anything) if the port needs the Unicode |
53 |
# WX_PREMK - Define to determine version and define WX_CONFIG/WX_VERSION |
53 |
# version of the WxWidgets library and/or contributed |
54 |
# after <bsd.port.pre.mk> (in case the port needs to manually run |
54 |
# libraries. |
55 |
# the script). |
|
|
56 |
# WX_UNICODE - Define if the port needs the Unicode version of the |
57 |
# WxWidgets library and/or contributed libraries. |
55 |
# NOTE: this should NOT be used for ports that can be compiled |
58 |
# NOTE: this should NOT be used for ports that can be compiled |
56 |
# with Unicode or not, but for the ones that require it. The |
59 |
# with Unicode or not, but for the ones that require it. |
57 |
# first case is handled by the user variable WITH_UNICODE. |
60 |
# WANT_UNICODE - Define if the port prefers Unicode, but doesn't require it. |
58 |
# WANT_WX - Set to "yes" or a valid single version (no ranges, etc). |
61 |
# WANT_WX - Set to "yes" or a valid single version (no ranges, etc). |
59 |
# In both cases it will detect the installed WxWidgets |
62 |
# In both cases it will detect the installed WxWidgets |
60 |
# components and add them to the variable HAVE_WX. If a |
63 |
# components and add them to the variable HAVE_WX. If a |
Lines 70-92
Link Here
|
70 |
# |
73 |
# |
71 |
# The following variables are intended for the user and can be defined in |
74 |
# The following variables are intended for the user and can be defined in |
72 |
# make.conf. |
75 |
# make.conf. |
73 |
# WITH_UNICODE - If the variable is defined and both the running FreeBSD |
76 |
# WITH_UNICODE - Define if you prefer the Unicode version when available. |
74 |
# version and the selected WxWidgets version support Unicode, |
77 |
# WITHOUT_UNICODE - Define if you prefer the non Unicode version (this |
75 |
# then the Unicode version of WxWidgets is used. |
78 |
# variable disables WITH_UNICODE and WANT_UNICODE). |
76 |
# WITH_WX_VER - If the variable is defined the version it contains will be |
79 |
# WITH_WX_VER - Define to the list of prefered versions in reverse order. |
77 |
# used as the default for ports that support multiple |
|
|
78 |
# WxWidgets versions. It can contain multiple versions, and |
79 |
# the last possible one will be used. |
80 |
# |
80 |
# |
81 |
# The following variables are defined by this file, to be read from the port. |
81 |
# The following variables are defined by this file, to be read from the port. |
82 |
# WX_UNICODE - If this variable is not defined by the port (which means it |
82 |
# WX_UNICODE - If this variable is not defined by the port (which means it |
83 |
# requires the Unicode version of WxWidgets), it will be |
83 |
# requires the Unicode version of WxWidgets), it will be |
84 |
# defined in the case the Unicode version is used (enabled by |
84 |
# defined in the case the Unicode version is used (enabled by |
85 |
# the user through WITH_UNICODE). |
85 |
# WITH_UNICODE or WANT_UNICODE). |
86 |
# WX_VERSION - The WxWidgets version that is going to be used. |
86 |
# WX_VERSION - The WxWidgets version that is going to be used. |
87 |
# HAVE_WX - The list of WxWidgets components installed, if WANT_WX was |
87 |
# HAVE_WX - The list of WxWidgets components installed, if WANT_WX was |
88 |
# defined. The components will have version suffix if it was |
88 |
# defined. The components will have version suffix if it was |
89 |
# set to "yes"). |
89 |
# set to "yes". |
90 |
# |
90 |
# |
91 |
# Examples: |
91 |
# Examples: |
92 |
# - A port that needs WxWidgets 2.6 and contributed libraries with Unicode. |
92 |
# - A port that needs WxWidgets 2.6 and contributed libraries with Unicode. |
Lines 96-106
Link Here
|
96 |
# - A port that needs WxPython 2.4 for running. |
96 |
# - A port that needs WxPython 2.4 for running. |
97 |
# USE_PYTHON= yes |
97 |
# USE_PYTHON= yes |
98 |
# USE_WX= 2.4 |
98 |
# USE_WX= 2.4 |
99 |
# WX_COMPS= python_run |
99 |
# WX_COMPS= python |
100 |
# - A port that needs WxPython 2.4 or 2.6 for building. |
100 |
# - A port that needs WxPython 2.4 or 2.6 for building. |
101 |
# USE_PYTHON= yes |
101 |
# USE_PYTHON= yes |
102 |
# USE_WX= 2.4 2.6 |
102 |
# USE_WX= 2.4 2.6 |
103 |
# WX_COMPS= python_build |
103 |
# WX_COMPS= python:build |
104 |
# - A port that needs WxWidgets version 2.4 or higher and contributed |
104 |
# - A port that needs WxWidgets version 2.4 or higher and contributed |
105 |
# libraries. |
105 |
# libraries. |
106 |
# USE_WX= 2.4+ |
106 |
# USE_WX= 2.4+ |
Lines 108-118
Link Here
|
108 |
# - A port that needs WxWidgets of any version other than 2.4. |
108 |
# - A port that needs WxWidgets of any version other than 2.4. |
109 |
# USE_WX_NOT= 2.4 |
109 |
# USE_WX_NOT= 2.4 |
110 |
# |
110 |
# |
111 |
# Notes: |
|
|
112 |
# - The version is processed on each inclusion, so USE_WX, USE_WX_NOT and |
113 |
# WX_UNICODE can be modified before and after including bsd.port.pre.mk. |
114 |
# After determining the version and Unicode, WX_CONFIG will be defined. |
115 |
# |
116 |
|
111 |
|
117 |
WX_Include_MAINTAINER= alepulver@FreeBSD.org |
112 |
WX_Include_MAINTAINER= alepulver@FreeBSD.org |
118 |
|
113 |
|
Lines 129-148
Link Here
|
129 |
# _WX_DEP_TYPES_ALL - List of valid dependency types. |
124 |
# _WX_DEP_TYPES_ALL - List of valid dependency types. |
130 |
# _WX_VERS_ALL - List of supported versions. |
125 |
# _WX_VERS_ALL - List of supported versions. |
131 |
# _WX_VERS_UC_ALL - List of Unicode capable versions. |
126 |
# _WX_VERS_UC_ALL - List of Unicode capable versions. |
132 |
# _WX_CHANGE_VARS - List of variables allowed to change between pre and |
127 |
# _WX_VERS_LISTS - Reverse lists preference order. |
133 |
# post inclusions (related to version). |
|
|
134 |
# _WX_LISTS_ORDER - Reverse lists preference order. |
135 |
# _WX_AUTO_VARS - Variables defined sometimes that may have to be |
136 |
# redefined later. |
137 |
# |
128 |
# |
138 |
|
129 |
|
139 |
_WX_COMPS_ALL= wx contrib python mozilla svg |
130 |
_WX_COMPS_ALL= wx contrib python mozilla svg |
140 |
_WX_DEP_TYPES_ALL= build lib run |
131 |
_WX_DEP_TYPES_ALL= build lib run |
141 |
_WX_VERS_ALL= 2.4 2.6 |
132 |
_WX_VERS_ALL= 2.4 2.6 |
142 |
_WX_VERS_UC_ALL= 2.6 |
133 |
_WX_VERS_UC_ALL= 2.6 |
143 |
_WX_CHANGE_VARS= USE_WX USE_WX_NOT WX_UNICODE |
134 |
_WX_VERS_LISTS= WANT_WX_VER WITH_WX_VER |
144 |
_WX_LISTS_ORDER= _WX_VER_FINAL WANT_WX_VER WITH_WX_VER |
|
|
145 |
_WX_AUTO_VARS= USE_WX WX_CONFIG |
146 |
|
135 |
|
147 |
# |
136 |
# |
148 |
# Variables used to determine what is needed: |
137 |
# Variables used to determine what is needed: |
Lines 150-204
Link Here
|
150 |
# _WX_LIB_comp_ver - Name of the shared library (optional). |
139 |
# _WX_LIB_comp_ver - Name of the shared library (optional). |
151 |
# _WX_SHVER_comp_ver - Shared library version (optional). |
140 |
# _WX_SHVER_comp_ver - Shared library version (optional). |
152 |
# _WX_FILE_comp_ver - File installed by that component. |
141 |
# _WX_FILE_comp_ver - File installed by that component. |
|
|
142 |
# _WX_DEPTYPE_comp_ver - Default dependency type (optional). |
153 |
# |
143 |
# |
154 |
|
144 |
|
155 |
_WX_PORT_wx_2.4= wxgtk24 |
145 |
_WX_PORT_wx_2.4= x11-toolkits/wxgtk24 |
156 |
_WX_LIB_wx_2.4= wx_gtk2-2.4 |
146 |
_WX_LIB_wx_2.4= wx_gtk2-2.4 |
157 |
|
147 |
|
158 |
_WX_PORT_contrib_2.4= wxgtk24-contrib |
148 |
_WX_PORT_contrib_2.4= x11-toolkits/wxgtk24-contrib |
159 |
_WX_LIB_contrib_2.4= wx_gtk2_canvas-2.4 |
149 |
_WX_LIB_contrib_2.4= wx_gtk2_canvas-2.4 |
160 |
|
150 |
|
161 |
_WX_PORT_python_2.4= py-wxPython24 |
151 |
_WX_PORT_python_2.4= x11-toolkits/py-wxPython24 |
162 |
_WX_FILE_python_2.4= ${PYTHON_SITELIBDIR}/wx/__init__.py |
152 |
_WX_FILE_python_2.4= ${PYTHON_SITELIBDIR}/wx/__init__.py |
163 |
|
153 |
|
164 |
_WX_PORT_mozilla_2.4= wxmozilla |
154 |
_WX_PORT_mozilla_2.4= x11-toolkits/wxmozilla |
165 |
_WX_LIB_mozilla_2.4= wxmozilla_gtk2-2.4 |
155 |
_WX_LIB_mozilla_2.4= wxmozilla_gtk2-2.4 |
166 |
|
156 |
|
167 |
_WX_PORT_wx_2.6= wxgtk26${_WX_UCL} |
157 |
_WX_PORT_wx_2.6= x11-toolkits/wxgtk26${_WX_UCL} |
168 |
_WX_LIB_wx_2.6= wx_base${_WX_UC}-2.6 |
158 |
_WX_LIB_wx_2.6= wx_base${_WX_UC}-2.6 |
169 |
|
159 |
|
170 |
_WX_PORT_contrib_2.6= wxgtk26${_WX_UCL}-contrib |
160 |
_WX_PORT_contrib_2.6= x11-toolkits/wxgtk26${_WX_UCL}-contrib |
171 |
_WX_LIB_contrib_2.6= wx_gtk2${_WX_UC}_animate-2.6 |
161 |
_WX_LIB_contrib_2.6= wx_gtk2${_WX_UC}_animate-2.6 |
172 |
|
162 |
|
173 |
_WX_PORT_python_2.6= py-wxPython26${_WX_UCL} |
163 |
_WX_PORT_python_2.6= x11-toolkits/py-wxPython26${_WX_UCL} |
174 |
_WX_FILE_python_2.6= ${PYTHON_SITELIBDIR}/wx-2.6-gtk2${_WX_PYSUFX}/wx/__init__.py |
164 |
_WX_FILE_python_2.6= ${PYTHON_SITELIBDIR}/wx-2.6-gtk2${_WX_PYSUFX}/wx/__init__.py |
175 |
|
165 |
|
176 |
_WX_PORT_svg_2.6= wxsvg |
166 |
_WX_PORT_svg_2.6= x11-toolkits/wxsvg |
177 |
_WX_LIB_svg_2.6= wxsvg |
167 |
_WX_LIB_svg_2.6= wxsvg |
178 |
|
168 |
|
179 |
# Set _WX_SHVER_comp_ver to 0 and _WX_FILE_comp_ver for libs appropiately. |
169 |
# Set _WX_SHVER_comp_ver to 0 and _WX_FILE_comp_ver for libs appropiately. |
|
|
170 |
# Set _WX_DEPTYPE_comp_ver for "python" to "run", and others to "lib". |
180 |
|
171 |
|
181 |
.for comp in ${_WX_COMPS_ALL} |
172 |
.for comp in ${_WX_COMPS_ALL} |
|
|
173 |
_WX_COMP= ${comp} |
182 |
. for ver in ${_WX_VERS_ALL} |
174 |
. for ver in ${_WX_VERS_ALL} |
183 |
. if defined(_WX_LIB_${comp}_${ver}) |
175 |
. if defined(_WX_LIB_${comp}_${ver}) |
184 |
_WX_SHVER_${comp}_${ver}= 0 |
176 |
_WX_SHVER_${comp}_${ver}= 0 |
185 |
_WX_FILE_${comp}_${ver}= ${X11BASE}/lib/lib${_WX_LIB_${comp}_${ver}}.so.${_WX_SHVER_${comp}_${ver}} |
177 |
_WX_FILE_${comp}_${ver}= ${X11BASE}/lib/lib${_WX_LIB_${comp}_${ver}}.so.${_WX_SHVER_${comp}_${ver}} |
186 |
. endif |
178 |
. endif |
|
|
179 |
. if ${_WX_COMP} == "python" |
180 |
_WX_DEPTYPE_${comp}_${ver}= run |
181 |
. else |
182 |
_WX_DEPTYPE_${comp}_${ver}= lib |
183 |
. endif |
187 |
. endfor |
184 |
. endfor |
188 |
.endfor |
185 |
.endfor |
189 |
|
186 |
|
190 |
.endif # !_WX_Defined_Done |
187 |
.endif # !_WX_Defined_Done |
191 |
|
188 |
|
192 |
# |
189 |
# |
|
|
190 |
# Check if the user/port wants Unicode. |
191 |
# |
192 |
|
193 |
.if ${OSVERSION} >= 500000 && (!defined(WITHOUT_UNICODE) && \ |
194 |
(defined(WITH_UNICODE) || defined(WANT_UNICODE))) |
195 |
_WX_UC_AVAILABLE= yes |
196 |
.else |
197 |
.undef _WX_UC_AVAILABLE |
198 |
.endif |
199 |
|
200 |
# |
193 |
# Check for present components. |
201 |
# Check for present components. |
194 |
# |
202 |
# |
195 |
|
203 |
|
196 |
.if !defined(AFTERPORTMK) && defined(WANT_WX) |
204 |
.if defined(WANT_WX) && !defined(AFTERPORTMK) |
197 |
|
205 |
|
198 |
# Check if Unicode will be used. |
206 |
# Check if Unicode will be used. |
199 |
|
207 |
|
200 |
. for __WANT_WX in ${WANT_WX} |
208 |
. for __WANT_WX in ${WANT_WX} |
201 |
. if defined(WITH_UNICODE) && ${OSVERSION} >= 500000 && \ |
209 |
. if defined(_WX_UC_AVAILABLE) && \ |
202 |
(${_WX_VERS_UC_ALL:M${__WANT_WX}} != "" || ${WANT_WX:L} == "yes") |
210 |
(${_WX_VERS_UC_ALL:M${__WANT_WX}} != "" || ${WANT_WX:L} == "yes") |
203 |
_WX_WANT_UNICODE= yes |
211 |
_WX_WANT_UNICODE= yes |
204 |
. endif |
212 |
. endif |
Lines 250-296
Link Here
|
250 |
.endif # ! AFTERPORTMK && WANT_WX |
258 |
.endif # ! AFTERPORTMK && WANT_WX |
251 |
|
259 |
|
252 |
# |
260 |
# |
253 |
# Check if the version has changed between inclusions. |
|
|
254 |
# |
255 |
|
256 |
.if defined(_WX_Version_Done) |
257 |
. undef _WX_HAS_CHANGED |
258 |
|
259 |
. for var in ${_WX_CHANGE_VARS} |
260 |
. if (defined(${var}) && !defined(_WX_OLD_${var})) || \ |
261 |
(!defined(${var}) && defined(_WX_OLD_${var})) || \ |
262 |
(defined(_WX_OLD_${var}) && ${_WX_OLD_${var}} != ${${var}}) |
263 |
_WX_HAS_CHANGED= yes |
264 |
. endif |
265 |
. endfor |
266 |
.endif # _WX_Version_Done |
267 |
|
268 |
# |
269 |
# Select WxWidgets version. |
261 |
# Select WxWidgets version. |
270 |
# |
262 |
# |
271 |
|
263 |
|
272 |
.if (!defined(_WX_Version_Done) || defined(_WX_HAS_CHANGED)) && \ |
264 |
.if !defined(_WX_Version_Done) && (!defined(BEFOREPORTMK) || \ |
273 |
(defined(USE_WX) || defined(USE_WX_NOT)) |
265 |
(defined(WX_PREMK) && !defined(AFTERPORTMK) && \ |
|
|
266 |
(defined(USE_WX) || defined(USE_WX_NOT)))) |
274 |
_WX_Version_Done= yes |
267 |
_WX_Version_Done= yes |
275 |
|
268 |
|
276 |
# Handle automatic variables. |
|
|
277 |
|
278 |
.for var in ${_WX_AUTO_VARS} |
279 |
. if defined(_WX_${var}_DEFINED) |
280 |
. undef ${var} |
281 |
. endif |
282 |
. if !defined(${var}) |
283 |
_WX_${var}_DEFINED= yes |
284 |
. endif |
285 |
.endfor |
286 |
|
287 |
# Reset old variable values. |
288 |
|
289 |
.if defined(_WX_HAS_CHANGED) |
290 |
. undef _WX_VER |
291 |
. undef _WX_IGNORE |
292 |
.endif |
293 |
|
294 |
# Set defaults (if one isn't present). |
269 |
# Set defaults (if one isn't present). |
295 |
|
270 |
|
296 |
USE_WX?= ${_WX_VERS_ALL} |
271 |
USE_WX?= ${_WX_VERS_ALL} |
Lines 349-355
Link Here
|
349 |
# Check for a null version. |
324 |
# Check for a null version. |
350 |
|
325 |
|
351 |
.if empty(_WX_VER_MERGED) |
326 |
.if empty(_WX_VER_MERGED) |
352 |
_WX_IGNORE?= selected a null or invalid WxWidgets version |
327 |
IGNORE?= selected a null or invalid WxWidgets version |
353 |
.endif |
328 |
.endif |
354 |
|
329 |
|
355 |
# |
330 |
# |
Lines 365-373
Link Here
|
365 |
. endif |
340 |
. endif |
366 |
.endfor |
341 |
.endfor |
367 |
|
342 |
|
368 |
# Requested by the user (optional). |
343 |
# Requested by the user or port (optional). |
369 |
|
344 |
|
370 |
.if defined(WITH_UNICODE) && ${OSVERSION} >= 500000 |
345 |
.if defined(_WX_UC_AVAILABLE) |
371 |
. for ver in ${_WX_VER_UC} |
346 |
. for ver in ${_WX_VER_UC} |
372 |
. if ${_WX_VERS_UC_ALL:M${ver}} != "" |
347 |
. if ${_WX_VERS_UC_ALL:M${ver}} != "" |
373 |
WX_UNICODE= yes |
348 |
WX_UNICODE= yes |
Lines 379-387
Link Here
|
379 |
|
354 |
|
380 |
.if defined(WX_UNICODE) |
355 |
.if defined(WX_UNICODE) |
381 |
. if ${OSVERSION} < 500000 |
356 |
. if ${OSVERSION} < 500000 |
382 |
_WX_IGNORE?= requires FreeBSD versions >= 5.X (because of Unicode) |
357 |
IGNORE?= requires FreeBSD versions >= 5.X (because of Unicode) |
383 |
. elif empty(_WX_VER_UC) |
358 |
. elif empty(_WX_VER_UC) |
384 |
_WX_IGNORE?= selected a WxWidgets version which does not support Unicode: ${_WX_VER_MERGED} |
359 |
IGNORE?= selected a WxWidgets version which does not support Unicode: ${_WX_VER_MERGED} |
385 |
. endif |
360 |
. endif |
386 |
.endif |
361 |
.endif |
387 |
|
362 |
|
Lines 410-416
Link Here
|
410 |
# 3) _WX_VER_FINAL - Available versions. |
385 |
# 3) _WX_VER_FINAL - Available versions. |
411 |
# |
386 |
# |
412 |
|
387 |
|
413 |
.for list in ${_WX_LISTS_ORDER} |
388 |
.for list in _WX_VER_FINAL ${_WX_VERS_LISTS} |
414 |
. if defined(${list}) |
389 |
. if defined(${list}) |
415 |
. for ver in ${${list}} |
390 |
. for ver in ${${list}} |
416 |
. if ${_WX_VER_FINAL:M${ver}} != "" |
391 |
. if ${_WX_VER_FINAL:M${ver}} != "" |
Lines 427-452
Link Here
|
427 |
WX_VERSION= ${_WX_VER} |
402 |
WX_VERSION= ${_WX_VER} |
428 |
WX_CONFIG?= ${X11BASE}/bin/wxgtk2${_WX_UC}-${_WX_VER}-config |
403 |
WX_CONFIG?= ${X11BASE}/bin/wxgtk2${_WX_UC}-${_WX_VER}-config |
429 |
|
404 |
|
430 |
# Define old values for detecting changes. |
405 |
.endif # !_WX_Version_Done && (!BEFOREPORTMK || \ |
431 |
|
406 |
# (WX_PREMK && !AFTERPORTMK && (USE_WX || USE_WX_NOT))) |
432 |
.for var in ${_WX_CHANGE_VARS} |
|
|
433 |
. if defined(${var}) |
434 |
_WX_OLD_${var}:= ${${var}} |
435 |
. endif |
436 |
.endfor |
437 |
|
438 |
.endif # ! _WX_Version_Done || _WX_HAS_CHANGED |
439 |
|
407 |
|
440 |
# |
408 |
# |
441 |
# Process components list and add dependencies, variables, etc. |
409 |
# Process components list and add dependencies, variables, etc. |
442 |
# |
410 |
# |
443 |
|
411 |
|
444 |
.if !defined(BEFOREPORTMK) |
412 |
.if !defined(BEFOREPORTMK) |
445 |
# Error check. |
|
|
446 |
|
447 |
.if defined(_WX_IGNORE) |
448 |
IGNORE?= ${_WX_IGNORE} |
449 |
.endif |
450 |
|
413 |
|
451 |
# |
414 |
# |
452 |
# Component parsing. |
415 |
# Component parsing. |
Lines 466-475
Link Here
|
466 |
|
429 |
|
467 |
_WX_COMPS_FINAL= # |
430 |
_WX_COMPS_FINAL= # |
468 |
.for comp in ${WX_COMPS} |
431 |
.for comp in ${WX_COMPS} |
469 |
_WX_COMP= ${comp:C/_([[:alpha:]]+)$//} |
432 |
_WX_COMP= ${comp:C/:([[:alpha:]]+)$//} |
470 |
_WX_DEP_TYPE= ${comp:C/.+_([[:alpha:]]+)$/\1/} |
|
|
471 |
. if ${_WX_COMP} == ${comp} |
433 |
. if ${_WX_COMP} == ${comp} |
472 |
_WX_DEP_TYPE= lib |
434 |
_WX_DEP_TYPE= ${_WX_DEPTYPE_${comp}_${_WX_VER}} |
|
|
435 |
. else |
436 |
_WX_DEP_TYPE= ${comp:C/.+:([[:alpha:]]+)$/\1/} |
473 |
. endif |
437 |
. endif |
474 |
_WX_COMP_NEW= ${_WX_COMP}_${_WX_DEP_TYPE} |
438 |
_WX_COMP_NEW= ${_WX_COMP}_${_WX_DEP_TYPE} |
475 |
. for __WX_COMP in ${_WX_COMP} |
439 |
. for __WX_COMP in ${_WX_COMP} |
Lines 501-516
Link Here
|
501 |
.for comp in ${_WX_COMPS_FINAL} |
465 |
.for comp in ${_WX_COMPS_FINAL} |
502 |
_WX_COMP= ${comp:C/_([[:alpha:]]+)$//} |
466 |
_WX_COMP= ${comp:C/_([[:alpha:]]+)$//} |
503 |
_WX_DEP_TYPE= ${comp:C/.+_([[:alpha:]]+)$/\1/} |
467 |
_WX_DEP_TYPE= ${comp:C/.+_([[:alpha:]]+)$/\1/} |
504 |
. if ${_WX_DEP_TYPE} == "lib" |
468 |
# XXX Need a .for loop here so the variable is expanded before the assignment. |
505 |
. if defined(_WX_LIB_${_WX_COMP}_${_WX_VER}) |
469 |
. for comp_part in ${_WX_COMP} |
506 |
LIB_DEPENDS+= ${_WX_LIB_${_WX_COMP}_${_WX_VER}}:${PORTSDIR}/x11-toolkits/${_WX_PORT_${_WX_COMP}_${_WX_VER}} |
470 |
. if ${_WX_DEP_TYPE} == "lib" |
|
|
471 |
. if defined(_WX_LIB_${_WX_COMP}_${_WX_VER}) |
472 |
LIB_DEPENDS+= ${_WX_LIB_${comp_part}_${_WX_VER}}:${PORTSDIR}/${_WX_PORT_${comp_part}_${_WX_VER}} |
473 |
. else |
474 |
BUILD_DEPENDS+= ${_WX_FILE_${comp_part}_${_WX_VER}}:${PORTSDIR}/${_WX_PORT_${comp_part}_${_WX_VER}} |
475 |
RUN_DEPENDS+= ${_WX_FILE_${comp_part}_${_WX_VER}}:${PORTSDIR}/${_WX_PORT_${comp_part}_${_WX_VER}} |
476 |
. endif |
507 |
. else |
477 |
. else |
508 |
BUILD_DEPENDS+= ${_WX_FILE_${_WX_COMP}_${_WX_VER}}:${PORTSDIR}/x11-toolkits/${_WX_PORT_${_WX_COMP}_${_WX_VER}} |
478 |
${_WX_DEP_TYPE:U}_DEPENDS+= ${_WX_FILE_${comp_part}_${_WX_VER}}:${PORTSDIR}/${_WX_PORT_${comp_part}_${_WX_VER}} |
509 |
RUN_DEPENDS+= ${_WX_FILE_${_WX_COMP}_${_WX_VER}}:${PORTSDIR}/x11-toolkits/${_WX_PORT_${_WX_COMP}_${_WX_VER}} |
|
|
510 |
. endif |
479 |
. endif |
511 |
. else |
480 |
. endfor |
512 |
${_WX_DEP_TYPE:U}_DEPENDS+= ${_WX_FILE_${_WX_COMP}_${_WX_VER}}:${PORTSDIR}/x11-toolkits/${_WX_PORT_${_WX_COMP}_${_WX_VER}} |
|
|
513 |
. endif |
514 |
.endfor |
481 |
.endfor |
515 |
|
482 |
|
516 |
# |
483 |
# |