adjust libpng and linjpeg references for FreeBSD

This commit is contained in:
Matthew Flatt 2010-10-21 15:13:31 -06:00
parent 003ba8439a
commit df2626ad44
2 changed files with 6 additions and 2 deletions

View File

@ -10,7 +10,7 @@
(define jpeg-lib
(case (system-type)
[(macosx) (ffi-lib "libjpeg.62")]
[(unix) (ffi-lib "libjpeg" '("62"))]
[(unix) (ffi-lib "libjpeg" '("62" ""))]
[(windows) (ffi-lib "libjpeg-7.dll")]))
(define JPEG_LIB_VERSION

View File

@ -10,7 +10,11 @@
(define png-lib
(case (system-type)
[(macosx) (ffi-lib "libpng14" '("14" #f))]
[(unix) (ffi-lib "libpng12" '("0"))]
[(unix)
(case (string->symbol (path->string (system-library-subpath #f)))
[(i386-freebsd) (ffi-lib "libpng")]
[else
(ffi-lib "libpng12" '("0" ""))])]
[(windows)
(ffi-lib "zlib1.dll")
(ffi-lib "libpng14-14.dll")]))