Changes between Initial Version and Version 1 of Ticket #40203, comment 7


Ignore:
Timestamp:
May 2, 2014, 9:55:53 AM (11 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #40203, comment 7

    initial v1  
    11Both fink and fedora use a different approach which in fink looks like...
    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]]
    182
     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}}}
    1920
    2021Note that only the generic headers get symlinked outside of the private header subdirectory