diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-05-07 05:59:37 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-05-07 05:59:37 -0400 |
| commit | cd85778597a709c5d589c9f984d039e5b96bafca (patch) | |
| tree | 4a0e4cecb2ff216cc270a2fac5716a54175e7c15 /pkgconf | |
| parent | 041601b591742fa071f50f25ee8ef9f5b1008bd4 (diff) | |
| download | spm_packages-cd85778597a709c5d589c9f984d039e5b96bafca.tar.gz | |
Initial Darwin compat sweep
Diffstat (limited to 'pkgconf')
| -rw-r--r-- | pkgconf/build.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgconf/build.sh b/pkgconf/build.sh index a865902..a2230cb 100644 --- a/pkgconf/build.sh +++ b/pkgconf/build.sh @@ -17,6 +17,10 @@ function prepare() { tar xf ${name}-${version}.tar.gz # an ugly release tag makes for an ugly directory, fyi cd ${name}-${name}-${version} + if [[ $(uname -s) == Darwin ]]; then + # extra -rpath kills the build + LDFLAGS="-L${_runtime}/lib" + fi } function build() { @@ -30,10 +34,9 @@ function build() { } function package() { + target="$(./config.guess)" make install DESTDIR="${_pkgdir}" ln -s pkgconf "${_pkgdir}${_prefix}/bin/pkg-config" - ln -s pkgconf "${_pkgdir}${_prefix}/bin/x86_64-pc-linux-gnu-pkg-config" + ln -s pkgconf "${_pkgdir}${_prefix}/bin/${target%%.*}-pkg-config" ln -s pkgconf.1 "${_pkgdir}${_prefix}/share/man/man1/pkg-config.1" } - - |
