Add dependency to linux-fusion, if DirectFB is built with multi
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Mon, 13 Aug 2007 06:14:15 +0000 (06:14 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Mon, 13 Aug 2007 06:14:15 +0000 (06:14 -0000)
package/directfb/directfb.mk

index ebe2c5673120d1de0660e102ee2b46d6b99f5d92..3fe10617120611adb4ae57744fa012b84d377198 100644 (file)
@@ -13,8 +13,10 @@ DIRECTFB_DIR:=$(BUILD_DIR)/DirectFB-$(DIRECTFB_VERSION)
 
 ifeq ($(BR2_PACKAGE_DIRECTFB_MULTI),y)
 DIRECTFB_MULTI:=--enable-multi
+DIRECTFB_FUSION:=linux-fusion
 else
 DIRECTFB_MULTI:=
+DIRECTFB_FUSION:=
 endif
 
 $(DL_DIR)/$(DIRECTFB_SOURCE):
@@ -95,7 +97,8 @@ $(TARGET_DIR)/usr/lib/libdirectfb.so: $(STAGING_DIR)/usr/lib/libdirectfb.so
                $(TARGET_DIR)/usr/lib/libdirect.so \
                $(TARGET_DIR)/usr/lib/libfusion.so
 
-directfb: uclibc jpeg libpng freetype libsysfs tslib $(TARGET_DIR)/usr/lib/libdirectfb.so
+directfb: uclibc jpeg libpng freetype libsysfs tslib $(DIRECTFB_FUSION) \
+               $(TARGET_DIR)/usr/lib/libdirectfb.so
 
 directfb-clean:
        $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(DIRECTFB_DIR) uninstall