|
|
|
@ -20,32 +20,8 @@ |
|
|
|
# |
|
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
# If this is enabled, the resulting python binary will not run without X11 |
|
|
|
# and Tcl/Tk. So there is no _tkinter module on default ... |
|
|
|
# |
|
|
|
enable_tcltk() { |
|
|
|
if [ -f /usr/include/tcl.h -a -f /usr/include/tk.h ] ; then |
|
|
|
echo "Found tcl.h and tk.h: enabling tcltk support" |
|
|
|
{ echo "_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \\" ; |
|
|
|
echo " -L/usr/X11R6/lib -I/usr/X11R6/include \\" ; |
|
|
|
echo " -ltk8.4 -ltcl8.4 -lX11" ; |
|
|
|
} >> Modules/Setup.local |
|
|
|
export LIBS="$LIBS -ltk8.4 -ltcl8.4 -L/usr/X11R6/lib -lX11" |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|
make_py_profile() { |
|
|
|
echo "export LIBPYTHON='-lpython2.5$LIBS'" > $root/etc/profile.d/python |
|
|
|
} |
|
|
|
|
|
|
|
export LIBS= |
|
|
|
runpysetup=0 |
|
|
|
preconf="enable_tcltk" |
|
|
|
postmake="make_py_profile" |
|
|
|
confopt="$confopt --with-threads --enable-shared" |
|
|
|
runpysetup="0" |
|
|
|
|
|
|
|
# We can savely ignore this dependencies. |
|
|
|
var_append flistrfilter "|" ".*: /usr/lib/python.*/site-packages/.*" |
|
|
|
|
|
|
|
versionhotfix 2.5.1 |
|
|
|
|