summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMirko Vogt2009-11-12 01:06:35 +0000
committerMirko Vogt2009-11-12 01:06:35 +0000
commit96594952905cb3e0435ab4831e6944cf81e70ba2 (patch)
tree5be8b6f4936a96d6a761b23cc6c7e838af7dbb32
parentc4b4a5a94693861fc2b47aa93b6269524dd69dc8 (diff)
downloadarchive-96594952905cb3e0435ab4831e6944cf81e70ba2.tar.gz
make use of feature-flag "drawing backend" - link cairo e.g. against libX11 or libdirectfb
SVN-Revision: 18391
-rw-r--r--Xorg/lib/cairo/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Xorg/lib/cairo/Makefile b/Xorg/lib/cairo/Makefile
index 511ce091dd..271dc1e403 100644
--- a/Xorg/lib/cairo/Makefile
+++ b/Xorg/lib/cairo/Makefile
@@ -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/