2023-04-28 20:22:59 +03:00
|
|
|
distributable:
|
|
|
|
url: https://archive.mozilla.org/pub/nspr/releases/v{{version}}/src/nspr-{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
url: https://archive.mozilla.org/pub/nspr/releases/
|
|
|
|
match: v\d+\.\d+\.\d+\
|
|
|
|
strip: /^v-/
|
|
|
|
|
|
|
|
build:
|
2023-08-25 00:56:03 +03:00
|
|
|
script:
|
2023-11-21 02:40:10 +03:00
|
|
|
- run: |
|
|
|
|
sed -i.bak 's|@executable_path|{{prefix}}/lib|g' configure
|
|
|
|
rm configure.bak
|
|
|
|
if: darwin
|
|
|
|
working-directory: nspr
|
2023-08-25 00:56:03 +03:00
|
|
|
- ./nspr/configure $ARGS
|
|
|
|
- make --jobs {{ hw.concurrency }}
|
|
|
|
- make --jobs {{ hw.concurrency }} install
|
|
|
|
- run: |
|
|
|
|
mv nspr/* .
|
|
|
|
rmdir nspr
|
|
|
|
ln -s . nspr
|
|
|
|
working-directory: ${{prefix}}/include
|
2023-04-28 20:22:59 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- --prefix="{{prefix}}"
|
|
|
|
- --disable-debug
|
|
|
|
- --enable-strip
|
|
|
|
- --with-pthreads
|
|
|
|
- --enable-ipv6
|
|
|
|
- --enable-64bit
|
|
|
|
darwin:
|
|
|
|
ARGS:
|
|
|
|
- --enable-macos-target=$(sw_vers -productVersion)
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/nspr-config
|
|
|
|
|
|
|
|
test:
|
2023-10-02 03:41:57 +03:00
|
|
|
script: nspr-config --version | grep {{version}}
|