first commit
[scm/bb/meta-tizen.git] / recipes-tizen / mkfontdir / mkfontdir.inc
1 DESCRIPTION = "Utility to create index of X font files"
2 HOMEPAGE = "http://xorg.freedesktop.org/"
3 SECTION = "System/X11/Utilities"
4 LICENSE = "MIT"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by mkfontdir 
13 PROVIDES += "mkfontdir"
14 RPROVIDES_mkfontdir += "mkfontdir"
15
16 RDEPENDS = ""
17 #RDEPENDS of mkfontdir (${PN})
18 RDEPENDS_${PN} += "mkfontscale"
19
20
21 DEPENDS = ""
22 #DEPENDS of mkfontdir 
23 DEPENDS += "pkgconfig-native"
24 DEPENDS += "pkgconfig(xorg-macros)"
25
26 do_patch() {
27  chmod -Rf a+rX,u+w,g-w,o-w ${S}
28  #setup -q
29  cp ${S}/packaging/mkfontdir.manifest .
30  
31  
32 }
33
34 do_configure() {
35 }
36
37 do_compile() {
38  LANG=C
39  export LANG
40  unset DISPLAY
41  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
42  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
43  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
44  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
45  
46  
47    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
48    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
49    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
50    autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
51          --target=x86_64-tizen-linux \
52          --program-prefix= \
53          --prefix=/usr \
54          --exec-prefix=/usr \
55          --bindir=/usr/bin \
56          --sbindir=/usr/sbin \
57          --sysconfdir=/etc \
58          --datadir=/usr/share \
59          --includedir=/usr/include \
60          --libdir=/usr/lib \
61          --libexecdir=/usr/libexec \
62          --localstatedir=/var \
63          --sharedstatedir=/usr/com \
64          --mandir=/usr/share/man \
65          --infodir=/usr/share/info
66  make -j16
67  
68  
69  
70 }
71
72 do_install() {
73  echo export RPM_BUILD_ROOT=${D}
74  LANG=C
75  export LANG
76  unset DISPLAY
77  rm -rf ${D} 
78  mkdir -p ${D} 
79  
80  
81    oe_runmake \
82          DESTDIR=${D} \
83          INSTALL_ROOT=${D} \
84          BINDIR=/usr/bin \
85    install  
86    rm -f ${D}/usr/share/info/dir 
87    find ${D} -regex ".*\.la$" | xargs rm -f -- 
88    find ${D} -regex ".*\.a$" | xargs rm -f --
89  
90  
91 }
92
93 PACKAGES = ""
94 PACKAGES += "mkfontdir"
95
96 mkfontdir_files = ""
97 mkfontdir_files += "mkfontdir.manifest"
98 mkfontdir_files += "ChangeLog COPYING README"
99 mkfontdir_files += "/usr/bin/mkfontdir"
100 mkfontdir_files += "/usr/share/man/man1/mkfontdir.1.gz"
101
102 FILES_${PN} = "${mkfontdir_files}"
103
104 PKG_mkfontdir= "mkfontdir"
105
106 require mkfontdir-extraconf.inc