@@ -5,11 +5,11 @@ using Compat; import Compat.String
55
66tcl = library_dependency (" tcl" ,aliases= [" libtcl8.6" ," tcl86g" ," tcl86t" ," libtcl" ," libtcl8.6.so.0" ," libtcl8.5" ," libtcl8.5.so.0" ," tcl85" ])
77tk = library_dependency (" tk" ,aliases= [" libtk8.6" ," libtk" ," libtk8.6.so.0" ," libtk8.5" ," libtk8.5.so.0" ," tk85" ," tk86" ," tk86t" ], depends= [tcl], validate = function (p,h)
8- @osx_only return @compat Libdl. dlsym_e (h,:TkMacOSXGetRootControl ) != C_NULL
8+ is_apple () && ( return @compat Libdl. dlsym_e (h,:TkMacOSXGetRootControl ) != C_NULL )
99 return true
1010end )
1111
12- @windows_only begin
12+ if is_windows ()
1313 using WinRPM
1414 provides (WinRPM. RPM," tk" ,tk,os = :Windows )
1515 provides (WinRPM. RPM," tcl" ,tcl,os = :Windows )
@@ -21,12 +21,12 @@ provides(AptGet,"tk8.5",tk)
2121provides (Sources,URI (" http://prdownloads.sourceforge.net/tcl/tcl8.6.0-src.tar.gz" ),tcl,unpacked_dir = " tcl8.6.0" )
2222provides (Sources,URI (" http://prdownloads.sourceforge.net/tcl/tk8.6.0-src.tar.gz" ),tk,unpacked_dir = " tk8.6.0" )
2323
24- is64bit = WORD_SIZE == 64
24+ is64bit = @compat Sys . WORD_SIZE == 64
2525
2626provides (BuildProcess,Autotools (configure_subdir = " unix" , configure_options = [is64bit?" --enable-64bit" :" --disable-64bit" ]),tcl, os = :Unix )
2727provides (BuildProcess,Autotools (configure_subdir = " unix" , configure_options = [is64bit?" --enable-64bit" :" --disable-64bit" ]),tk, os = :Unix )
2828
29- if WORD_SIZE == 64
29+ if @compat Sys . WORD_SIZE == 64
3030 # Unfortunately the mingw-built tc segfaults since some function signatures
3131 # are different between VC and mingw. This is fixed on tcl trunk. For now,
3232 # just use VC to build tcl (Note requlres Visual Studio Express in the PATH)
0 commit comments