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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
|
#!/usr/bin/make -f
#
# debian/rules file for hbf-jfs56 for Debian.
# GNU GPL v2, Copyright (C) 1999, Anthony Fok <foka@debian.org>
# Font-specific configuration
# Nominal names
fonttype = hbf
fontlang = gb2312
fontset = jfs56
fontname = $(fontset)
# What CJK for LaTeX know these fonts as
supplier = gb2312
typeface = gsfs14
subfonts = 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 \
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
package = $(fonttype)-$(fontname)
d = debian/tmp
texmf = usr/share/texmf
src_fontpath = fonts/$(fonttype)/$(fontlang)/$(fontset)
src_docpath = doc/fonts/$(fonttype)/$(supplier)/$(fontname)
dest_fontpath = usr/share/fonts/$(fonttype)
dest_texfontpath = $(texmf)/fonts/$(fonttype)/$(supplier)
dest_tfmpath = $(texmf)/fonts/tfm/$(supplier)/$(typeface)
dest_docpath = usr/share/doc/texmf/fonts/$(fonttype)/$(supplier)
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatibility version to use.
export DH_COMPAT=1
build: build-stamp
build-stamp:
dh_testdir
# Add here commands to compile the package.
( cd $(src_fontpath) && \
/usr/bin/hbf2gf ../../../../hbf2gf/$(typeface).cfg )
mv $(src_fontpath)/$(typeface) $(src_fontpath)/$(typeface).pl .
pltotf $(typeface).pl
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
rm -rf fonts/pk fonts/tfm
rm -f $(typeface) $(typeface).pl $(typeface).tfm
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs $(dest_fontpath) $(dest_tfmpath) $(dest_docpath) \
$(dest_texfontpath)
# Add here commands to install the package into debian/tmp.
cp -av $(src_fontpath) $(d)/$(dest_fontpath)/
ln -s ../../../../fonts/$(fonttype)/$(fontset) \
$(d)/$(dest_texfontpath)/
for i in $(subfonts); do \
ln $(typeface).tfm $(d)/$(dest_tfmpath)/$(typeface)$$i.tfm; \
done
# Build architecture-independent files here.
binary-indep: build install
# dh_testversion
dh_testdir
dh_testroot
dh_installdocs $(src_docpath)/*
ln -s ../../../../$(package) \
$(d)/$(dest_docpath)/$(fontname)
# dh_installexamples
dh_installchangelogs
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
# Build architecture-dependent files here.
binary-arch: build install
# We have nothing to do by default.
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|