52 Patch0: rrdtool.patch |
52 Patch0: rrdtool.patch |
53 |
53 |
54 # build information |
54 # build information |
55 BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, make, pkgconfig, perl-openpkg >= 5.8.3-20040126, perl-module, intltool |
55 BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, make, pkgconfig, perl-openpkg >= 5.8.3-20040126, perl-module, intltool |
56 PreReq: OpenPKG, openpkg >= 20100101 |
56 PreReq: OpenPKG, openpkg >= 20100101 |
57 BuildPreReq: png, zlib, freetype, pango, cairo, libxml |
57 BuildPreReq: png, zlib, freetype, pango, cairo, libpixman, libxml, libffi |
58 PreReq: png, zlib, freetype, pango, cairo, libxml |
58 PreReq: png, zlib, freetype, pango, cairo, libpixman, libxml, libffi |
59 %if "%{with_perl}" == "yes" |
59 %if "%{with_perl}" == "yes" |
60 BuildPreReq: perl |
60 BuildPreReq: perl, libpixman::with_pic = yes |
61 PreReq: perl |
61 PreReq: perl, libpixman::with_pic = yes |
62 %endif |
62 %endif |
63 %if "%{with_python}" == "yes" |
63 %if "%{with_python}" == "yes" |
64 BuildPreReq: python |
64 BuildPreReq: python |
65 PreReq: python |
65 PreReq: python |
66 %endif |
66 %endif |
115 %build |
115 %build |
116 # configure package |
116 # configure package |
117 echo "ac_cv_path_PERL=no" >config.cache |
117 echo "ac_cv_path_PERL=no" >config.cache |
118 CC="%{l_cc}" \ |
118 CC="%{l_cc}" \ |
119 CPPFLAGS="%{l_cppflags}" \ |
119 CPPFLAGS="%{l_cppflags}" \ |
|
120 %if "%{with_perl}" == "yes" |
|
121 CFLAGS="%{l_cflags -O} -fPIC" \ |
|
122 LDLAGS="%{l_ldflags} -fPIC" \ |
|
123 %else |
120 CFLAGS="%{l_cflags -O}" \ |
124 CFLAGS="%{l_cflags -O}" \ |
121 LDLAGS="%{l_ldflags}" \ |
125 LDLAGS="%{l_ldflags}" \ |
|
126 %endif |
122 LIBS="`pkg-config pangocairo --libs`" \ |
127 LIBS="`pkg-config pangocairo --libs`" \ |
123 ./configure \ |
128 ./configure \ |
124 --cache-file=./config.cache \ |
129 --cache-file=./config.cache \ |
125 --prefix=%{l_prefix} \ |
130 --prefix=%{l_prefix} \ |
126 --mandir=%{l_prefix}/man \ |
131 --mandir=%{l_prefix}/man \ |
153 # install package |
158 # install package |
154 %{l_shtool} subst \ |
159 %{l_shtool} subst \ |
155 -e 's/^\(install-data-am:\).*/\1/' \ |
160 -e 's/^\(install-data-am:\).*/\1/' \ |
156 Makefile |
161 Makefile |
157 %{l_make} %{l_mflags} install \ |
162 %{l_make} %{l_mflags} install \ |
158 DESTDIR=$RPM_BUILD_ROOT AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" |
163 DESTDIR=$RPM_BUILD_ROOT DESTDIR="$RPM_BUILD_ROOT" |
159 |
164 |
160 # install Perl part |
165 # install Perl part |
161 %if "%{with_perl}" == "yes" |
166 %if "%{with_perl}" == "yes" |
162 %{l_prefix}/bin/perl-openpkg -d bindings/perl-piped install |
167 %{l_prefix}/bin/perl-openpkg -d bindings/perl-piped install |
163 %{l_prefix}/bin/perl-openpkg -d bindings/perl-shared install |
168 %{l_prefix}/bin/perl-openpkg -d bindings/perl-shared install |