[MacPorts] #40203: use FreeBSD patch-use-tkInt approach to fix tcltk 8.6 support
MacPorts
noreply at macports.org
Thu Sep 5 09:51:25 PDT 2013
#40203: use FreeBSD patch-use-tkInt approach to fix tcltk 8.6 support
------------------------+----------------------
Reporter: howarth@… | Owner: markd@…
Type: update | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: haspatch
Port: blt |
------------------------+----------------------
Comment (by howarth@…):
Both fink and fedora use a different approach which in fink looks like...
[[BR]]
for pkg in tcl tk; do[[BR]]
mkdir -p %i/include/tcltk-
private/${pkg}${MAJORVER}/{generic,unix}[[BR]]
cp ${pkg}%v/generic/*.h %i/include/tcltk-
private/${pkg}${MAJORVER}/generic[[BR]]
cp ${pkg}%v/unix/*.h %i/include/tcltk-
private/${pkg}${MAJORVER}/unix[[BR]]
[[BR]]
pushd %i/include[[BR]]
for hdr in *.h ; do[[BR]]
if [ -f tcltk-
private/${pkg}${MAJORVER}/generic/${hdr} ]; then[[BR]]
ln -sf ../../../${hdr} tcltk-
private/${pkg}${MAJORVER}/generic[[BR]]
fi[[BR]]
done[[BR]]
popd[[BR]]
[[BR]]
perl -pi -e "s,%b/${pkg}%v/unix,%p/lib,; s,%b,%p/include
/tcltk-private,; s,/${pkg}%v,/${pkg}${MAJORVER},g"
%i/lib/${pkg}Config.sh[[BR]]
done[[BR]]
Note that only the generic headers get symlinked outside of the private
header subdirectory
--
Ticket URL: <https://trac.macports.org/ticket/40203#comment:7>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list