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.

50 lines
1.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../torcs/torcs.conf
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  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. bindir=$root/$SDECFG_PKG_GAMES_BINDIR
  16. datadir=$root/$SDECFG_PKG_GAMES_DATADIR
  17. autoextract=0
  18. runconf=1
  19. torcs_preconf()
  20. {
  21. for x in `match_source_file -p src`; do
  22. echo "Extracting $x ..."
  23. tar $taropt $x
  24. done
  25. cd torcs-$ver
  26. apply_patchfiles
  27. # delete lingering x86 object files ...
  28. find -name '*.o' | xargs rm -fv
  29. }
  30. torcs_pi()
  31. {
  32. cd $datadir/games/torcs/
  33. for x in `match_source_file -p data`; do
  34. echo "Extracting $x ..."
  35. tar $taropt $x
  36. done
  37. chown -R root:root $datadir/games/torcs
  38. }
  39. hook_add preconf 3 torcs_preconf
  40. hook_add postinstall 5 torcs_pi
  41. var_append CC_WRAPPER_REMOVE " " "-mieee-fp"
  42. var_append CXX_WRAPPER_REMOVE " " "-mieee-fp"