summaryrefslogtreecommitdiffstats
path: root/x11-libs/cairo/PRE_SUB_DEPENDS
blob: 32d996d52031b3e6f84c120ff1897acb86318a9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
case $THIS_SUB_DEPENDS in
  CAIRO_DEVEL) [[ "$CAIRO_BRANCH" == "devel" || "$CAIRO_BRANCH" == "scm" ]];;
  PDF) [[ -f "$INSTALL_ROOT/usr/include/cairo/cairo-pdf.h" ]];;
  XCB) is_depends_enabled $SPELL libxcb;;
 GOBJ) is_depends_enabled $SPELL glib2;;
  PNG) is_depends_enabled $SPELL libpng;;
   PS) [[ -f "$INSTALL_ROOT/usr/include/cairo/cairo-ps.h" ]];;
  SVG) [[ -f "$INSTALL_ROOT/usr/include/cairo/cairo-svg.h" ]];;
    X) is_depends_enabled $SPELL libx11;;
  TEE) if ! list_find "$CAIRO_OPTS" "--enable-tee=yes"; then return 1; fi;;
    *) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL $THIS_SUB_DEPENDS${DEFAULT_COLOR}"
       return 1;;
esac