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