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