Changeset 12533 in project for release/3/iconv/trunk/iconv.setup


Ignore:
Timestamp:
11/16/08 19:13:36 (11 years ago)
Author:
azul
Message:

Importing svnwiki extensions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/3/iconv/trunk/iconv.setup

    r6315 r12533  
     1;; -*- scheme -*-
     2
    13(define libiconv
    24  (if (or (eq? 'macosx (software-version))
     
    57    ""))
    68
    7 (compile -s -O2 -d1 iconv.scm ,libiconv)
    8 (install-extension
    9  'iconv
    10  "iconv.so"
    11  '((version 1.5)
    12    (documentation "iconv.html")))
     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 TracChangeset for help on using the changeset viewer.