1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
#!/usr/bin/make -f
%:
dh $@
# Reassure blhc that TTX isn't running a C compiler behind its back.
execute_before_dh_auto_build:
@echo blhc: ignore-line-regexp: \
'^Compiling ".+\.ttx" to ".+\.otf"\.\.\.$$'
override_dh_compress:
dh_compress -X.pdf
### Build X fonts from upstream BDFs.
PCFGZS = bedstead-10.pcf.gz bedstead-20.pcf.gz bedstead-bold-20.pcf.gz
%.pcf: %.bdf
bdftopcf -t -o $@ $<
%.pcf.gz: %.pcf
gzip -9nk $<
### Build console fonts from upstream BDFs.
# We restrict ourselves to codesets that are reasonably well-covered
# by Bedstead.
SMALL_CODESETS = CyrKoi CyrSlav Greek Hebrew Lat15 Lat2 Lat38
FULL_CODESETS = FullCyrSlav FullGreek
LARGE_CODESETS = Uni2
CODESETS = $(SMALL_CODESETS) $(LARGE_CODESETS) \
$(addprefix Full, $(FULL_CODESETS))
SMALL_PSFS = $(addsuffix -Bedstead20x12.psf,$(SMALL_CODESETS)) \
$(addsuffix -Bedstead10x6.psf,$(SMALL_CODESETS))
FULL_PSFS = $(addsuffix -Bedstead20x12.psf,$(FULL_CODESETS)) \
$(addsuffix -Bedstead10x6.psf,$(FULL_CODESETS))
LARGE_PSFS = $(addsuffix -Bedstead20x12.psf,$(LARGE_CODESETS)) \
$(addsuffix -Bedstead10x6.psf,$(LARGE_CODESETS))
PSFS = $(SMALL_PSFS) $(FULL_PSFS) $(LARGE_PSFS)
PSFGZS = $(addsuffix .gz,$(PSFS))
B2PDIR = /usr/share/bdf2psf
$(SMALL_PSFS): size = 256
$(LARGE_PSFS) $(FULL_PSFS): size = 512
$(SMALL_PSFS): fontset = $(B2PDIR)/fontsets/$*.256
$(FULL_PSFS): fontset = $(B2PDIR)/fontsets/$(subst Full,,$*).256
$(LARGE_PSFS): fontset = $(B2PDIR)/fontsets/$*.512
$(SMALL_PSFS) $(LARGE_PSFS): equivs = $(B2PDIR)/standard.equivalents
$(FULL_PSFS): equivs = /dev/null
symbols = $(B2PDIR)/ascii.set+$(B2PDIR)/linux.set+$(fontset)+:$(B2PDIR)/useful.set
%-Bedstead20x12.psf: bedstead-20.bdf
bdf2psf --fb bedstead-20.bdf $(equivs) $(symbols) $(size) $@
%-Bedstead10x6.psf: bedstead-10.bdf
bdf2psf --fb bedstead-10.bdf $(equivs) $(symbols) $(size) $@
%.psf.gz: %.psf
gzip -9nk $<
execute_after_dh_auto_build: $(PCFGZS) $(PSFGZS)
true
|