source "package/bridge/Config.in"
source "package/customize/Config.in"
source "package/dhcp/Config.in"
+source "package/directfb/Config.in"
source "package/distcc/Config.in"
source "package/dnsmasq/Config.in"
source "package/dropbear_sshd/Config.in"
source "package/e2fsprogs/Config.in"
source "package/fakeroot/Config.in"
source "package/file/Config.in"
+source "package/freetype/Config.in"
source "package/gettext/Config.in"
source "package/gzip/Config.in"
source "package/hostap/Config.in"
source "package/libmad/Config.in"
source "package/libpcap/Config.in"
source "package/libpng/Config.in"
+source "package/libsysfs/Config.in"
source "package/libtool/Config.in"
source "package/links/Config.in"
source "package/lrzsz/Config.in"
--- /dev/null
+config BR2_PACKAGE_DIRECTFB
+ bool "directfb"
+ default n
+ select BR2_PACKAGE_ZLIB
+ select BR2_PACKAGE_JPEG
+ select BR2_PACKAGE_LIBPNG
+ select BR2_PACKAGE_LIBSYSFS
+ select BR2_PACKAGE_FREETYPE
+ help
+
+ http://www.directfb.org/
--- /dev/null
+#############################################################
+#
+# directfb
+#
+#############################################################
+DIRECTFB_VERSION:=0.9.22
+DIRECTFB_SOURCE:=DirectFB-$(DIRECTFB_VERSION).tar.gz
+DIRECTFB_SITE:=http://www.directfb.org/downloads/Core
+DIRECTFB_CAT:=zcat
+DIRECTFB_DIR:=$(BUILD_DIR)/DirectFB-$(DIRECTFB_VERSION)
+
+$(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) -
+ touch $(DIRECTFB_DIR)/.unpacked
+
+$(DIRECTFB_DIR)/.configured: $(DIRECTFB_DIR)/.unpacked
+ (cd $(DIRECTFB_DIR); \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --with-gfxdrivers=cle266,unichrome \
+ --enable-jpeg \
+ --enable-png \
+ --enable-linux-input \
+ --enable-zlib \
+ --enable-freetype \
+ --enable-sysfs \
+ --disable-video4linux \
+ --disable-video4linux2 \
+ --disable-fusion );
+ touch $(DIRECTFB_DIR)/.configured
+
+$(DIRECTFB_DIR)/.compiled: $(DIRECTFB_DIR)/.configured
+ $(MAKE) -C $(DIRECTFB_DIR) \
+ LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
+ INCLS="-I. -I$(STAGING_DIR)/include"
+ touch $(DIRECTFB_DIR)/.compiled
+
+$(STAGING_DIR)/usr/lib/libdirectfb.so: $(DIRECTFB_DIR)/.compiled
+ $(MAKE) -C $(DIRECTFB_DIR) DESTDIR=$(STAGING_DIR) install
+ touch -c $(STAGING_DIR)/lib/libdirectfb.so
+
+$(TARGET_DIR)/usr/lib/libdirectfb.so: $(STAGING_DIR)/usr/lib/libdirectfb.so
+ cp -dpf $(STAGING_DIR)/usr/lib/libdirectfb* $(TARGET_DIR)/usr/lib/
+ cp -rdpf $(STAGING_DIR)/usr/lib/directfb-$(DIRECTFB_VERSION) $(TARGET_DIR)/usr/lib/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libdirectfb.so
+
+directfb: uclibc jpeg libpng freetype libsysfs $(TARGET_DIR)/usr/lib/libdirectfb.so
+
+directfb-clean:
+ $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(DIRECTFB_DIR) uninstall
+ -$(MAKE) -C $(DIRECTFB_DIR) clean
+
+directfb-dirclean:
+ rm -rf $(DIRECTFB_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_DIRECTFB)),y)
+TARGETS+=directfb
+endif
--- /dev/null
+config BR2_PACKAGE_FREETYPE
+ bool "freetype"
+ default n
+ help
+
+ http://www.freetype.org/
--- /dev/null
+#############################################################
+#
+# freetype
+#
+#############################################################
+FREETYPE_VERSION:=2.1.9
+FREETYPE_SOURCE:=freetype-$(FREETYPE_VERSION).tar.bz2
+FREETYPE_SITE:=http://telia.dl.sourceforge.net/sourceforge/freetype
+FREETYPE_CAT:=bzcat
+FREETYPE_DIR:=$(BUILD_DIR)/freetype-$(FREETYPE_VERSION)
+
+$(DL_DIR)/$(FREETYPE_SOURCE):
+ $(WGET) -P $(DL_DIR) $(FREETYPE_SITE)/$(FREETYPE_SOURCE)
+
+freetype-source: $(DL_DIR)/$(FREETYPE_SOURCE)
+
+$(FREETYPE_DIR)/.unpacked: $(DL_DIR)/$(FREETYPE_SOURCE)
+ $(FREETYPE_CAT) $(DL_DIR)/$(FREETYPE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(FREETYPE_DIR)/.unpacked
+
+$(FREETYPE_DIR)/.configured: $(FREETYPE_DIR)/.unpacked
+ (cd $(FREETYPE_DIR); \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS) " \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr );
+ touch $(FREETYPE_DIR)/.configured
+
+$(FREETYPE_DIR)/.compiled: $(FREETYPE_DIR)/.configured
+ $(MAKE) -C $(FREETYPE_DIR)
+ touch $(FREETYPE_DIR)/.compiled
+
+$(STAGING_DIR)/usr/lib/libfreetype.so: $(FREETYPE_DIR)/.compiled
+ $(MAKE) -C $(FREETYPE_DIR) DESTDIR=$(STAGING_DIR) install
+ touch -c $(STAGING_DIR)/lib/libfreetype.so
+
+$(TARGET_DIR)/usr/lib/libfreetype.so: $(STAGING_DIR)/usr/lib/libfreetype.so
+ cp -dpf $(STAGING_DIR)/usr/lib/libfreetype.so* $(TARGET_DIR)/usr/lib/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libfreetype.so
+
+freetype: uclibc $(TARGET_DIR)/usr/lib/libfreetype.so
+
+freetype-clean:
+ $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(FREETYPE_DIR) uninstall
+ -$(MAKE) -C $(FREETYPE_DIR) clean
+
+freetype-dirclean:
+ rm -rf $(FREETYPE_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_FREETYPE)),y)
+TARGETS+=freetype
+endif
--- /dev/null
+config BR2_PACKAGE_LIBSYSFS
+ bool "libsysfs"
+ default n
+ help
+ These are a set of utilites built upon sysfs, a new virtual filesystem in Linux kernel versions 2.5+ that exposes a system's device tree.
+
+ http://linux-diag.sourceforge.net/Sysfsutils.html
--- /dev/null
+#############################################################
+#
+# libsysfs
+#
+#############################################################
+# Copyright (C) 2001-2003 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 2002 by Tim Riker <Tim@Rikers.org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Library General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public
+# License along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+# USA
+
+LIBSYSFS_VER:=1.2.0
+LIBSYSFS_DIR:=$(BUILD_DIR)/sysfsutils-$(LIBSYSFS_VER)
+LIBSYSFS_SITE:=http://cogent.dl.sourceforge.net/sourceforge/linux-diag
+LIBSYSFS_SOURCE:=sysfsutils-$(LIBSYSFS_VER).tar.gz
+LIBSYSFS_CAT:=zcat
+
+$(DL_DIR)/$(LIBSYSFS_SOURCE):
+ $(WGET) -P $(DL_DIR) $(LIBSYSFS_SITE)/$(LIBSYSFS_SOURCE)
+
+libsysfs-source: $(DL_DIR)/$(LIBSYSFS_SOURCE)
+
+$(LIBSYSFS_DIR)/.unpacked: $(DL_DIR)/$(LIBSYSFS_SOURCE)
+ $(LIBSYSFS_CAT) $(DL_DIR)/$(LIBSYSFS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(LIBSYSFS_DIR)/.unpacked
+
+$(LIBSYSFS_DIR)/.configured: $(LIBSYSFS_DIR)/.unpacked
+ (cd $(LIBSYSFS_DIR); \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS) " \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/ );
+ touch $(LIBSYSFS_DIR)/.configured
+
+$(LIBSYSFS_DIR)/.compiled: $(LIBSYSFS_DIR)/.configured
+ $(MAKE) -C $(LIBSYSFS_DIR)
+ touch $(LIBSYSFS_DIR)/.compiled
+
+$(STAGING_DIR)/lib/libsysfs.so: $(LIBSYSFS_DIR)/.compiled
+ $(MAKE) -C $(LIBSYSFS_DIR) DESTDIR=$(STAGING_DIR) install
+ touch -c $(STAGING_DIR)/lib/libsysfs.so
+
+$(TARGET_DIR)/usr/lib/libsysfs.so: $(STAGING_DIR)/lib/libsysfs.so
+ cp -dpf $(STAGING_DIR)/lib/libsysfs.so* $(TARGET_DIR)/usr/lib/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libsysfs.so
+
+libsysfs: uclibc $(TARGET_DIR)/usr/lib/libsysfs.so
+
+libsysfs-clean:
+ -$(MAKE) -C $(LIBSYSFS_DIR) clean
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LIBSYSFS)),y)
+TARGETS+=libsysfs
+endif