source: project/release/4/imlib2/trunk/imlib2.setup @ 12156

Last change on this file since 12156 was 12156, checked in by sjamaan, 13 years ago

Port imlib2 to chicken 4

File size: 636 bytes
Line 
1#+(and unix (not macosx))
2(define RPATH-FLAGS "-Wl,-R/usr/X11R6/lib")
3#+macosx
4(define RPATH-FLAGS "")
5
6(define with-x?
7  `(test-compile "int main(){ return 0; }" #:ldflags "-L/usr/X11R6/lib ,RPATH-FLAGS -lX11"))
8
9(if with-x?
10  (compile -feature with-x -s -O2 -d0
11    imlib2.scm
12    -I/usr/X11R6/include
13    -lImlib2 "`freetype-config --libs`" -L/usr/X11R6/lib ,RPATH-FLAGS -lX11 -lXext
14    -j imlib2)
15  (compile -s -O2 -d0
16    imlib2.scm -C -DX_DISPLAY_MISSING
17    -j imlib2))
18
19(compile -s -O2 imlib2.import.scm)
20
21(install-extension 'imlib2
22  '("imlib2.so" "imlib2.import.so")
23  `((version "0.6")
24    (documentation "imlib2.html") ) )
Note: See TracBrowser for help on using the repository browser.