2 | | [[BR]] |
3 | | for pkg in tcl tk; do[[BR]] |
4 | | mkdir -p %i/include/tcltk-private/${pkg}${MAJORVER}/{generic,unix}[[BR]] |
5 | | cp ${pkg}%v/generic/*.h %i/include/tcltk-private/${pkg}${MAJORVER}/generic[[BR]] |
6 | | cp ${pkg}%v/unix/*.h %i/include/tcltk-private/${pkg}${MAJORVER}/unix[[BR]] |
7 | | [[BR]] |
8 | | pushd %i/include[[BR]] |
9 | | for hdr in *.h ; do[[BR]] |
10 | | if [ -f tcltk-private/${pkg}${MAJORVER}/generic/${hdr} ]; then[[BR]] |
11 | | ln -sf ../../../${hdr} tcltk-private/${pkg}${MAJORVER}/generic[[BR]] |
12 | | fi[[BR]] |
13 | | done[[BR]] |
14 | | popd[[BR]] |
15 | | [[BR]] |
16 | | 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]] |
17 | | done[[BR]] |
| 3 | {{{ |
| 4 | for pkg in tcl tk; do |
| 5 | mkdir -p %i/include/tcltk-private/${pkg}${MAJORVER}/{generic,unix} |
| 6 | cp ${pkg}%v/generic/*.h %i/include/tcltk-private/${pkg}${MAJORVER}/generic |
| 7 | cp ${pkg}%v/unix/*.h %i/include/tcltk-private/${pkg}${MAJORVER}/unix |
| 8 | |
| 9 | pushd %i/include |
| 10 | for hdr in *.h ; do |
| 11 | if [ -f tcltk-private/${pkg}${MAJORVER}/generic/${hdr} ]; then |
| 12 | ln -sf ../../../${hdr} tcltk-private/${pkg}${MAJORVER}/generic |
| 13 | fi |
| 14 | done |
| 15 | popd |
| 16 | |
| 17 | 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 |
| 18 | done |
| 19 | }}} |