first commit
[scm/bb/meta-tizen.git] / recipes-tizen / usbutils / usbutils.inc
1 DESCRIPTION = "Linux USB utilities"
2 HOMEPAGE = "http://www.linux-usb.org/"
3 SECTION = "Base/Device Management"
4 LICENSE = "GPL-2.0+"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by usbutils 
13 PROVIDES += "usbutils"
14 RPROVIDES_usbutils += "usbutils"
15
16 #PROVIDES by usbutils-docs  
17 PROVIDES += "usbutils-docs "
18 RPROVIDES_usbutils-docs  += "usbutils-docs "
19
20 RDEPENDS = ""
21
22 DEPENDS = ""
23 #DEPENDS of usbutils 
24 DEPENDS += "autoconf-native"
25 DEPENDS += "libtool-cross"
26 DEPENDS += "pkgconfig(libusb-1.0)"
27
28 do_patch() {
29  chmod -Rf a+rX,u+w,g-w,o-w ${S}
30  #setup -q
31  cp ${S}/packaging/usbutils.manifest .
32  
33  
34 }
35
36 do_configure() {
37 }
38
39 do_compile() {
40  LANG=C
41  export LANG
42  unset DISPLAY
43  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
44  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
45  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
46  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
47  
48  
49    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
50    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
51    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
52    autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
53          --target=x86_64-tizen-linux \
54          --program-prefix= \
55          --prefix=/usr \
56          --exec-prefix=/usr \
57          --bindir=/usr/bin \
58          --sbindir=/usr/sbin \
59          --sysconfdir=/etc \
60          --datadir=/usr/share \
61          --includedir=/usr/include \
62          --libdir=/usr/lib \
63          --libexecdir=/usr/libexec \
64          --localstatedir=/var \
65          --sharedstatedir=/usr/com \
66          --mandir=/usr/share/man \
67          --infodir=/usr/share/info \
68         --datadir=/usr/share/hwdata \
69      --disable-usbids
70  
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  make install DESTDIR=${D} pkgconfigdir=/usr/share/pkgconfig
86  
87  
88  
89 }
90
91 PACKAGES = ""
92 PACKAGES += "usbutils"
93 PACKAGES += "usbutils-docs"
94
95 usbutils_files = ""
96 usbutils_files += "usbutils.manifest"
97 usbutils_files += "/usr/bin/*"
98 usbutils_files += "/usr/share/*"
99
100 usbutils-docs_files = ""
101 usbutils-docs_files += "/usr/share/info"
102 usbutils-docs_files += "/usr/share/man"
103
104 FILES_${PN} = "${usbutils_files}"
105 FILES_${PN}-docs = "${usbutils-docs_files}"
106
107 PKG_usbutils= "usbutils"
108 PKG_usbutils-docs= "usbutils-docs"
109
110 require usbutils-extraconf.inc