Prechádzať zdrojové kódy

Completely unbreak the build of GD: - remove references to system directories - remove dependency to XPM and this way X11 - consistently use our own PNG, ZLib, etc. - add FreeType and JPEG support Problems discovered by: Steffen Weinreich <steve@weinreich.org>

Ralf S. Engelschall 21 rokov pred
rodič
commit
f3ce0d42d1
1 zmenil súbory, kde vykonal 15 pridanie a 2 odobranie
  1. 15 2
      perl-gd/perl-gd.spec

+ 15 - 2
perl-gd/perl-gd.spec

@@ -47,7 +47,7 @@ Class:        BASE
 Group:        Language
 License:      GPL/Artistic
 Version:      %{V_perl}
-Release:      20040318
+Release:      20040421
 
 #   list of sources
 Source0:      http://www.cpan.org/modules/by-module/GD/GD-%{V_gd}.tar.gz
@@ -154,7 +154,20 @@ AutoReqProv:  no
 
 %install
     %{l_prefix}/bin/perl-openpkg prepare
-    %{l_prefix}/bin/perl-openpkg -d %{SOURCE0}  configure build install
+    ( cd GD-%{V_gd}
+      %{l_shtool} subst \
+          -e 's/\(@INC     = qw(\).*\();\)/\1\2/' \
+          -e 's/\(@LIBPATH = qw(\).*\();\)/\1\2/' \
+          Makefile.PL
+      %{l_prefix}/bin/perl-openpkg \
+          -A '-options       JPEG,FT' \
+          -A '-lib_gd_path   %{l_prefix}' \
+          -A '-lib_png_path  %{l_prefix}' \
+          -A '-lib_zlib_path %{l_prefix}' \
+          -A '-lib_jpeg_path %{l_prefix}' \
+          -A '-lib_ft_path   %{l_prefix}' \
+          configure build install
+    ) || exit $?
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE1}  configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE2}  configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE3}  configure build install