|
13 | 13 | pkg.build_requires 'ruby-selinux' |
14 | 14 | end |
15 | 15 |
|
16 | | - if platform.name =~ /solaris-10-sparc/ |
17 | | - # This patch to gnulib fixes a linking error around symbol versioning in pthread. |
18 | | - pkg.add_source "file://resources/patches/augeas/augeas-#{version}-gnulib-pthread-in-use.patch" |
19 | | - pkg.configure do |
20 | | - # gnulib is a submodule, and its files don't exist until after configure, |
21 | | - # so we apply the patch manually here instead of using pkg.apply_patch. |
22 | | - ["/usr/bin/gpatch -p0 < ../augeas-#{version}-gnulib-pthread-in-use.patch"] |
23 | | - end |
24 | | - end |
25 | | - |
26 | 16 | if platform.is_macos? |
27 | 17 | pkg.build_requires 'readline' |
28 | 18 | pkg.build_requires 'autoconf' |
29 | 19 | pkg.build_requires 'automake' |
30 | 20 | pkg.build_requires 'libtool' |
31 | 21 | end |
32 | 22 |
|
33 | | - extra_config_flags = platform.name =~ /solaris-11|aix/ ? ' --disable-dependency-tracking' : '' |
34 | | - |
35 | 23 | pkg.mirror "#{settings[:buildsources_url]}/augeas-#{pkg.get_version}.tar.gz" |
36 | 24 |
|
37 | 25 | pkg.build_requires 'libxml2' |
38 | 26 |
|
39 | 27 | # Ensure we're building against our own libraries when present |
40 | 28 | pkg.environment 'PKG_CONFIG_PATH', "#{settings[:libdir]}/pkgconfig" |
41 | 29 |
|
42 | | - if platform.is_aix? |
43 | | - pkg.environment 'CC', '/opt/freeware/bin/gcc' |
44 | | - pkg.environment 'PATH', "/opt/freeware/bin:$(PATH):#{settings[:bindir]}" |
45 | | - pkg.build_requires "runtime-#{settings[:runtime_project]}" |
46 | | - pkg.build_requires 'readline' |
47 | | - |
48 | | - pkg.environment 'LDFLAGS', settings[:ldflags] |
49 | | - pkg.environment 'CFLAGS', "-I#{settings[:includedir]}" |
50 | | - end |
51 | | - |
52 | | - if platform.is_rpm? && !platform.is_aix? |
| 30 | + if platform.is_rpm? |
53 | 31 | if platform.architecture =~ /aarch64|ppc64|ppc64le/ |
54 | 32 | pkg.build_requires "runtime-#{settings[:runtime_project]}" |
55 | 33 | pkg.environment 'PATH', "/opt/pl-build-tools/bin:$(PATH):#{settings[:bindir]}" |
|
65 | 43 | pkg.environment 'LDFLAGS', settings[:ldflags] |
66 | 44 | end |
67 | 45 |
|
68 | | - elsif platform.is_solaris? |
69 | | - pkg.environment 'PATH', |
70 | | - "/opt/pl-build-tools/bin:$(PATH):/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:#{settings[:bindir]}" |
71 | | - pkg.environment 'CFLAGS', settings[:cflags] |
72 | | - pkg.environment 'LDFLAGS', settings[:ldflags] |
73 | | - pkg.build_requires 'libedit' |
74 | | - pkg.build_requires "runtime-#{settings[:runtime_project]}" |
75 | | - if platform.os_version == '10' |
76 | | - pkg.environment 'PKG_CONFIG_PATH', '/opt/csw/lib/pkgconfig' |
77 | | - pkg.environment 'PKG_CONFIG', '/opt/csw/bin/pkg-config' |
78 | | - elsif !platform.is_cross_compiled? && platform.architecture == 'sparc' |
79 | | - pkg.environment 'PKG_CONFIG_PATH', "#{settings[:libdir]}/pkgconfig" |
80 | | - pkg.environment 'PKG_CONFIG', '/usr/bin/pkg-config' |
81 | | - else |
82 | | - pkg.environment 'PKG_CONFIG_PATH', '/usr/lib/pkgconfig' |
83 | | - pkg.environment 'PKG_CONFIG', '/opt/pl-build-tools/bin/pkg-config' |
84 | | - end |
85 | | - elsif platform.is_macos? |
| 46 | + if platform.is_macos? |
86 | 47 | pkg.environment 'PATH', '$(PATH):/opt/homebrew/bin:/usr/local/bin' |
87 | 48 | pkg.environment 'CFLAGS', settings[:cflags] |
88 | 49 | pkg.environment 'CPPFLAGS', settings[:cppflags] |
|
108 | 69 | end |
109 | 70 |
|
110 | 71 | pkg.configure do |
111 | | - ["./configure #{extra_config_flags} --prefix=#{settings[:prefix]} #{settings[:host]}"] |
| 72 | + ["./configure --prefix=#{settings[:prefix]} #{settings[:host]}"] |
112 | 73 | end |
113 | 74 |
|
114 | 75 | pkg.build do |
|
0 commit comments