@@ -25,8 +25,8 @@ package("fltk")
2525 add_configs (" fluid" , {description = " Build fluid" , default = false , type = " boolean" })
2626 add_configs (" forms" , {description = " Build forms" , default = false , type = " boolean" })
2727
28- if is_plat (" windows" , " mingw" ) then
29- add_syslinks (" ws2_32" , " comctl32" , " gdi32" , " oleaut32" , " ole32" , " uuid" , " shell32" , " advapi32" , " comdlg32" , " winspool" , " user32" , " kernel32" , " odbc32" )
28+ if is_plat (" windows" , " mingw" , " cygwin " , " msys " ) then
29+ add_syslinks (" ws2_32" , " comctl32" , " gdi32" , " oleaut32" , " ole32" , " uuid" , " shell32" , " advapi32" , " comdlg32" , " winspool" , " user32" , " kernel32" , " odbc32" , " gdiplus " )
3030 elseif is_plat (" macosx" ) then
3131 add_frameworks (" Cocoa" )
3232 elseif is_plat (" android" ) then
@@ -66,10 +66,12 @@ package("fltk")
6666 end
6767 end )
6868
69- on_install (" windows|x86" , " windows|x64" , " linux" , " macosx" , " mingw" , " msys" , function (package )
69+ on_install (" windows|x86" , " windows|x64" , " linux" , " macosx" , " mingw" , " cygwin " , " msys" , function (package )
7070 for _ , file in ipairs (os.files (" **.cxx" )) do
7171 io .replace (file , " <libpng/png.h>" , " <png.h>" , {plain = true })
7272 end
73+ io .replace (" CMake/options.cmake" , " list(APPEND FLTK_IMAGE_LIBRARIES ${JPEG_LIBRARIES})" ,
74+ " list(APPEND FLTK_IMAGE_LIBRARIES ${JPEG_LIBRARIES})\n include_directories(${JPEG_INCLUDE_DIRS})" , {plain = true })
7375
7476 local configs = {
7577 " -DFLTK_BUILD_TEST=OFF" ,
0 commit comments