Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v5 0/3] Add utilities to set background image in Fluxbox
@ 2011-10-14  9:25 yegorslists at googlemail.com
  2011-10-14  9:25 ` [Buildroot] [PATCH v5 1/3] New package: ImLib2 yegorslists at googlemail.com
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: yegorslists at googlemail.com @ 2011-10-14  9:25 UTC (permalink / raw)
  To: buildroot


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH v5 1/3] New package: ImLib2
  2011-10-14  9:25 [Buildroot] [PATCH v5 0/3] Add utilities to set background image in Fluxbox yegorslists at googlemail.com
@ 2011-10-14  9:25 ` yegorslists at googlemail.com
  2011-10-15 10:50   ` Arnout Vandecappelle
  2011-10-14  9:25 ` [Buildroot] [PATCH v5 2/3] New package: giblib yegorslists at googlemail.com
  2011-10-14  9:25 ` [Buildroot] [PATCH v5 3/3] New package: feh yegorslists at googlemail.com
  2 siblings, 1 reply; 9+ messages in thread
From: yegorslists at googlemail.com @ 2011-10-14  9:25 UTC (permalink / raw)
  To: buildroot

From: Yegor Yefremov <yegorslists@googlemail.com>

Signed-off-by: Frederic Bassaler <frederic.bassaler@gmail.com>
Signed-off-by: Matias Garcia <mgarcia@rossvideo.com>
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 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

diff --git a/package/Config.in b/package/Config.in
index 7dc8887..7a7b4bf 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/imlib2/Config.in b/package/imlib2/Config.in
new file mode 100644
index 0000000..d962245
--- /dev/null
+++ b/package/imlib2/Config.in
@@ -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
diff --git a/package/imlib2/imlib2.mk b/package/imlib2/imlib2.mk
new file mode 100644
index 0000000..5a274ee
--- /dev/null
+++ b/package/imlib2/imlib2.mk
@@ -0,0 +1,60 @@
+#############################################################
+#
+## IMLIB2
+#
+##############################################################
+IMLIB2_VERSION = 1.4.5
+IMLIB2_SOURCE = imlib2-$(IMLIB2_VERSION).tar.bz2
+IMLIB2_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/project/enlightenment/imlib2-src/$(IMLIB2_VERSION)/
+IMLIB2_INSTALL_STAGING = YES
+IMLIB2_DEPENDENCIES = host-pkg-config
+
+ifeq ($(BR2_PACKAGE_IMLIB2_X),y)
+	IMLIB2_CONF_OPT += --with-x
+	IMLIB2_DEPENDENCIES += xlib_libX11 xlib_libXext
+endif
+
+ifeq ($(BR2_PACKAGE_IMLIB2_FREETYPE),y)
+	IMLIB2_CONF_OPT += --with-freetype-config=$(STAGING_DIR)/usr/bin/freetype-config
+	IMLIB2_DEPENDENCIES += freetype
+else
+	IMLIB2_CONF_OPT += --without-freetype
+endif
+
+ifeq ($(BR2_PACKAGE_IMLIB2_JPEG),y)
+	IMLIB2_CONF_OPT += --with-jpeg
+	IMLIB2_DEPENDENCIES += jpeg
+else
+	IMLIB2_CONF_OPT += --without-jpeg
+endif
+
+ifeq ($(BR2_PACKAGE_IMLIB2_PNG),y)
+	IMLIB2_CONF_OPT += --with-png
+	IMLIB2_DEPENDENCIES += libpng
+else
+	IMLIB2_CONF_OPT += --without-png
+endif
+
+ifeq ($(BR2_PACKAGE_IMLIB2_GIF),y)
+	IMLIB2_CONF_OPT += --with-gif
+	IMLIB2_DEPENDENCIES += libungif
+else
+	IMLIB2_CONF_OPT += --without-gif
+endif
+
+ifeq ($(BR2_PACKAGE_IMLIB2_TIFF),y)
+	IMLIB2_CONF_OPT += --with-tiff
+	IMLIB2_DEPENDENCIES += tiff
+else
+	IMLIB2_CONF_OPT += --without-tiff
+endif
+
+ifeq ($(BR2_PACKAGE_IMLIB2_ID3),y)
+	IMLIB2_CONF_OPT += --with-id3
+	IMLIB2_DEPENDENCIES += libid3tag
+else
+	IMLIB2_CONF_OPT += --without-id3
+endif
+
+$(eval $(call AUTOTARGETS))
+
-- 
1.7.1.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH v5 2/3] New package: giblib
  2011-10-14  9:25 [Buildroot] [PATCH v5 0/3] Add utilities to set background image in Fluxbox yegorslists at googlemail.com
  2011-10-14  9:25 ` [Buildroot] [PATCH v5 1/3] New package: ImLib2 yegorslists at googlemail.com
@ 2011-10-14  9:25 ` yegorslists at googlemail.com
  2011-10-14  9:25 ` [Buildroot] [PATCH v5 3/3] New package: feh yegorslists at googlemail.com
  2 siblings, 0 replies; 9+ messages in thread
From: yegorslists at googlemail.com @ 2011-10-14  9:25 UTC (permalink / raw)
  To: buildroot

From: Yegor Yefremov <yegorslists@googlemail.com>

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 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

