|
1 | 1 | component "libxml2" do |pkg, settings, platform| |
2 | 2 | pkg.version '2.10.3' |
3 | | - pkg.sha256sum '26d2415e1c23e0aad8ca52358523fc9116a2eb6e4d4ef47577b1635c7cee3d5f' |
4 | | - pkg.url "#{settings[:buildsources_url]}/libxml2-#{pkg.get_version}.tar.gz" |
| 3 | + pkg.sha256sum '5d2cc3d78bec3dbe212a9d7fa629ada25a7da928af432c93060ff5c17ee28a9c' |
5 | 4 |
|
6 | | - # Newer versions of libxml2 either ship as tar.xz or do not ship with a configure file |
7 | | - # and require a newer version of GNU Autotools to generate. This causes problems with |
8 | | - # the older and esoteric (AIX, Solaris) platforms that we support. |
9 | | - # So we generate a configure file manually, compress as tar.gz, and host internally. |
| 5 | + libxml2_version_y = pkg.get_version.gsub(/(\d+)\.(\d+)\.(\d+)/, '\1.\2') |
| 6 | + pkg.url "https://download.gnome.org/sources/libxml2/#{libxml2_version_y}/libxml2-#{pkg.get_version}.tar.xz" |
| 7 | + pkg.mirror "#{settings[:buildsources_url]}/libxml2-#{pkg.get_version}.tar.xz" |
10 | 8 |
|
11 | 9 | if platform.is_aix? |
12 | 10 | if platform.name == 'aix-7.1-ppc' |
13 | | - pkg.environment "PATH", "/opt/pl-build-tools/bin:$(PATH)" |
| 11 | + pkg.environment "PATH", "/opt/pl-build-tools/bin:/opt/freeware/bin:$(PATH)" |
14 | 12 | else |
15 | 13 | pkg.environment "PATH", "/opt/freeware/bin:$(PATH)" |
16 | 14 | end |
|
19 | 17 | pkg.environment "CFLAGS", settings[:cflags] |
20 | 18 | pkg.environment "LDFLAGS", settings[:ldflags] |
21 | 19 | elsif platform.is_solaris? |
22 | | - pkg.environment "PATH", "/opt/pl-build-tools/bin:$(PATH):/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:#{settings[:bindir]}" |
| 20 | + pkg.environment "PATH", "/opt/pl-build-tools/bin:$(PATH):/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin:#{settings[:bindir]}" |
23 | 21 | pkg.environment "CFLAGS", "#{settings[:cflags]} -std=c99" |
24 | 22 | pkg.environment "LDFLAGS", settings[:ldflags] |
25 | 23 | elsif platform.is_macos? |
|
0 commit comments