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