first commit
[scm/bb/meta-tizen.git] / recipes-tizen / libXdmcp / libXdmcp.inc
1 DESCRIPTION = "X Display Manager Control Protocol library"
2 HOMEPAGE = "http://www.x.org"
3 SECTION = "Graphics/X Window System"
4 LICENSE = "MIT"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by libXdmcp-devel 
13 PROVIDES += "libXdmcp-devel"
14 RPROVIDES_libXdmcp-devel += "libXdmcp-devel"
15 RPROVIDES_libXdmcp-devel += "libXdmcp-dev"
16
17 #PROVIDES by libXdmcp 
18 PROVIDES += "libXdmcp"
19 RPROVIDES_libXdmcp += "libXdmcp"
20
21 RDEPENDS = ""
22 #RDEPENDS of libXdmcp-devel (${PN}-devel)
23 RDEPENDS_${PN}-devel += "libXdmcp"
24
25
26 DEPENDS = ""
27 #DEPENDS of libXdmcp 
28 DEPENDS += "pkgconfig(xproto)"
29 DEPENDS += "pkgconfig(xorg-macros)"
30
31 do_patch() {
32  chmod -Rf a+rX,u+w,g-w,o-w ${S}
33  #setup -q
34  cp ${S}/packaging/libXdmcp.manifest .
35  
36  
37 }
38
39 do_configure() {
40 }
41
42 do_compile() {
43  LANG=C
44  export LANG
45  unset DISPLAY
46  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
47  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
48  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
49  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
50  
51  
52    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
53    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
54    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
55    autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
56          --target=x86_64-tizen-linux \
57          --program-prefix= \
58          --prefix=/usr \
59          --exec-prefix=/usr \
60          --bindir=/usr/bin \
61          --sbindir=/usr/sbin \
62          --sysconfdir=/etc \
63          --datadir=/usr/share \
64          --includedir=/usr/include \
65          --libdir=/usr/lib \
66          --libexecdir=/usr/libexec \
67          --localstatedir=/var \
68          --sharedstatedir=/usr/com \
69          --mandir=/usr/share/man \
70          --infodir=/usr/share/info --disable-static 
71  make -j16
72  
73  
74  
75 }
76
77 do_install() {
78  echo export RPM_BUILD_ROOT=${D}
79  LANG=C
80  export LANG
81  unset DISPLAY
82  rm -rf ${D} 
83  mkdir -p ${D} 
84  
85  
86    oe_runmake \
87          DESTDIR=${D} \
88          INSTALL_ROOT=${D} \
89          BINDIR=/usr/bin \
90    install  
91    rm -f ${D}/usr/share/info/dir 
92    find ${D} -regex ".*\.la$" | xargs rm -f -- 
93    find ${D} -regex ".*\.a$" | xargs rm -f --
94  
95  
96    rm -rf ${D}/usr/share/info 
97    rm -rf ${D}/usr/share/doc/packages 
98    rm -rf ${D}/usr/share/doc/libXdmcp 
99    rm -rf ${D}/usr/share/doc/libXdmcp-1.1.1 
100    rm -rf ${D}/usr/share/gtk-doc 
101    rm -rf ${D}/usr/share/doc 
102    rm -rf ${D}/usr/share/man 
103    find ${D} -regex ".*/man/man./.*.[0-9]" | xargs rm -f -- 
104    find ${D} -regex ".*/man/../man./.*.[0-9]" | xargs rm -f -- 
105    find ${D} -regex ".*/man/man./.*.[0-9]pm" | xargs rm -f --
106  
107  
108 }
109
110 PACKAGES = ""
111 PACKAGES += "libXdmcp-devel"
112 PACKAGES += "libXdmcp"
113
114 libXdmcp-devel_files = ""
115 libXdmcp-devel_files += "libXdmcp.manifest"
116 libXdmcp-devel_files += "/usr/include/X11/Xdmcp.h"
117 libXdmcp-devel_files += "/usr/lib/libXdmcp.so"
118 libXdmcp-devel_files += "/usr/lib/pkgconfig/xdmcp.pc"
119
120 libXdmcp_files = ""
121 libXdmcp_files += "libXdmcp.manifest"
122 libXdmcp_files += "/usr/lib/libXdmcp.so.6"
123 libXdmcp_files += "/usr/lib/libXdmcp.so.6.0.0"
124
125 FILES_${PN}-devel = "${libXdmcp-devel_files}"
126 FILES_${PN} = "${libXdmcp_files}"
127
128 PKG_libXdmcp-devel= "libXdmcp-devel"
129 PKG_libXdmcp= "libXdmcp"
130
131 require libXdmcp-extraconf.inc