Jelajahi Sumber

fontconfig is an X11-only feature

Ralf S. Engelschall 21 tahun lalu
induk
melakukan
dceb8abc96
1 mengubah file dengan 6 tambahan dan 6 penghapusan
  1. 6 6
      graphviz/graphviz.spec

+ 6 - 6
graphviz/graphviz.spec

@@ -56,11 +56,11 @@ Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
 BuildPreReq:  OpenPKG, openpkg >= 20040130, gcc, make, flex, bison
 PreReq:       OpenPKG, openpkg >= 20040130
-BuildPreReq:  freetype, fontconfig, png, jpeg, gd
-PreReq:       freetype, fontconfig, png, jpeg, gd
+BuildPreReq:  freetype, png, jpeg, gd
+PreReq:       freetype, png, jpeg, gd
 %if "%{with_x11}" == "yes"
-BuildPreReq:  X11
-PreReq:       X11
+BuildPreReq:  X11, fontconfig
+PreReq:       X11, fontconfig
 %endif
 %if "%{with_perl}" == "yes"
 BuildPreReq:  perl, perl-sys, perl-openpkg
@@ -109,8 +109,6 @@ AutoReqProv:  no
         --prefix=%{l_prefix} \
         --with-extraincludedir=%{l_prefix}/include \
         --with-extralibdir=%{l_prefix}/lib \
-        --with-fontconfigincludedir=%{l_prefix}/include \
-        --with-fontconfiglibdir=%{l_prefix}/lib \
         --with-freetypeincludedir=%{l_prefix}/include \
         --with-freetypelibdir=%{l_prefix}/lib \
         --with-pngincludedir=%{l_prefix}/include \
@@ -127,6 +125,8 @@ AutoReqProv:  no
         --with-x \
         --x-includes=`%{l_rc} --query x11_incdir` \
         --x-libraries=`%{l_rc} --query x11_libdir` \
+        --with-fontconfigincludedir=%{l_prefix}/include \
+        --with-fontconfiglibdir=%{l_prefix}/lib \
 %else
         --without-x \
 %endif