From cd85778597a709c5d589c9f984d039e5b96bafca Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 7 May 2020 05:59:37 -0400 Subject: Initial Darwin compat sweep --- pkgconf/build.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pkgconf') 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" } - - -- cgit