* move libffi to base/ Category
[t2sde.git] / package / develop / g-wrap / g-wrap.conf
blobab37f0b0909349f5c33b109bfc0736a29349f5d0
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3
4 # T2 SDE: package/*/g-wrap/g-wrap.conf
5 # Copyright (C) 2004 - 2007 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
7
8 # More information can be found in the files COPYING and README.
9
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- T2-COPYRIGHT-NOTE-END ---
16 gwrap_slib() {
17         local guiledatadir=$root/usr/share/guile
19         # we need the slib scheme package for g-wrap
20         tar $taropt `match_source_file -p slib`
21         mkdir -p $guiledatadir/slib
23         cd slib
24         sed -i "s,/usr/local/lib/slib,$guiledatadir/slib," Template.scm
25         install -m 644 *.scm $guiledatadir/slib/
26         install -m 644 guile.init $guiledatadir/slib/
27         cd ..
28         rm -rf slib
30         # slib wants to write /usr/share/guile/slibcat on first use
31         # this needs root privs, so we do it here once
32         guile -c "(use-modules (ice-9 slib)) (require 'new-catalog)"
34 hook_add preconf 5 "gwrap_slib"
36 var_append extraconfopt ' ' "--with-libffi-prefix=$root/`pkgprefix gcc`"