]> git.pld-linux.org Git - packages/freetype.git/blobdiff - freetype.spec
- make it build on AC
[packages/freetype.git] / freetype.spec
index 6384669197ce0b64280e1d4ef9c7ab8842cc0f38..5d4d0929b059f5bbd33b15ae97ab0c0cfdd06fa6 100644 (file)
@@ -27,12 +27,17 @@ Source2:    http://dl.sourceforge.net/freetype/ft2demos-%{version}.tar.bz2
 URL:           http://www.freetype.org/
 BuildRequires: automake
 BuildRequires: python
+BuildRequires: rpm >= 4.4.9-56
+%if "%{pld_release}" == "ac"
+%{?with_x11:BuildRequires:     XFree86-devel}
+%else
 %{?with_x11:BuildRequires:     xorg-lib-libX11-devel}
+%endif
 BuildRequires: zlib-devel
 Obsoletes:     freetype2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                specflags_ia32  -fomit-frame-pointer 
+%define                specflags_ia32  -fomit-frame-pointer
 # see <freetype/internal/ftserv.h>, the real horror
 %define                specflags       -fno-strict-aliasing
 
@@ -191,12 +196,12 @@ CFLAGS="%{rpmcflags} \
        CFG="--prefix=%{_prefix} --libdir=%{_libdir}"
 
 %{__make} \
-       X11_LIB=
+       X11_LIB=%{?_x_libraries}
 
 %if %{with x11}
 %{__make} -C ft2demos-* \
-       TOP_DIR="`pwd`" \
-       X11_LIB=
+       TOP_DIR=$(pwd) \
+       X11_LIB=%{?_x_libraries}
 %endif
 
 %{__make} refdoc
This page took 0.965572 seconds and 4 git commands to generate.