pantry/projects/mozilla.org/nspr/package.yml
Andrew b07e2b57fe
mozilla.org/nss (#2751)
* mozilla.org/nss

* sed

* sed

* cc env

* gcc

* gcc

* platforms

* neon

* openssl

* llvm

* NSS_DISABLE_ARM32_NEON & NSS_DISABLE_CRYPTO_VSX

* ver

* llvm

* platforms

* hmm

* tea.xyz/gx/cc

* wip

* -march=native maybe

* some fixes

* what's up with this build system?

* ...

* ....

* .....

* build without darwin aarch64

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
2023-08-24 17:56:03 -04:00

40 lines
No EOL
889 B
YAML

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:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script:
- ./nspr/configure $ARGS
- make --jobs {{ hw.concurrency }}
- make --jobs {{ hw.concurrency }} install
- run: |
mv nspr/* .
rmdir nspr
ln -s . nspr
working-directory: ${{prefix}}/include
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:
script:
nspr-config --version | grep {{version}}