Skip to contentSkip to conversation

Add utilities to set background image in Fluxbox

Buildroot Superseded yegorslists at googlemail.com 2 participants 5 messages Oct 12, 2011 – Oct 13, 2011

v3 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

Changes:
v3: change packe dependencies, so that both ImLib2 and feh depend on BR2_PACKAGE_XORG
v2: add libXext dependency to ImLib2

#1 lore raw

PATCH v3 1/3 New package: ImLib2

From: Yegor Yefremov <[email protected]>

---
 package/Config.in        |    1 +
 package/imlib2/Config.in |   37 ++++++++++++++++++++++++++++
 package/imlib2/imlib2.mk |   60 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 98 insertions(+), 0 deletions(-)
 create mode 100644 package/imlib2/Config.in
 create mode 100644 package/imlib2/imlib2.mk
package/Config.in +1 -0
index 7dc8887..7a7b4bf 100644
@@ -282,6 +282,7 @@ source "package/fontconfig/Config.in"
 source "package/freetype/Config.in"
 source "package/gtk2-engines/Config.in"
 source "package/gtk2-themes/Config.in"
+source "package/imlib2/Config.in"
 source "package/jpeg/Config.in"
 source "package/libart/Config.in"
 source "package/libdrm/Config.in"
package/imlib2/Config.in new file +37 -0
new file mode 100644
index 0000000..e97df8f
@@ -0,0 +1,37 @@
+config BR2_PACKAGE_IMLIB2
+	bool "imlib2"
+	help
+	  Imlib 2 is the successor to Imlib.
+
+	  http://freshmeat.net/projects/imlib2/
+
+if BR2_PACKAGE_IMLIB2
+
+config BR2_PACKAGE_IMLIB2_JPEG
+	select BR2_PACKAGE_JPEG
+	bool "JPEG support"
+
+config BR2_PACKAGE_IMLIB2_PNG
+	select BR2_PACKAGE_LIBPNG
+	bool "PNG support"
+
+config BR2_PACKAGE_IMLIB2_GIF
+	select BR2_PACKAGE_LIBUNGIF
+	bool "GIF support"
+
+config BR2_PACKAGE_IMLIB2_TIFF
+	select BR2_PACKAGE_TIFF
+	bool "TIFF support"
+
+config BR2_PACKAGE_IMLIB2_FREETYPE
+	select BR2_PACKAGE_FREETYPE
+	bool "FreeType support"
+
+config BR2_PACKAGE_IMLIB2_ID3
+	select BR2_PACKAGE_LIBID3TAG
+	bool "ID3 support"
+
+config BR2_PACKAGE_IMLIB2_X
+	depends on BR2_PACKAGE_XORG7
+	bool "X support"
+endif
package/imlib2/imlib2.mk new file +60 -0

60 lines not on this page · raw message

Signature · 1 line
1.7.1.1
#2 lore raw

PATCH v3 1/3 New package: ImLib2

[Will this discussion ever end? :-P ]

On Wednesday 12 October 2011 11:13:56, yegorslists at googlemail.com wrote:
[snip]

Quoted 2 lines
package/imlib2/Config.in new file +2 -0
+config BR2_PACKAGE_IMLIB2_X
+	depends on BR2_PACKAGE_XORG7

[snip]

package/imlib2/imlib2.mk line 14

Quoted 1 line
package/imlib2/imlib2.mk new file +1 -0
+	IMLIB2_DEPENDENCIES += xlib_libX11 xlib_libXext

