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.

43 lines
1.4 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 - 2012 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. # Makefile is using STRIP variable for 'install' commands strip option
  17. var_remove_regex makeopt ' ' "STRIP=.*"
  18. var_remove_regex makeinstopt ' ' "STRIP=.*"
  19. if [ "$SDECFG_STATIC" != 1 ]; then
  20. buildloops=2
  21. fi
  22. pciutils_preconf() {
  23. if [ "$buildloop" -eq 2 ]; then
  24. hook_add premake 1 "eval $MAKE clean"
  25. var_append makeopt ' ' "SHARED=yes"
  26. # only install the shared library
  27. var_remove makeinstopt ' ' "install"
  28. var_append makeinstopt ' ' "SHARED=yes"
  29. fi
  30. }
  31. hook_add preconf 3 "pciutils_preconf"
  32. # always install the library and header files
  33. var_append makeinstopt ' ' "install-lib"
  34. if pkginstalled gzip; then
  35. # HACK: LDFLAGS is used before the objects, so the given -lz is ignored
  36. var_append GCC_WRAPPER_APPEND '-c?:-lz'
  37. fi