2005-04-26 08:26:14 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# directfb
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-08-12 20:21:27 +02:00
|
|
|
#DIRECTFB_VERSION:=0.9.25.1
|
|
|
|
#DIRECTFB_SITE:=http://www.directfb.org/downloads/Old
|
2007-09-05 08:49:57 +02:00
|
|
|
DIRECTFB_VERSION:=1.0.1
|
2007-08-12 20:21:27 +02:00
|
|
|
DIRECTFB_SITE:=http://www.directfb.org/downloads/Core
|
2005-04-26 08:26:14 +02:00
|
|
|
DIRECTFB_SOURCE:=DirectFB-$(DIRECTFB_VERSION).tar.gz
|
2006-10-01 17:17:52 +02:00
|
|
|
DIRECTFB_CAT:=$(ZCAT)
|
2005-04-26 08:26:14 +02:00
|
|
|
DIRECTFB_DIR:=$(BUILD_DIR)/DirectFB-$(DIRECTFB_VERSION)
|
|
|
|
|
2007-08-12 20:21:27 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB_MULTI),y)
|
|
|
|
DIRECTFB_MULTI:=--enable-multi
|
2007-08-13 08:14:15 +02:00
|
|
|
DIRECTFB_FUSION:=linux-fusion
|
2007-08-12 20:21:27 +02:00
|
|
|
else
|
|
|
|
DIRECTFB_MULTI:=
|
2007-08-13 08:14:15 +02:00
|
|
|
DIRECTFB_FUSION:=
|
2007-08-12 20:21:27 +02:00
|
|
|
endif
|
2007-09-05 08:49:57 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_XSERVER_none),y)
|
2007-09-12 07:20:26 +02:00
|
|
|
DIRECTFB_X:=--disable-x11
|
2007-09-05 08:49:57 +02:00
|
|
|
else
|
2007-09-12 07:20:26 +02:00
|
|
|
DIRECTFB_X:=--enable-x11
|
2007-09-05 08:49:57 +02:00
|
|
|
endif
|
2007-08-12 20:21:27 +02:00
|
|
|
|
2005-04-26 08:26:14 +02:00
|
|
|
$(DL_DIR)/$(DIRECTFB_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(DIRECTFB_SITE)/$(DIRECTFB_SOURCE)
|
|
|
|
|
|
|
|
directfb-source: $(DL_DIR)/$(DIRECTFB_SOURCE)
|
|
|
|
|
|
|
|
$(DIRECTFB_DIR)/.unpacked: $(DL_DIR)/$(DIRECTFB_SOURCE)
|
|
|
|
$(DIRECTFB_CAT) $(DL_DIR)/$(DIRECTFB_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2005-09-08 02:33:03 +02:00
|
|
|
toolchain/patch-kernel.sh $(DIRECTFB_DIR) package/directfb/ directfb\*.patch
|
2007-09-17 14:30:31 +02:00
|
|
|
touch $@
|
2005-04-26 08:26:14 +02:00
|
|
|
|
|
|
|
$(DIRECTFB_DIR)/.configured: $(DIRECTFB_DIR)/.unpacked
|
2007-09-25 14:34:09 +02:00
|
|
|
(cd $(DIRECTFB_DIR); rm -f config.cache; \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2005-09-08 02:33:03 +02:00
|
|
|
ac_cv_header_linux_wm97xx_h=no \
|
|
|
|
ac_cv_header_linux_sisfb_h=no \
|
2007-06-26 08:24:37 +02:00
|
|
|
ac_cv_header_asm_page_h=no \
|
2005-04-26 08:26:14 +02:00
|
|
|
./configure \
|
2007-01-14 04:52:21 +01:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
2007-08-12 20:21:27 +02:00
|
|
|
--bindir=/bin \
|
|
|
|
--sbindir=/sbin \
|
2007-01-14 04:52:21 +01:00
|
|
|
--libdir=/lib \
|
2007-08-12 20:21:27 +02:00
|
|
|
--libexecdir=/lib \
|
2007-01-14 04:52:21 +01:00
|
|
|
--sysconfdir=/etc \
|
2007-08-12 20:21:27 +02:00
|
|
|
--datadir=/share \
|
2007-01-14 04:52:21 +01:00
|
|
|
--localstatedir=/var \
|
2007-08-12 20:21:27 +02:00
|
|
|
--includedir=/include \
|
|
|
|
--mandir=/man \
|
|
|
|
--infodir=/info \
|
2007-01-14 04:52:21 +01:00
|
|
|
--with-gfxdrivers=cle266,unichrome \
|
2007-08-12 16:40:16 +02:00
|
|
|
--enable-shared \
|
2007-08-12 20:21:27 +02:00
|
|
|
$(DIRECTFB_MULTI) \
|
2007-09-05 08:49:57 +02:00
|
|
|
$(DIRECTFB_X) \
|
2007-01-14 04:52:21 +01:00
|
|
|
--enable-jpeg \
|
|
|
|
--enable-png \
|
|
|
|
--enable-linux-input \
|
|
|
|
--enable-zlib \
|
|
|
|
--enable-freetype \
|
2007-08-12 16:40:16 +02:00
|
|
|
--disable-sysfs \
|
2007-08-12 20:21:27 +02:00
|
|
|
--disable-sdl \
|
2007-11-16 17:10:25 +01:00
|
|
|
--disable-vnc \
|
2007-01-14 04:52:21 +01:00
|
|
|
--disable-video4linux \
|
|
|
|
--disable-video4linux2 \
|
2007-08-21 21:20:18 +02:00
|
|
|
--enable-fusion )
|
2007-09-17 14:30:31 +02:00
|
|
|
touch $@
|
2005-04-26 08:26:14 +02:00
|
|
|
|
|
|
|
$(DIRECTFB_DIR)/.compiled: $(DIRECTFB_DIR)/.configured
|
2007-08-12 20:21:27 +02:00
|
|
|
$(MAKE) PATH=$(STAGING_DIR)/usr/lib:$(PATH) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
-C $(DIRECTFB_DIR)
|
2005-04-26 08:26:14 +02:00
|
|
|
touch $(DIRECTFB_DIR)/.compiled
|
|
|
|
|
|
|
|
$(STAGING_DIR)/usr/lib/libdirectfb.so: $(DIRECTFB_DIR)/.compiled
|
2007-08-11 23:53:18 +02:00
|
|
|
$(MAKE) DESTDIR=$(STAGING_DIR)/usr -C $(DIRECTFB_DIR) install
|
2007-08-13 01:30:06 +02:00
|
|
|
$(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" \
|
|
|
|
$(STAGING_DIR)/usr/lib/libdirectfb.la
|
|
|
|
$(SED) "s,/lib/libfusion.la,$(STAGING_DIR)/usr/lib/libfusion.la,g" \
|
|
|
|
$(STAGING_DIR)/usr/lib/libdirectfb.la
|
|
|
|
$(SED) "s,/lib/libdirect.la,$(STAGING_DIR)/usr/lib/libdirect.la,g" \
|
|
|
|
$(STAGING_DIR)/usr/lib/libdirectfb.la
|
|
|
|
$(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" \
|
|
|
|
$(STAGING_DIR)/usr/lib/libdirect.la
|
|
|
|
$(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" \
|
|
|
|
$(STAGING_DIR)/usr/lib/libfusion.la
|
|
|
|
$(SED) "s,/lib/libdirect.la,$(STAGING_DIR)/usr/lib/libdirect.la,g" \
|
|
|
|
$(STAGING_DIR)/usr/lib/libfusion.la
|
2007-08-11 23:53:18 +02:00
|
|
|
touch -c $@
|
2005-04-26 08:26:14 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/lib/libdirectfb.so: $(STAGING_DIR)/usr/lib/libdirectfb.so
|
2006-04-06 19:43:28 +02:00
|
|
|
cp -dpf $(STAGING_DIR)/usr/lib/libdirect* $(STAGING_DIR)/usr/lib/libfusion* $(TARGET_DIR)/usr/lib/
|
2006-06-23 09:00:53 +02:00
|
|
|
cp -rdpf $(STAGING_DIR)/usr/lib/directfb-* $(TARGET_DIR)/usr/lib/
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) \
|
2006-04-06 19:43:28 +02:00
|
|
|
$(TARGET_DIR)/usr/lib/libdirectfb.so \
|
|
|
|
$(TARGET_DIR)/usr/lib/libdirect.so \
|
|
|
|
$(TARGET_DIR)/usr/lib/libfusion.so
|
2005-04-26 08:26:14 +02:00
|
|
|
|
2007-08-13 08:14:15 +02:00
|
|
|
directfb: uclibc jpeg libpng freetype libsysfs tslib $(DIRECTFB_FUSION) \
|
|
|
|
$(TARGET_DIR)/usr/lib/libdirectfb.so
|
2005-04-26 08:26:14 +02:00
|
|
|
|
|
|
|
directfb-clean:
|
2008-04-01 08:51:59 +02:00
|
|
|
-$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(DIRECTFB_DIR) uninstall
|
2005-04-26 08:26:14 +02:00
|
|
|
-$(MAKE) -C $(DIRECTFB_DIR) clean
|
|
|
|
|
|
|
|
directfb-dirclean:
|
|
|
|
rm -rf $(DIRECTFB_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_DIRECTFB)),y)
|
|
|
|
TARGETS+=directfb
|
|
|
|
endif
|