Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] liberation: add support for custom target directory
@ 2011-01-12 13:51 Luca Ceresoli
  2011-01-14  8:47 ` Thomas Petazzoni
  0 siblings, 1 reply; 8+ messages in thread
From: Luca Ceresoli @ 2011-01-12 13:51 UTC (permalink / raw)
  To: buildroot

Daniel Nystr?m wrote:
> > In other words, which use case is this solving ? If it's a general font
> > location problem, maybe this should not be a Liberation-specific option.
> 
> In my opinion, letting default installation directory keep using font
> named subdir but still configurable would cover most cases.

I think Thomas is right: a unique setting should be used to override
the font install dir.

It might look like this in menuconfig:

      *** X libraries and helper libraries ***
  ()  Force all fonts to be installed here {*}
  [*] DejaVu (Free fonts)  --->
  [ ] Liberation (Free fonts) 
      *** X Window managers ***

{*} if this is empty, each font .mk will install in the default directory,
as liberation does in current head;
otherwise all fonts will be copied in the directory specified.

How about this?

Luca

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/2] liberation: add support for custom target directory
@ 2011-01-12 11:03 Daniel Nyström
  2011-01-12 11:08 ` Thomas Petazzoni
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Nyström @ 2011-01-12 11:03 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Daniel Nystr?m <daniel.nystrom@timeterminal.se>
---
 package/liberation/Config.in     |    9 +++++++++
 package/liberation/liberation.mk |    2 +-
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/package/liberation/Config.in b/package/liberation/Config.in
index 48d4195..9295b4e 100644
--- a/package/liberation/Config.in
+++ b/package/liberation/Config.in
@@ -5,3 +5,12 @@ config BR2_PACKAGE_LIBERATION
 	  three most commonly used fonts on Microsoft systems:
 	  Times New Roman, Arial, and Courier New.
 
+if BR2_PACKAGE_LIBERATION
+
+config BR2_PACKAGE_LIBERATION_INSTALL_DIR
+	string "Install directory"
+	default "/usr/share/fonts/liberation"
+	help
+	  Target directory where the fonts should be installed
+
+endif
diff --git a/package/liberation/liberation.mk b/package/liberation/liberation.mk
index 89987d6..53b817d 100644
--- a/package/liberation/liberation.mk
+++ b/package/liberation/liberation.mk
@@ -7,7 +7,7 @@ LIBERATION_VERSION = 1.06.0.20100721
 LIBERATION_SITE = http://www.fedorahosted.org/releases/l/i/liberation-fonts
 LIBERATION_SOURCE = liberation-fonts-ttf-$(LIBERATION_VERSION).tar.gz
 
-LIBERATION_TARGET_DIR = $(TARGET_DIR)/usr/share/fonts/liberation
+LIBERATION_TARGET_DIR = $(TARGET_DIR)/$(BR2_PACKAGE_LIBERATION_INSTALL_DIR)
 
 define LIBERATION_INSTALL_TARGET_CMDS
 	mkdir -p $(LIBERATION_TARGET_DIR)
-- 
1.7.1

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

end of thread, other threads:[~2011-01-15 12:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-12 13:51 [Buildroot] [PATCH 1/2] liberation: add support for custom target directory Luca Ceresoli
2011-01-14  8:47 ` Thomas Petazzoni
2011-01-14 16:48   ` Luca Ceresoli
2011-01-14 17:12     ` Thomas Petazzoni
2011-01-15 12:23       ` Luca Ceresoli
  -- strict thread matches above, loose matches on Subject: below --
2011-01-12 11:03 Daniel Nyström
2011-01-12 11:08 ` Thomas Petazzoni
2011-01-12 13:14   ` Daniel Nyström

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