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

Last change on this file since 15550 was 15550, checked in by sjamaan, 10 years ago

Remove X-specific features

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