1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/bacon_runtime/bacon_runtime.conf
3 # Copyright (C) 2021 - 2022 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 function build_bacon_runtime {
14 bacon -d temp1 -f hug.bac -o '-fPIC'
15 cp -a -f temp1/hug.so $root/usr/lib/
16 mkdir -p $root/usr/share/BaCon
17 cp -a -f bacon.lang $root/usr/share/BaCon/
18 cp -a -f bacon.vim $root/usr/share/BaCon/
19 cp -a -f gdk.bac $root/usr/share/BaCon/
20 cp -a -f gtk.bac $root/usr/share/BaCon/
21 cp -a -f hug.bac $root/usr/share/BaCon/
22 sed -i -e 's%"\./hug\.so"%"/usr/lib/hug.so"%' hug_imports.bac
23 cp -a -f hug_imports.bac $root/usr/share/BaCon/
24 mkdir -p $root/usr/share/doc/BaCon
25 cp -a -f CHANGES $root/usr/share/doc/BaCon/
26 cp -a -f documentation.html $root/usr/share/doc/BaCon/
27 cp -a -f gtk.txt $root/usr/share/doc/BaCon/
28 cp -a -f hugdoc.html $root/usr/share/doc/BaCon/
32 hook_add postmake 5 "build_bacon_runtime"