Add utilities to set background image in Fluxbox
v5 cover Add utilities to set background image in Fluxbox
Changes:
v5: both imlib2 and feh depend on XORG7 and select relevant X-libraries
v3: change package dependencies, so that both ImLib2 and feh depend on BR2_PACKAGE_XORG
v2: add libXext dependency to ImLib2
PATCH v5 1/3 New package: ImLib2
From: Yegor Yefremov <[email protected]>
--- package/Config.in | 1 + package/imlib2/Config.in | 39 +++++++++++++++++++++++++++++ package/imlib2/imlib2.mk | 60 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 100 insertions(+), 0 deletions(-) create mode 100644 package/imlib2/Config.in create mode 100644 package/imlib2/imlib2.mk
package/Config.in +1 -0
@@ -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 +39 -0
@@ -0,0 +1,39 @@ +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 + select BR2_PACKAGE_XLIB_LIBXEXT + select BR2_PACKAGE_XLIB_LIBX11 + 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
PATCH v5 1/3 New package: ImLib2
I tried your patch series and it didn't work :-(
I have an ARCH=i386 config with the following options:
BR2_PACKAGE_IMLIB2=y
# BR2_PACKAGE_IMLIB2_JPEG is not set BR2_PACKAGE_IMLIB2_PNG=y
# BR2_PACKAGE_IMLIB2_GIF is not set
# BR2_PACKAGE_IMLIB2_TIFF is not set
# BR2_PACKAGE_IMLIB2_FREETYPE is not set
# BR2_PACKAGE_IMLIB2_ID3 is not set BR2_PACKAGE_IMLIB2_X=y
Building imlib2 gives me:
api.c:30:22: error: ft2build.h: No such file or directory api.c:31:10: error: #include expects "FILENAME" or <FILENAME>
api.c:31 is
#include FT_FREETYPE_H
If I select BR2_PACKAGE_IMLIB2_FREETYPE it goes through without problem.
My guess is that the --without-freetype option doesn't really work. So I'd suggest to make the dependency on freetype a hard one and be done with it.
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/20111015/2dd8e614/attachment.html>
PATCH v5 1/3 New package: ImLib2
Quoted 28 lines · Arnout Vandecappelle
I tried your patch series and it didn't work :-(
I have an ARCH=i386 config with the following options:
BR2_PACKAGE_IMLIB2=y
#
BR2_PACKAGE_IMLIB2_JPEGis not setBR2_PACKAGE_IMLIB2_PNG=y
#
BR2_PACKAGE_IMLIB2_GIFis not set#
BR2_PACKAGE_IMLIB2_TIFFis not set#
BR2_PACKAGE_IMLIB2_FREETYPEis not set#
BR2_PACKAGE_IMLIB2_ID3is not setBR2_PACKAGE_IMLIB2_X=y
Building imlib2 gives me:
api.c:30:22: error:
ft2build.h: No such file or directoryapi.c:31:10: error: #include expects "FILENAME" or <FILENAME>
api.c:31 is
Quoted 8 lines
#include
FT_FREETYPE_HIf I select
BR2_PACKAGE_IMLIB2_FREETYPEit goes through without problem.My guess is that the --without-freetype option doesn't really work. So
I'd suggest to make the dependency on freetype a hard one and be done with it.
Thanks for testing, I'll make it so.
Have you tried some other combinations? Till now I just tried the whole set.
Yegor
PATCH v5 1/3 New package: ImLib2
Quoted 1 line · Yegor Yefremov
Have you tried some other combinations? Till now I just tried the whole set.
No, just with PNG and with/without FREETYPE.
Regards,
Arnout
Signature · 6 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
PATCH v5 2/3 New package: giblib
In reply to yegorslists at googlemail.comFrom: 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
@@ -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
@@ -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
@@ -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
PATCH v5 3/3 New package: feh
In reply to yegorslists at googlemail.comFrom: Yegor Yefremov <[email protected]>
--- package/Config.in | 1 + package/feh/Config.in | 13 +++++++++++++ package/feh/feh.mk | 22 ++++++++++++++++++++++ 3 files changed, 36 insertions(+), 0 deletions(-) create mode 100644 package/feh/Config.in create mode 100644 package/feh/feh.mk
package/Config.in +1 -0
@@ -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 +13 -0
@@ -0,0 +1,13 @@ +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_IMLIB2_X + 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
@@ -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
PATCH v5 3/3 New package: feh
package/feh/Config.in line 6
Quoted 6 lines · yegorslists at googlemail.com
package/feh/Config.in new file +6
-0+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
I've asked this before so you probably already considered it: is the
selection of PNG really necessary, or is it there to make sure there is at least one useful 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/20111015/b7175b27/attachment.html>
PATCH v5 3/3 New package: feh
Quoted 13 lines · Arnout Vandecappelle
Quoted 9 lines · yegorslists at googlemail.com
+config
BR2_PACKAGE_FEH+???????bool "feh"
+???????depends on
BR2_PACKAGE_XORG7+???????select
BR2_PACKAGE_XLIB_LIBXINERAMA+???????select
BR2_PACKAGE_XLIB_LIBXT
Quoted 7 lines
Quoted 1 line
+???????select
BR2_PACKAGE_IMLIB2_PNGI've asked this before so you probably already considered it: is the
selection of PNG really necessary, or is it there to make sure there
is at least one useful backend?
Please look at config.mk:
LDLIBS += -lm -lpng -lX11 -lImlib2 -lgiblib
so it is hard wired.
Perhaps we should also add JPEG as default. Because it is very popular format, especially as wallpaper. What do you think about it?
Yegor