Lines 28-33
Link Here
|
28 |
ELT_PATCH_DIR="${PORTDIR}/eclass/ELT-patches" |
28 |
ELT_PATCH_DIR="${PORTDIR}/eclass/ELT-patches" |
29 |
ELT_APPLIED_PATCHES= |
29 |
ELT_APPLIED_PATCHES= |
30 |
|
30 |
|
|
|
31 |
# LIBTOOL_CMD_SEP is a Mac OS X extension, see glibtool(1) for detail |
32 |
export _S_=${LIBTOOL_CMD_SEP-\~} |
33 |
|
31 |
# |
34 |
# |
32 |
# Returns all the directories containing ltmain.sh |
35 |
# Returns all the directories containing ltmain.sh |
33 |
# |
36 |
# |
Lines 161-166
Link Here
|
161 |
esac |
164 |
esac |
162 |
done |
165 |
done |
163 |
|
166 |
|
|
|
167 |
if use ppc-macos ; then |
168 |
glibtoolize --copy --force |
169 |
darwintoolize |
170 |
fi |
171 |
|
164 |
for x in ${my_dirlist} |
172 |
for x in ${my_dirlist} |
165 |
do |
173 |
do |
166 |
local tmp="$(echo "${x}" | sed -e "s|${S}||")" |
174 |
local tmp="$(echo "${x}" | sed -e "s|${S}||")" |
Lines 299-301
Link Here
|
299 |
esac |
307 |
esac |
300 |
done |
308 |
done |
301 |
} |
309 |
} |
|
|
310 |
|
311 |
darwintoolize() { |
312 |
local targets="" |
313 |
local x |
314 |
|
315 |
if [ -z "$@" ] ; then |
316 |
targets="$(find ${S} -name ltmain.sh -o -name ltconfig)" |
317 |
fi |
318 |
|
319 |
einfo "Applying Darwin/libtool patches ..." |
320 |
for x in ${targets} ; do |
321 |
[ ! -s "${x}" ] && continue |
322 |
case $(basename "${x}") in |
323 |
ltmain.sh|ltconfig) |
324 |
local ver="$(grep '^VERSION=' ${x})" |
325 |
ver="${ver/VERSION=}" |
326 |
[ "${ver:0:3}" == "1.4" ] && ver="1.3" # 1.4 and 1.3 are compat |
327 |
|
328 |
ebegin " Fixing \${S}${x/${S}}" |
329 |
patch -p0 "${x}" "${ELT_PATCH_DIR}/darwin/$(basename "${x}")-${ver:0:3}.patch" > /dev/null |
330 |
eend $? "PLEASE CHECK ${x}" |
331 |
;; |
332 |
esac |
333 |
done |
334 |
} |