first commit
[scm/bb/meta-tizen.git] / recipes-tizen / libcamsrcjpegenc-sw-libjpeg / libcamsrcjpegenc-sw-libjpeg.inc
1 DESCRIPTION = "Multimedia Framework Camera Src Jpeg Encoder Library (libjpeg)"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "libdevel"
4 LICENSE = "Apache-2.0"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by libcamsrcjpegenc-sw-libjpeg 
13 PROVIDES += "libcamsrcjpegenc-sw-libjpeg"
14 RPROVIDES_libcamsrcjpegenc-sw-libjpeg += "libcamsrcjpegenc-sw-libjpeg"
15
16 RDEPENDS = ""
17
18 DEPENDS = ""
19 #DEPENDS of libcamsrcjpegenc-sw-libjpeg 
20 DEPENDS += "libcamsrcjpegenc"
21 DEPENDS += "pkgconfig(glib-2.0)"
22 DEPENDS += "libjpeg-turbo-devel"
23 DEPENDS += "dlog"
24 DEPENDS += "pkgconfig(mmutil-imgp)"
25
26 do_patch() {
27  chmod -Rf a+rX,u+w,g-w,o-w ${S}
28  #setup -q -n libcamsrcjpegenc-sw-libjpeg-0.1.6
29  cp ${S}/packaging/libcamsrcjpegenc-sw-libjpeg.manifest .
30  
31  
32 }
33
34 do_configure() {
35 }
36
37 do_compile() {
38  LANG=C
39  export LANG
40  unset DISPLAY
41  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
42  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
43  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
44  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
45  
46  ./autogen.sh
47  
48    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
49    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
50    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
51    autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
52          --target=x86_64-tizen-linux \
53          --program-prefix= \
54          --prefix=/usr \
55          --exec-prefix=/usr \
56          --bindir=/usr/bin \
57          --sbindir=/usr/sbin \
58          --sysconfdir=/etc \
59          --datadir=/usr/share \
60          --includedir=/usr/include \
61          --libdir=/usr/lib \
62          --libexecdir=/usr/libexec \
63          --localstatedir=/var \
64          --sharedstatedir=/usr/com \
65          --mandir=/usr/share/man \
66          --infodir=/usr/share/info --disable-static --enable-dlog
67  make -j16
68  
69  
70  
71 }
72
73 do_install() {
74  echo export RPM_BUILD_ROOT=${D}
75  LANG=C
76  export LANG
77  unset DISPLAY
78  rm -rf ${D} 
79  mkdir -p ${D} 
80  
81  rm -rf ${D}
82  mkdir -p ${D}/usr/share/license
83  cp LICENSE.APLv2 ${D}/usr/share/license/libcamsrcjpegenc-sw-libjpeg
84  
85    oe_runmake \
86          DESTDIR=${D} \
87          INSTALL_ROOT=${D} \
88          BINDIR=/usr/bin \
89    install  
90    rm -f ${D}/usr/share/info/dir 
91    find ${D} -regex ".*\.la$" | xargs rm -f -- 
92    find ${D} -regex ".*\.a$" | xargs rm -f --
93  
94  
95 }
96
97 PACKAGES = ""
98 PACKAGES += "libcamsrcjpegenc-sw-libjpeg"
99
100 libcamsrcjpegenc-sw-libjpeg_files = ""
101 libcamsrcjpegenc-sw-libjpeg_files += "libcamsrcjpegenc-sw-libjpeg.manifest"
102 libcamsrcjpegenc-sw-libjpeg_files += "/usr/lib/libcamsrcjpegenc-sw.so*"
103 libcamsrcjpegenc-sw-libjpeg_files += "/usr/share/license/libcamsrcjpegenc-sw-libjpeg"
104
105 FILES_${PN} = "${libcamsrcjpegenc-sw-libjpeg_files}"
106
107 PKG_libcamsrcjpegenc-sw-libjpeg= "libcamsrcjpegenc-sw-libjpeg"
108
109 require libcamsrcjpegenc-sw-libjpeg-extraconf.inc