aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/Config.in3
-rw-r--r--package/directfb/Config.in11
-rw-r--r--package/directfb/directfb.mk73
-rw-r--r--package/freetype/Config.in6
-rw-r--r--package/freetype/freetype.mk60
-rw-r--r--package/libsysfs/Config.in7
-rw-r--r--package/libsysfs/libsysfs.mk73
7 files changed, 233 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 924297761..932ccf637 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -32,12 +32,14 @@ source "package/boa/Config.in"
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"
@@ -52,6 +54,7 @@ source "package/libglib12/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"
diff --git a/package/directfb/Config.in b/package/directfb/Config.in
new file mode 100644
index 000000000..d8ab20a30
--- /dev/null
+++ b/package/directfb/Config.in
@@ -0,0 +1,11 @@
+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/
diff --git a/package/directfb/directfb.mk b/package/directfb/directfb.mk
new file mode 100644
index 000000000..aaa93136b
--- /dev/null
+++ b/package/directfb/directfb.mk
@@ -0,0 +1,73 @@
+#############################################################
+#
+# 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
diff --git a/package/freetype/Config.in b/package/freetype/Config.in
new file mode 100644
index 000000000..f3ce268e0
--- /dev/null
+++ b/package/freetype/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_FREETYPE
+ bool "freetype"
+ default n
+ help
+
+ http://www.freetype.org/
diff --git a/package/freetype/freetype.mk b/package/freetype/freetype.mk
new file mode 100644
index 000000000..23a0b8f8b
--- /dev/null
+++ b/package/freetype/freetype.mk
@@ -0,0 +1,60 @@
+#############################################################
+#
+# 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
diff --git a/package/libsysfs/Config.in b/package/libsysfs/Config.in
new file mode 100644
index 000000000..418ca8d2b
--- /dev/null
+++ b/package/libsysfs/Config.in
@@ -0,0 +1,7 @@
+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
diff --git a/package/libsysfs/libsysfs.mk b/package/libsysfs/libsysfs.mk
new file mode 100644
index 000000000..14aa8943e
--- /dev/null
+++ b/package/libsysfs/libsysfs.mk
@@ -0,0 +1,73 @@
+#############################################################
+#
+# 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