source: project/release/3/iconv/trunk/iconv.setup @ 12533

Last change on this file since 12533 was 12533, checked in by azul, 11 years ago

Importing svnwiki extensions.

File size: 748 bytes
Line 
1;; -*- scheme -*-
2
3(define libiconv
4  (if (or (eq? 'macosx (software-version))
5          (eq? 'unknown (software-version)))
6    "-liconv"
7    ""))
8
9(define has-exports? (string>=? (chicken-version) "2.310"))
10
11(define (dynld-name fn) 
12  (make-pathname #f fn ##sys#load-dynamic-extension))   
13
14(compile  -O2 -d0 -s 
15         ,@(if has-exports? '(-check-imports -emit-exports iconv.exports) '())
16         iconv.scm)
17
18(install-extension 'iconv
19                   `(,(dynld-name "iconv")
20                     ,@(if has-exports? '("iconv.exports") (list)))
21                   `((version ,(if (file-exists? "version") (with-input-from-file "version" read) "unknown"))
22                     ,@(if has-exports? `((exports "iconv.exports")) (list))
23                     (documentation "iconv.html")))
Note: See TracBrowser for help on using the repository browser.