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