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.

77 lines
2.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../evas/evas.conf
  5. # Copyright (C) 2006 - 2012 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2004 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. if atstage toolchain; then
  17. # to find jpeglib.h
  18. x="$base/build/$SDECFG_ID/TOOLCHAIN/$toolsdir"
  19. export CFLAGS="-I$x/include $CFLAGS"
  20. export LDFLAGS="-L$x/lib $LDFLAGS"
  21. fi
  22. # image loaders
  23. for x in libpng:png libjpeg:jpeg librsvg:svg; do
  24. if pkginstalled ${x%:*}; then
  25. y=enable
  26. else
  27. y=disable
  28. fi
  29. var_append extraconfopt ' ' "--$y-image-loader-${x#*:}"
  30. done
  31. # eet
  32. if pkginstalled eet; then
  33. y=enable
  34. else
  35. y=disable
  36. fi
  37. for x in image font; do
  38. var_append extraconfopt ' ' "--$y-$x-loader-eet"
  39. done
  40. # enable framebuffer support by default
  41. var_append confopt " " "--enable-fb"
  42. # check for directfb
  43. if pkginstalled directfb ; then
  44. var_append confopt " " "--enable-directfb"
  45. fi
  46. if ! atstage toolchain; then
  47. # check for xorg
  48. if pkginstalled xorg-server ; then
  49. var_append confopt " " "--x-includes=$( pkgprefix -r includedir xorg-server )"
  50. var_append confopt " " "--x-libraries=$( pkgprefix -r libdir xorg-server )"
  51. var_append configprefix ' ' 'LDFLAGS="-L$( pkgprefix -r libdir xorg-server )"'
  52. fi
  53. # check if we can enable the OpenGL X11 display engine
  54. pkginstalled mesa && var_append confopt ' ' "--enable-gl-x11"
  55. # check if we can enable the Cairo X11 support
  56. if pkginstalled cairo ; then
  57. var_append confopt ' ' "--enable-cairo-x11"
  58. var_append GCC_WRAPPER_APPEND ' ' "`pkg-config cairo --cflags`"
  59. fi
  60. if pkginstalled fontconfig ; then
  61. pkgprefix -t fontconfig
  62. var_append confopt ' ' "--enable-fontconfig"
  63. var_append GCC_WRAPPER_APPEND ' ' "`pkg-config fontconfig --cflags`"
  64. else
  65. var_append confopt ' ' "--disable-fontconfig"
  66. fi
  67. fi