1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/clip/clip.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2004 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 if [ $prefix_auto = 1 ]; then
19 export CLIPROOT=$root/$prefix
20 export BINDIR=$CLIPROOT/bin
26 mkdir -p $docdir/example/clip/
27 cp -dRvf example/* $docdir/example/clip/
30 mkdir -p $docdir/example/prg/
31 cp -dRvf prg/* $docdir/example/prg/
34 echo "export CLIPROOT=$CLIPROOT" > $root/etc/profile.d/clip
39 # they release a patch.tgz to overwrite files of last release
40 # for 'updating' to last stable build.
42 if f="`match_source_file -p $1`"; then
43 echo "Applying $f to CLIP."
45 ln -sv ${xsrcdir##*/} $2; \
51 hook_add preconf 9 'cd clip'
54 hook_add prepatch 5 'clip_patch clip-patch- clip-prg; \
55 clip_patch clip-doc- clip-doc'
57 # build & install cliplibs
58 hook_add postmake 5 'eval $MAKE -C ../cliplibs $makeopt all install'
60 # build & install docs
61 hook_add postmake 6 'eval $MAKE -C ../doc $makeopt txt html install-txt install-html'
64 hook_add postdoc 5 'clip_examples'