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