first commit
[scm/bb/meta-tizen.git] / recipes-tizen / qtimageformats / qtimageformats.inc
1 DESCRIPTION = "Qt Imageformats"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "Base/Libraries"
4 LICENSE = "LGPL-2.1+ or GPL-3.0"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by qt5-qtimageformats 
13 PROVIDES += "qt5-qtimageformats"
14 RPROVIDES_qt5-qtimageformats += "qt5-qtimageformats"
15
16 #PROVIDES by qt5-qtimageformats-plugin-wbmp 
17 PROVIDES += "qt5-qtimageformats-plugin-wbmp"
18 RPROVIDES_qt5-qtimageformats-plugin-wbmp += "qt5-qtimageformats-plugin-wbmp"
19
20 #PROVIDES by qt5-qtimageformats-plugin-mng 
21 PROVIDES += "qt5-qtimageformats-plugin-mng"
22 RPROVIDES_qt5-qtimageformats-plugin-mng += "qt5-qtimageformats-plugin-mng"
23
24 #PROVIDES by qt5-qtimageformats-devel 
25 PROVIDES += "qt5-qtimageformats-devel"
26 RPROVIDES_qt5-qtimageformats-devel += "qt5-qtimageformats-devel"
27 RPROVIDES_qt5-qtimageformats-devel += "qt5-qtimageformats-dev"
28
29 #PROVIDES by qt5-qtimageformats-plugin-tiff 
30 PROVIDES += "qt5-qtimageformats-plugin-tiff"
31 RPROVIDES_qt5-qtimageformats-plugin-tiff += "qt5-qtimageformats-plugin-tiff"
32
33 #PROVIDES by qt5-qtimageformats-plugin-tga 
34 PROVIDES += "qt5-qtimageformats-plugin-tga"
35 RPROVIDES_qt5-qtimageformats-plugin-tga += "qt5-qtimageformats-plugin-tga"
36
37 RDEPENDS = ""
38
39 DEPENDS = ""
40 #DEPENDS of qt5-qtimageformats 
41 DEPENDS += "qtbase"
42
43 do_patch() {
44  chmod -Rf a+rX,u+w,g-w,o-w ${S}
45  #setup -q -n qt5-qtimageformats-5.2.2/qtimageformats
46  
47  
48 }
49
50 do_configure() {
51 }
52
53 do_compile() {
54  LANG=C
55  export LANG
56  unset DISPLAY
57  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
58  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
59  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
60  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
61  
62  export QTDIR=/usr/share/qt5
63  touch .git # Make sure syncqt is run
64  
65  qmake -qt=5
66  make -j16
67  
68  
69  
70 }
71
72 do_install() {
73  echo export RPM_BUILD_ROOT=${D}
74  LANG=C
75  export LANG
76  unset DISPLAY
77  rm -rf ${D} 
78  mkdir -p ${D} 
79  
80  rm -rf ${D}
81  %qmake5_install
82  
83  
84 }
85
86 PACKAGES = ""
87 PACKAGES += "qt5-qtimageformats-plugin-tiff"
88 PACKAGES += "qt5-qtimageformats-plugin-mng"
89 PACKAGES += "qt5-qtimageformats-plugin-wbmp"
90 PACKAGES += "qt5-qtimageformats-devel"
91 PACKAGES += "qt5-qtimageformats-plugin-tga"
92
93 qt5-qtimageformats-plugin-tiff_files = ""
94 qt5-qtimageformats-plugin-tiff_files += "/usr/lib/qt5/plugins/imageformats/libqtiff.so"
95
96 qt5-qtimageformats-plugin-mng_files = ""
97 qt5-qtimageformats-plugin-mng_files += "/usr/lib/qt5/plugins/imageformats/libqmng.so"
98
99 qt5-qtimageformats-plugin-wbmp_files = ""
100 qt5-qtimageformats-plugin-wbmp_files += "/usr/lib/qt5/plugins/imageformats/libqwbmp.so"
101
102 qt5-qtimageformats-devel_files = ""
103 qt5-qtimageformats-devel_files += "/usr/lib/cmake"
104
105 qt5-qtimageformats-plugin-tga_files = ""
106 qt5-qtimageformats-plugin-tga_files += "/usr/lib/qt5/plugins/imageformats/libqtga.so"
107
108 FILES_${PN}-plugin-tiff = "${qt5-qtimageformats-plugin-tiff_files}"
109 FILES_${PN}-plugin-mng = "${qt5-qtimageformats-plugin-mng_files}"
110 FILES_${PN}-plugin-wbmp = "${qt5-qtimageformats-plugin-wbmp_files}"
111 FILES_${PN}-devel = "${qt5-qtimageformats-devel_files}"
112 FILES_${PN}-plugin-tga = "${qt5-qtimageformats-plugin-tga_files}"
113
114 PKG_qt5-qtimageformats-plugin-tiff= "qt5-qtimageformats-plugin-tiff"
115 PKG_qt5-qtimageformats-plugin-mng= "qt5-qtimageformats-plugin-mng"
116 PKG_qt5-qtimageformats-plugin-wbmp= "qt5-qtimageformats-plugin-wbmp"
117 PKG_qt5-qtimageformats-devel= "qt5-qtimageformats-devel"
118 PKG_qt5-qtimageformats-plugin-tga= "qt5-qtimageformats-plugin-tga"
119
120 require qtimageformats-extraconf.inc