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.

41 lines
1.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../pciutils/pciutils.conf
  5. # Copyright (C) 2006 - 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. var_append makeopt ' ' "PREFIX=/$prefix"
  15. var_append makeinstopt ' ' "PREFIX=/$prefix"
  16. if [ "$SDECFG_STATIC" != 1 ]; then
  17. buildloops=2
  18. fi
  19. pciutils_preconf() {
  20. if [ "$buildloop" -eq 2 ]; then
  21. hook_add premake 1 "eval $MAKE clean"
  22. var_append makeopt ' ' "SHARED=yes"
  23. # only install the shared library
  24. var_remove makeinstopt ' ' "install"
  25. var_append makeinstopt ' ' "SHARED=yes"
  26. fi
  27. }
  28. hook_add preconf 3 "pciutils_preconf"
  29. # always install the library and header files
  30. var_append makeinstopt ' ' "install-lib"
  31. hook_add postpatch 5 "bzcat $( match_source_file -p pci.ids- ) > $root$datadir/pci.ids"
  32. if pkginstalled gzip; then
  33. # HACK: LDFLAGS is used before the objects, so the given -lz is ignored
  34. var_append GCC_WRAPPER_APPEND '-c?:-lz'
  35. fi