diff --git a/package/Config.in b/package/Config.in
index 7a7b4bf..7f82934 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/giblib/Config.in b/package/giblib/Config.in
new file mode 100644
index 0000000..0c704e1
--- /dev/null
+++ b/package/giblib/Config.in
@@ -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/
+
diff --git a/package/giblib/giblib.mk b/package/giblib/giblib.mk
new file mode 100644
index 0000000..8a868c5
--- /dev/null
+++ b/package/giblib/giblib.mk
@@ -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))
+
-- 
1.7.1.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH v5 3/3] New package: feh
  2011-10-14  9:25 [Buildroot] [PATCH v5 0/3] Add utilities to set background image in Fluxbox yegorslists at googlemail.com
  2011-10-14  9:25 ` [Buildroot] [PATCH v5 1/3] New package: ImLib2 yegorslists at googlemail.com
  2011-10-14  9:25 ` [Buildroot] [PATCH v5 2/3] New package: giblib yegorslists at googlemail.com
@ 2011-10-14  9:25 ` yegorslists at googlemail.com
  2011-10-15 10:24   ` Arnout Vandecappelle
  2 siblings, 1 reply; 9+ messages in thread
From: yegorslists at googlemail.com @ 2011-10-14  9:25 UTC (permalink / raw)
  To: buildroot

From: Yegor Yefremov <yegorslists@googlemail.com>

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 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

diff --git a/package/Config.in b/package/Config.in
index 7f82934..b39f41b 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/feh/Config.in b/package/feh/Config.in
new file mode 100644
index 0000000..c89939d
--- /dev/null
+++ b/package/feh/Config.in
@@ -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/
diff --git a/package/feh/feh.mk b/package/feh/feh.mk
new file mode 100644
index 0000000..b59bb2f
--- /dev/null
+++ b/package/feh/feh.mk
@@ -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))
+
-- 
1.7.1.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH v5 3/3] New package: feh
  2011-10-14  9:25 ` [Buildroot] [PATCH v5 3/3] New package: feh yegorslists at googlemail.com
@ 2011-10-15 10:24   ` Arnout Vandecappelle
  2011-10-15 19:09     ` Yegor Yefremov
  0 siblings, 1 reply; 9+ messages in thread
From: Arnout Vandecappelle @ 2011-10-15 10:24 UTC (permalink / raw)
  To: buildroot


On Friday 14 October 2011 11:25:28, yegorslists at googlemail.com wrote:
> +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
-- 
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>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH v5 1/3] New package: ImLib2
  2011-10-14  9:25 ` [Buildroot] [PATCH v5 1/3] New package: ImLib2 yegorslists at googlemail.com
@ 2011-10-15 10:50   ` Arnout Vandecappelle
  2011-10-15 19:01     ` Yegor Yefremov
  0 siblings, 1 reply; 9+ messages in thread
From: Arnout Vandecappelle @ 2011-10-15 10:50 UTC (permalink / raw)
  To: buildroot

 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
-- 
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>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH v5 1/3] New package: ImLib2
  2011-10-15 10:50   ` Arnout Vandecappelle
@ 2011-10-15 19:01     ` Yegor Yefremov
  2011-10-17  7:12       ` Arnout Vandecappelle
  0 siblings, 1 reply; 9+ messages in thread
From: Yegor Yefremov @ 2011-10-15 19:01 UTC (permalink / raw)
  To: buildroot

On Sat, Oct 15, 2011 at 12:50 PM, Arnout Vandecappelle <arnout@mind.be> wrote:
> 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.

Thanks for testing, I'll make it so.

Have you tried some other combinations? Till now I just tried the whole set.

Yegor

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH v5 3/3] New package: feh
  2011-10-15 10:24   ` Arnout Vandecappelle
@ 2011-10-15 19:09     ` Yegor Yefremov
  0 siblings, 0 replies; 9+ messages in thread
From: Yegor Yefremov @ 2011-10-15 19:09 UTC (permalink / raw)
  To: buildroot

On Sat, Oct 15, 2011 at 12:24 PM, Arnout Vandecappelle <arnout@mind.be> wrote:
>
> On Friday 14 October 2011 11:25:28, yegorslists at googlemail.com wrote:
>
>> +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?

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH v5 1/3] New package: ImLib2
  2011-10-15 19:01     ` Yegor Yefremov
@ 2011-10-17  7:12       ` Arnout Vandecappelle
  0 siblings, 0 replies; 9+ messages in thread
From: Arnout Vandecappelle @ 2011-10-17  7:12 UTC (permalink / raw)
  To: buildroot


On Saturday 15 October 2011 21:01:51, Yegor Yefremov wrote:
> Have you tried some other combinations? Till now I just tried the whole set.

 No, just with PNG and with/without FREETYPE.

 Regards,
 Arnout
-- 
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-10-17  7:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-14  9:25 [Buildroot] [PATCH v5 0/3] Add utilities to set background image in Fluxbox yegorslists at googlemail.com
2011-10-14  9:25 ` [Buildroot] [PATCH v5 1/3] New package: ImLib2 yegorslists at googlemail.com
2011-10-15 10:50   ` Arnout Vandecappelle
2011-10-15 19:01     ` Yegor Yefremov
2011-10-17  7:12       ` Arnout Vandecappelle
2011-10-14  9:25 ` [Buildroot] [PATCH v5 2/3] New package: giblib yegorslists at googlemail.com
2011-10-14  9:25 ` [Buildroot] [PATCH v5 3/3] New package: feh yegorslists at googlemail.com
2011-10-15 10:24   ` Arnout Vandecappelle
2011-10-15 19:09     ` Yegor Yefremov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox