|
|
@@ -32,14 +32,15 @@ Distribution: OpenPKG Community
|
|
|
Class: EVAL
|
|
|
Group: Graphics
|
|
|
License: MIT-style
|
|
|
-Version: 1.2.6
|
|
|
-Release: 20061112
|
|
|
+Version: 1.4.6
|
|
|
+Release: 20070517
|
|
|
|
|
|
# package options
|
|
|
-%option with_pdf yes
|
|
|
-%option with_ps yes
|
|
|
-%option with_png yes
|
|
|
-%option with_x11 yes
|
|
|
+%option with_pdf yes
|
|
|
+%option with_ps yes
|
|
|
+%option with_png yes
|
|
|
+%option with_x11 yes
|
|
|
+%option with_threads yes
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://cairographics.org/releases/cairo-%{version}.tar.gz
|
|
|
@@ -50,8 +51,8 @@ Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20040130, pkgconfig
|
|
|
PreReq: OpenPKG, openpkg >= 20040130
|
|
|
-BuildPreReq: fontconfig, freetype, libpixman
|
|
|
-PreReq: fontconfig, freetype, libpixman
|
|
|
+BuildPreReq: fontconfig, freetype
|
|
|
+PreReq: fontconfig, freetype
|
|
|
%if "%{with_png}" == "yes"
|
|
|
BuildPreReq: png >= 1.2.8-20050204, zlib
|
|
|
PreReq: png >= 1.2.8-20050204, zlib
|
|
|
@@ -83,7 +84,7 @@ AutoReqProv: no
|
|
|
prog cairo = {
|
|
|
version = %{version}
|
|
|
url = http://cairographics.org/releases/
|
|
|
- regex = cairo-(__VER__)\.tar\.gz
|
|
|
+ regex = \bcairo-(__VER__)\.tar\.gz
|
|
|
}
|
|
|
|
|
|
%prep
|
|
|
@@ -91,8 +92,6 @@ AutoReqProv: no
|
|
|
%patch -p0
|
|
|
|
|
|
%build
|
|
|
- ( echo "ac_cv_header_pthread_h=no"
|
|
|
- ) >config.cache
|
|
|
%{l_shtool} subst \
|
|
|
-e 's;libpng12;libpng;g' \
|
|
|
configure
|
|
|
@@ -107,6 +106,9 @@ AutoReqProv: no
|
|
|
%if "%{with_png}" == "yes"
|
|
|
export PNG_CFLAGS="%{l_cppflags}"
|
|
|
export PNG_LIBS="%{l_ldflags} -lpng -lz"
|
|
|
+%endif
|
|
|
+%if "%{with_threads}" != "yes"
|
|
|
+ CPPFLAGS="$CPPFLAGS -DCAIRO_NO_MUTEX=1"
|
|
|
%endif
|
|
|
export PKG_CONFIG="%{l_prefix}/bin/pkg-config"
|
|
|
./configure \
|
|
|
@@ -134,6 +136,11 @@ AutoReqProv: no
|
|
|
--enable-xlib \
|
|
|
%else
|
|
|
--disable-xlib \
|
|
|
+%endif
|
|
|
+%if "%{with_threads}" == "yes"
|
|
|
+ --enable-pthread \
|
|
|
+%else
|
|
|
+ --disable-pthread \
|
|
|
%endif
|
|
|
--enable-freetype \
|
|
|
--disable-xcb \
|