OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.7 KiB

  1. #!/bin/sh
  2. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. #
  5. # T2 SDE: package/.../clip/clip.conf
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2004 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. if [ $prefix_auto = 1 ] ; then
  17. prefix="opt/clip"
  18. set_confopt
  19. fi
  20. createdocs=0
  21. export CLIPROOT=$root/$prefix
  22. export BINDIR=$CLIPROOT/bin
  23. clip_examples() {
  24. cd $builddir/$xsrcdir
  25. # install examples
  26. mkdir -p $docdir/example/clip/
  27. cp -dRvf example/* $docdir/example/clip/
  28. # and tools
  29. mkdir -p $docdir/example/prg/
  30. cp -dRvf prg/* $docdir/example/prg/
  31. # profile.d
  32. echo "export CLIPROOT=$CLIPROOT" > $root/etc/profile.d/clip
  33. }
  34. clip_patch() {
  35. local f
  36. # they release a patch.tgz to overwrite files of last release
  37. # for 'updating' to last stable build.
  38. if f="`match_source_file -p $1`"; then
  39. echo "Applying $f to CLIP."
  40. ( cd ..; \
  41. ln -sv ${xsrcdir##*/} $2; \
  42. tar -v $taropt $f \
  43. )
  44. fi
  45. }
  46. hook_add preconf 9 'cd clip'
  47. # patch
  48. hook_add prepatch 5 'clip_patch clip-patch- clip-prg; \
  49. clip_patch clip-doc- clip-doc'
  50. # build & install cliplibs
  51. hook_add postmake 5 'eval $MAKE -C ../cliplibs $makeopt all install'
  52. # build & install docs
  53. hook_add postmake 6 'eval $MAKE -C ../doc $makeopt txt html install-txt install-html'
  54. # install examples
  55. hook_add postdoc 5 'clip_examples'