make use of feature-flag "drawing backend" - link cairo e.g. against libX11 or libdir...
authorMirko Vogt <mirko@openwrt.org>
Thu, 12 Nov 2009 01:06:35 +0000 (01:06 +0000)
committerMirko Vogt <mirko@openwrt.org>
Thu, 12 Nov 2009 01:06:35 +0000 (01:06 +0000)
SVN-Revision: 18391

Xorg/lib/cairo/Makefile

index 511ce091dd4417d5ee26b0d05753d5c0164acbe9..271dc1e4033c472340075be21bed3da70d092fbd 100644 (file)
@@ -25,7 +25,9 @@ define Package/cairo
   CATEGORY:=Xorg
   SUBMENU:=libraries
   TITLE:=Multi-platform 2D graphics library
-  DEPENDS:=+fontconfig +libpng +libexpat +pixman
+  DEPENDS:=+fontconfig +libpng +libexpat +pixman \
+  +FEATURE_drawing-backend_DirectFB:DirectFB \
+  +FEATURE_drawing-backend_libX11:libX11
 endef
 
 define Package/cairo/description
@@ -38,8 +40,13 @@ drawing operations can be transformed by any affine transformation
 endef
 
 CONFIGURE_VARS+=FONTCONFIG_LIBS="-lfreetype -lfontconfig -lz -lexpat"
-CONFIGURE_ARGS+=--enable-freetype=yes
-TARGET_CFLAGS+=$(TARGET_LDFLAGS)
+
+CONFIGURE_ARGS+= \
+       --enable-freetype=yes \
+       --disable-win32 \
+       --enable-xlib-xrender=no \
+       $(if $(CONFIG_FEATURE_drawing-backend_DirectFB), --enable-directfb, --disable-directfb) \
+       $(if $(CONFIG_FEATURE_drawing-backend_libX11), --enable-xlib --with-x, --disable-xlib --without-x)
 
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/lib/