source: project/release/4/iconv/trunk/iconv.setup @ 25296

Last change on this file since 25296 was 25296, checked in by Christian Kellermann, 9 years ago

iconv: add cflags and lflags for openbsd

File size: 637 bytes
Line 
1;; -*- scheme -*-
2
3(define libiconv
4  (if (or (eq? 'macosx (software-version))
5          (eq? 'openbsd (software-version))
6          (eq? 'unknown (software-version)))
7      '(-liconv)
8      '()))
9
10(define linker-flags
11  (if (eq? 'openbsd (software-version))
12      '(-L/usr/local/lib)
13      '()))
14
15(define compiler-flags
16  (if (eq? 'openbsd (software-version))
17      '(-I/usr/local/include)
18      '()))
19
20(compile -s -O2 -d0 -j iconv iconv.scm ,@compiler-flags ,@linker-flags ,@libiconv)
21(compile -s -O2 -d0 iconv.import.scm)
22
23(install-extension
24 'iconv
25 '("iconv.so" "iconv.import.so")
26 '((version 1.8)
27   (documentation "iconv.html")))
Note: See TracBrowser for help on using the repository browser.