Add dillo package
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 19 Sep 2006 14:19:32 +0000 (14:19 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 19 Sep 2006 14:19:32 +0000 (14:19 -0000)
package/Config.in
package/dillo/Config.in [new file with mode: 0644]
package/dillo/dillo.mk [new file with mode: 0644]

index c3a7d31f19ce834720d6a646890bb9ceb55a2855..d5880d9c9e426e92cb9d9e9ae7fda8dceaf66beb 100644 (file)
@@ -37,6 +37,7 @@ source "package/bridge/Config.in"
 source "package/customize/Config.in"
 source "package/dhcp/Config.in"
 source "package/dialog/Config.in"
+source "package/dillo/Config.in"
 source "package/directfb/Config.in"
 source "package/distcc/Config.in"
 source "package/dm/Config.in"
diff --git a/package/dillo/Config.in b/package/dillo/Config.in
new file mode 100644 (file)
index 0000000..74ed6ab
--- /dev/null
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_DILLO
+       bool "dillo"
+       default n
+       select BR2_PACKAGE_ZLIB
+       select BR2_PACKAGE_JPEG
+       select BR2_PACKAGE_LIBPNG
+       select BR2_PACKAGE_LIBGLIB12
+       select BR2_PACKAGE_LIBGTK12
+       depends BR2_PACKAGE_XORG
+       help
+         Dillo is a small GTK+ based web browser written in C.
+
+         http://www.dillo.org/
diff --git a/package/dillo/dillo.mk b/package/dillo/dillo.mk
new file mode 100644 (file)
index 0000000..7475e11
--- /dev/null
@@ -0,0 +1,59 @@
+#############################################################
+#
+# dillo
+#
+#############################################################
+
+DILLO_VERSION=0.8.6
+DILLO_SOURCE=dillo-$(DILLO_VERSION).tar.bz2
+DILLO_SITE=http://www.dillo.org/download/
+DILLO_DIR=$(BUILD_DIR)/dillo-$(DILLO_VERSION)
+DILLO_CAT:=bzcat
+
+$(DL_DIR)/$(DILLO_SOURCE):
+       $(WGET) -P $(DL_DIR) $(DILLO_SITE)/$(DILLO_SOURCE)
+
+$(DILLO_DIR)/.unpacked: $(DL_DIR)/$(DILLO_SOURCE)
+       $(DILLO_CAT) $(DL_DIR)/$(DILLO_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+       touch $(DILLO_DIR)/.unpacked
+
+$(DILLO_DIR)/.configured: $(DILLO_DIR)/.unpacked
+       (cd $(DILLO_DIR); rm -rf config.cache; \
+               $(TARGET_CONFIGURE_OPTS) \
+               ./configure \
+               --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
+               --prefix=/usr \
+               --sysconfdir=/etc \
+               --program-transform-name='' \
+               --disable-dlgui \
+       );
+       touch $(DILLO_DIR)/.configured
+
+$(DILLO_DIR)/src/dillo: $(DILLO_DIR)/.configured
+       $(MAKE) CC=$(TARGET_CC) -C $(DILLO_DIR)
+
+$(DILLO_DIR)/.installed: $(DILLO_DIR)/src/dillo
+       $(MAKE) -C $(DILLO_DIR) DESTDIR=$(TARGET_DIR) install
+       touch $(DILLO_DIR)/.installed
+
+dillo: uclibc xorg libglib12 libgtk12 jpeg libpng $(DILLO_DIR)/.installed
+
+dillo-source: $(DL_DIR)/$(DILLO_SOURCE)
+
+dillo-clean:
+       @if [ -d $(DILLO_DIR)/Makefile ] ; then \
+               $(MAKE) -C $(DILLO_DIR) clean ; \
+       fi;
+
+dillo-dirclean:
+       rm -rf $(DILLO_DIR)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_DILLO)),y)
+TARGETS+=dillo
+endif