* [Buildroot] [PATCH 1/2] directfb: fixup directfb-config for correctness
@ 2011-02-09 18:22 Gustavo Zacarias
2011-02-09 18:22 ` [Buildroot] [PATCH 2/2] links: bump to version 2.3pre1 Gustavo Zacarias
2011-02-09 21:58 ` [Buildroot] [PATCH 1/2] directfb: fixup directfb-config for correctness Peter Korsgaard
0 siblings, 2 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2011-02-09 18:22 UTC (permalink / raw)
To: buildroot
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/directfb/directfb.mk | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/package/directfb/directfb.mk b/package/directfb/directfb.mk
index 36b1c0a..98590cc 100644
--- a/package/directfb/directfb.mk
+++ b/package/directfb/directfb.mk
@@ -137,6 +137,14 @@ HOST_DIRECTFB_BUILD_CMDS = \
HOST_DIRECTFB_INSTALL_CMDS = \
$(INSTALL) -m 0755 $(@D)/tools/directfb-csource $(HOST_DIR)/usr/bin
+define DIRECTFB_STAGING_CONFIG_FIXUP
+ $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \
+ -e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
+ $(STAGING_DIR)/usr/bin/directfb-config
+endef
+
+DIRECTFB_POST_INSTALL_STAGING_HOOKS += DIRECTFB_STAGING_CONFIG_FIXUP
+
$(eval $(call AUTOTARGETS,package,directfb))
$(eval $(call AUTOTARGETS,package,directfb,host))
--
1.7.3.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 2/2] links: bump to version 2.3pre1
2011-02-09 18:22 [Buildroot] [PATCH 1/2] directfb: fixup directfb-config for correctness Gustavo Zacarias
@ 2011-02-09 18:22 ` Gustavo Zacarias
2011-02-09 22:01 ` Peter Korsgaard
2011-02-09 21:58 ` [Buildroot] [PATCH 1/2] directfb: fixup directfb-config for correctness Peter Korsgaard
1 sibling, 1 reply; 4+ messages in thread
From: Gustavo Zacarias @ 2011-02-09 18:22 UTC (permalink / raw)
To: buildroot
* Switch to links 2.3pre1.
* Enable graphics mode via directfb.
TODO: Support X11 mode, maybe linuxfb (requires gpm).
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/links/Config.in | 11 ++++++-
...sl-largefile.patch => links-no-largefile.patch} | 0
package/links/links.mk | 35 +++++++++++++++----
3 files changed, 37 insertions(+), 9 deletions(-)
rename package/links/{links-1.01pre1-no-ssl-largefile.patch => links-no-largefile.patch} (100%)
diff --git a/package/links/Config.in b/package/links/Config.in
index 5a0ce9c..fddf3d2 100644
--- a/package/links/Config.in
+++ b/package/links/Config.in
@@ -3,4 +3,13 @@ config BR2_PACKAGE_LINKS
help
Graphics and text mode WWW browser (kind of like lynx).
- http://atrey.karlin.mff.cuni.cz/~clock/twibright/links
+ http://links.twibright.com/
+
+config BR2_PACKAGE_LINKS_GRAPHICS
+ bool "use graphics (directfb)"
+ depends on BR2_PACKAGE_LINKS
+ select BR2_PACKAGE_DIRECTFB
+ select BR2_PACKAGE_LIBPNG
+ help
+ Enable graphics output.
+ Otherwise links will be text-mode only.
diff --git a/package/links/links-1.01pre1-no-ssl-largefile.patch b/package/links/links-no-largefile.patch
similarity index 100%
rename from package/links/links-1.01pre1-no-ssl-largefile.patch
rename to package/links/links-no-largefile.patch
diff --git a/package/links/links.mk b/package/links/links.mk
index 2e17066..b8520d4 100644
--- a/package/links/links.mk
+++ b/package/links/links.mk
@@ -1,16 +1,35 @@
#############################################################
#
-# links (text based web browser)
+# links
#
#############################################################
-LINKS_VERSION:=1.01pre1-no-ssl
-LINKS_SITE:=http://artax.karlin.mff.cuni.cz/~mikulas/vyplody/links/download/no-ssl
-LINKS_SOURCE:=links-$(LINKS_VERSION).tar.gz
-LINKS_CONF_OPT = --localstatedir=/tmp
+LINKS_VERSION = 2.3pre1
+LINKS_SITE = http://links.twibright.com/download
+LINKS_CONF_OPT = --without-x
-define LINKS_INSTALL_TARGET_CMDS
- install -c $(@D)/links $(TARGET_DIR)/usr/bin/links
-endef
+ifeq ($(BR2_PACKAGE_LINKS_GRAPHICS),y)
+LINKS_CONF_OPT += --enable-graphics
+LINKS_CONF_ENV = ac_cv_path_DIRECTFB_CONFIG=$(STAGING_DIR)/usr/bin/directfb-config
+LINKS_DEPENDENCIES += directfb libpng
+ifeq ($(BR2_PACKAGE_JPEG),y)
+LINKS_DEPENDENCIES += jpeg
+endif
+ifeq ($(BR2_PACKAGE_TIFF),y)
+LINKS_DEPENDENCIES += tiff
+endif
+endif
+
+ifeq ($(BR2_PACKAGE_BZIP2),y)
+LINKS_DEPENDENCIES += bzip2
+endif
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+LINKS_DEPENDENCIES += openssl
+endif
+
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+LINKS_DEPENDENCIES += zlib
+endif
$(eval $(call AUTOTARGETS,package,links))
--
1.7.3.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* [Buildroot] [PATCH 1/2] directfb: fixup directfb-config for correctness
2011-02-09 18:22 [Buildroot] [PATCH 1/2] directfb: fixup directfb-config for correctness Gustavo Zacarias
2011-02-09 18:22 ` [Buildroot] [PATCH 2/2] links: bump to version 2.3pre1 Gustavo Zacarias
@ 2011-02-09 21:58 ` Peter Korsgaard
1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2011-02-09 21:58 UTC (permalink / raw)
To: buildroot
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
Gustavo> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-02-09 22:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-09 18:22 [Buildroot] [PATCH 1/2] directfb: fixup directfb-config for correctness Gustavo Zacarias
2011-02-09 18:22 ` [Buildroot] [PATCH 2/2] links: bump to version 2.3pre1 Gustavo Zacarias
2011-02-09 22:01 ` Peter Korsgaard
2011-02-09 21:58 ` [Buildroot] [PATCH 1/2] directfb: fixup directfb-config for correctness Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox