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.

56 lines
1.8 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../kdelibs/kde-conf.in
  5. # Copyright (C) 2004 - 2006 The T2 SDE 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. # --- T2-COPYRIGHT-NOTE-END ---
  14. if hasflag KDE; then
  15. if [ "$prefix_auto" = 1 ] ; then
  16. if [ "$pkg" == "arts" ]; then
  17. prefix="${SDECFG_PKG_KDE3_CORE_PREFIX:-opt/kde3}"
  18. else
  19. pkgprefix -t arts
  20. prefix=`pkgprefix arts`
  21. fi
  22. set_confopt
  23. fi
  24. # make sure the right qt and kde libs are used
  25. export LD_LIBRARY_PATH="$QTDIR/${libdir##*/}:/$prefix/${libdir##*/}:$LD_LIBRARY_PATH"
  26. # KDE specific configure options
  27. var_append confopt " " "--with-qt-dir=$QTDIR \
  28. --with-qt-includes=$QTDIR/include \
  29. --with-qt-libraries=$QTDIR/${libdir##*/}"
  30. # some feature and optimization settings ...
  31. if pkginstalled openldap; then
  32. pkgprefix -t openldap
  33. var_append confopt " " "--with-ldap=$root/$( pkgprefix openldap )"
  34. fi
  35. # FIXME: no conditionals?
  36. var_append confopt " " "--with-xinerama --enable-dnotify"
  37. [ "$SDECFG_PKG_KDE3_ENABLE_FINAL" != "1" ] ||
  38. var_append confopt " " "--enable-final"
  39. if [ $arch = x86 ]; then
  40. var_append confopt " " "--enable-fast-malloc=full"
  41. fi
  42. if [[ $libdir != *lib ]]; then
  43. var_append confopt " " "--enable-libsuffix=${libdir##*/lib}"
  44. fi
  45. # HACK around test for kdelibs
  46. hook_add preconf 3 '[ ! -f configure ] || sed -i "s,grep klineedit,grep KLineEdit," configure'
  47. fi