root/trunk/max-genlive/gfxboot/Makefile @ 235

Revision 235, 2.8 KB (checked in by max, 19 months ago)

mario.izquierdo
max-genlive (4.0.max0.46)

  • Update gfxboot-theme-ubuntu package (0.5.20)
    • Better language support
Line 
1ifneq ($(BINDIR),)
2BINDIR      := $(BINDIR)/
3else
4BINDIR      := $(dir $(firstword $(wildcard /usr/bin/mkbootmsg) $(wildcard ../../mkbootmsg)))
5endif
6ifneq ($(PRIVBINDIR),)
7PRIVBINDIR  := $(PRIVBINDIR)/
8else
9PRIVBINDIR  := $(dir $(firstword $(wildcard /usr/share/gfxboot/bin/keymapchars) $(wildcard ../../keymapchars)))
10endif
11
12MKBOOTMSG    = $(BINDIR)mkbootmsg
13KEYMAPCHARS  = $(PRIVBINDIR)keymapchars
14BFLAGS       = -O -v -L ../..
15INCLUDES     = $(wildcard *.inc)
16# Filter out Arabic, Indic languages, and Thai, which we cannot render, and
17# Dzongkha and Mongolian, which ought to be rendered vertically.
18# gfxboot has no bidirectional text support yet
19# (https://bugs.launchpad.net/ubuntu/+source/gfxboot/+bug/212491) so
20# right-to-left languages (Arabic and Hebrew) won't work.
21TRANSLATIONS = $(addsuffix .tr,en $(filter-out ar bn dz gu he hi km ml mn ne pa ta th, $(notdir $(basename $(wildcard po/*.po)))))
22
23DEFAULT_LANG =
24
25PIC_COMMON   = back.jpg
26
27FILES_CORE   = init
28
29INST_EXT     = langlist $(TRANSLATIONS) 16x16.fnt $(PIC_COMMON)
30
31FILES_INST   = $(FILES_CORE) $(INST_EXT)
32
33FILES_BOOT   = $(FILES_CORE) langlist $(TRANSLATIONS) 16x16.fnt \
34               $(PIC_COMMON)
35
36FILES_BOOT_EN = $(FILES_CORE) en.tr 16x16.fnt $(PIC_COMMON)
37
38ifdef DEFAULT_LANG
39FILES_INST += lang
40FILES_BOOT += lang
41FILES_BOOT_EN += lang $(DEFAULT_LANG).tr
42endif
43
44.PHONY: all themes font clean po
45
46all: themes
47
48boot install: po
49        mkdir -p $@
50
51po:
52        make -C po
53
54themes: bootdir installdir
55
56bootdir: boot.config boot $(INCLUDES)
57        @cp -a po/*.tr boot
58        @for i in $(FILES_BOOT) ; do [ -f $$i ] && cp $$i boot ; done ; true
59        @echo en >boot/langlist
60        $(MKBOOTMSG) $(BFLAGS) -l boot/log -c $< boot/init
61ifdef DEFAULT_LANG
62        @echo $(DEFAULT_LANG) >boot/lang
63        @echo $(DEFAULT_LANG) >>boot/langlist
64endif
65        @cd boot && echo $(FILES_BOOT_EN) | sed -e "s/ /\n/g" | cpio --quiet -o >message
66
67installdir: install.config install $(INCLUDES)
68        @cp -a po/*.tr install
69        @for i in $(FILES_INST) ; do [ -f $$i ] && cp $$i install ; done ; true
70        $(MKBOOTMSG) $(BFLAGS) -l install/log -c $< install/init
71ifdef DEFAULT_LANG
72        @echo $(DEFAULT_LANG) >install/lang
73endif
74        @cd install && echo $(FILES_CORE) | sed -e "s/ /\n/g" | cpio --quiet -o >bootlogo
75        @tar -C install -czf install/bootlogo.tar.gz bootlogo $(INST_EXT)
76
77font:
78        @if [ -z "$(DI_PATH)" ]; then echo "Please set DI_PATH to an unpacked debian-installer source tree" >&2; exit 1; fi
79        cat po/*.po >tmp.txt
80        cat $(DI_PATH)/build/boot/x86/po/*.po >>tmp.txt
81        mkblfont -v -l 18 -p /usr/share/fonts/X11/misc \
82        -c ISO-8859-15 -c ISO-8859-2 -c koi8-r \
83        `$(KEYMAPCHARS) keytables.inc` \
84        -t tmp.txt \
85        -t install/log -t boot/log \
86        -t langlist -t langnames.inc \
87        -f unifont:prop=2:space_width=4 \
88        16x16.fnt >16x16.fnt.log
89        rm -f tmp.txt
90
91clean:
92        make -C po clean
93        rm -f bootdir installdir *~ *.log
94        rm -rf boot install
Note: See TracBrowser for help on using the browser.