If you ask me, dependencies in Config.in and in pkg.mk should be consistent.
So do select these two libraries in the Config.in (yes, all two of them, just in case that the dependency of Xext on X11 disappears some day; not that that's very likely). The dependency on XORG7 should stay of course.

I'm not sure if there should also be a comment that XORG7 needs to be
selected for the X backend.

Regards,
Arnout

Signature · 9 lines
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  31BB CF53 8660 6F88 345D  54CC A836 5879 20D7 CF43
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20111014/e942715e/attachment-0001.html>
#3 lore raw

PATCH v3 2/3 New package: giblib

In reply to yegorslists at googlemail.com

From: Yegor Yefremov <[email protected]>

---
 package/Config.in        |    1 +
 package/giblib/Config.in |    8 ++++++++
 package/giblib/giblib.mk |   15 +++++++++++++++
 3 files changed, 24 insertions(+), 0 deletions(-)
 create mode 100644 package/giblib/Config.in
 create mode 100644 package/giblib/giblib.mk
package/Config.in +1 -0
index 7a7b4bf..7f82934 100644
@@ -280,6 +280,7 @@ source "package/cairo/Config.in"
 source "package/fltk/Config.in"
 source "package/fontconfig/Config.in"
 source "package/freetype/Config.in"
+source "package/giblib/Config.in"
 source "package/gtk2-engines/Config.in"
 source "package/gtk2-themes/Config.in"
 source "package/imlib2/Config.in"
package/giblib/Config.in new file +8 -0
new file mode 100644
index 0000000..0c704e1
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_GIBLIB
+	bool "giblib"
+	select BR2_PACKAGE_IMLIB2
+	help
+	  Giblib is a simple library which wraps imlib2.
+
+	  http://linuxbrit.co.uk/giblib/
+
package/giblib/giblib.mk new file +15 -0
new file mode 100644
index 0000000..8a868c5
@@ -0,0 +1,15 @@
+#############################################################
+#
+# giblib
+#
+#############################################################
+GIBLIB_VERSION = 1.2.4
+GIBLIB_SOURCE = giblib-$(GIBLIB_VERSION).tar.gz
+GIBLIB_SITE = http://linuxbrit.co.uk/downloads/
+GIBLIB_INSTALL_STAGING = YES
+GIBLIB_DEPENDENCIES = imlib2
+GIBLIB_CONF_OPT = --with-imlib2-prefix=$(STAGING)/usr/lib \
+		  --with-imlib2-exec-prefix=$(STAGING)/usr/bin
+
+$(eval $(call AUTOTARGETS))
+
Signature · 1 line
1.7.1.1
#4 lore raw

PATCH v3 3/3 New package: feh

In reply to yegorslists at googlemail.com

From: Yegor Yefremov <[email protected]>

---
 package/Config.in     |    1 +
 package/feh/Config.in |   12 ++++++++++++
 package/feh/feh.mk    |   22 ++++++++++++++++++++++
 3 files changed, 35 insertions(+), 0 deletions(-)
 create mode 100644 package/feh/Config.in
 create mode 100644 package/feh/feh.mk
package/Config.in +1 -0
index 7f82934..b39f41b 100644
@@ -133,6 +133,7 @@ source "package/fluxbox/Config.in"
 comment "X applications"
 source "package/alsamixergui/Config.in"
 source "package/docker/Config.in"
+source "package/feh/Config.in"
 source "package/gqview/Config.in"
 source "package/gmpc/Config.in"
 source "package/gob2/Config.in"
package/feh/Config.in new file +12 -0
new file mode 100644
index 0000000..24dc35e
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_FEH
+	bool "feh"
+	depends on BR2_PACKAGE_XORG7
+	select BR2_PACKAGE_XLIB_LIBXINERAMA
+	select BR2_PACKAGE_XLIB_LIBXT
+	select BR2_PACKAGE_IMLIB2_PNG
+	select BR2_PACKAGE_GIBLIB
+	select BR2_PACKAGE_LIBCURL
+	help
+	  feh is an X11 image viewer aimed mostly at console users.
+
+	  http://feh.finalrewind.org/
package/feh/feh.mk new file +22 -0
new file mode 100644
index 0000000..b59bb2f
@@ -0,0 +1,22 @@
+FEH_VERSION = 2.0
+FEH_SOURCE = feh-$(FEH_VERSION).tar.bz2
+FEH_SITE = http://feh.finalrewind.org/
+FEH_DEPENDENCIES = libcurl giblib imlib2 libpng xlib_libXinerama xlib_libXt
+
+define FEH_BUILD_CMDS
+	$(MAKE1) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" \
+		-C $(@D) all
+endef
+
+define FEH_INSTALL_TARGET_CMDS
+	$(MAKE1) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) " \
+		DESTDIR=$(TARGET_DIR) -C $(@D) install
+endef
+
+define FEH_UNINSTALL_TARGET_CMDS
+	$(MAKE1) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) " \
+		DESTDIR=$(TARGET_DIR) -C $(@D) uninstall
+endef
+
+$(eval $(call GENTARGETS))
+
Signature · 1 line
1.7.1.1