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.

38 lines
1.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../pawn/pawn.conf
  5. # Copyright (C) 2008 - 2011 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE 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. # --- SDE-COPYRIGHT-NOTE-END ---
  15. srcdir="source/compiler"
  16. nocvsinsrcdir=0
  17. makeinstopt=
  18. pkg_pawn_postmake() {
  19. local majorver="$(echo $ver | cut -d . -f1)"
  20. local minorver="$(echo $ver | cut -d . -f2)"
  21. # install binaries
  22. cp -avp pawn{cc,disasm} $root$bindir/
  23. # install libpawnc
  24. mv -v libpawnc.so libpawnc.so.$ver
  25. ln -svf libpawnc.so.$ver libpawnc.so.$majorver.$minorver
  26. ln -svf libpawnc.so.$majorver.$minorver libpawnc.so.$majorver
  27. ln -svf libpawnc.so.$majorver libpawnc.so
  28. cp -avp libpawnc.so* $root$libdir/
  29. # install include files
  30. mkdir -p $root$includedir/$pkg
  31. cp -avp ../../../include/*.inc $root$includedir/$pkg
  32. }
  33. hook_add postmake 5 "pkg_pawn_postmake"