summaryrefslogtreecommitdiff
path: root/xfonts/xfonts-xorg_6.8.oe
blob: 6b95fd07a2ff3f8c4f29f4602373caedd3cdc927 (plain)
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
SECTION = "x11/base"
PR = "r0"

SRC_URI = "cvs://anoncvs@cvs.freedesktop.org/cvs/xorg;module=xc;tag=XORG-6_8_0;method=pserver \
        file://imake-staging.patch;patch=1"

inherit native

PACKAGES = "${PN}-75dpi ${PN}-100dpi ${PN}-type1 ${PN}-cyrillic ${PN}-ttf ${PN}"
FILES_${PN}-75dpi = "/usr/lib/X11/fonts/75dpi"
FILES_${PN}-100dpi = "/usr/lib/X11/fonts/100dpi"
FILES_${PN}-type1 = "/usr/lib/X11/fonts/Type1"
FILES_${PN}-ttf = "/usr/lib/X11/fonts/TTF"
FILES_${PN}-cyrillic = "/usr/lib/X11/fonts/cyrillic"
FILES_${PN} = "/usr/lib/X11/fonts"

PACKAGE_ARCH = "all"

S = "${WORKDIR}/xc"

do_configure() {
	echo "#define ProjectRoot /usr" >> config/cf/host.def
	echo "#define XnestServer NO"  >> config/cf/host.def
	echo "#define XdmxServer NO"  >> config/cf/host.def
	echo "#define CcCmd ${CC}" >> config/cf/host.def
	echo "#define LdCmd ${LD}" >> config/cf/host.def
	echo "" > config/cf/date.def
}

do_compile() {
	make -C config/imake -f Makefile.ini CC="${BUILD_CC}" BOOTSTRAPCFLAGS="${BUILD_CFLAGS}" clean imake
	make CC="${BUILD_CC}" xmakefile
	make Makefiles
	make clean
	#make depend
	make includes
	make -C config/util
	make -C lib/font
	make -C lib/fontenc
	make -C lib/fontconfig
	make -C programs/mkfontscale
	make -C programs/bdftopcf
	make -C programs/fc-cache
	make -C fonts
}

do_install() {
	make -C fonts DESTDIR="${D}" install
}

do_stage() {
	:
}