mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 12:15:06 +03:00
7176c1eb48
Closes #376
39 lines
796 B
YAML
39 lines
796 B
YAML
distributable:
|
|
url: https://dlcdn.apache.org/apr/apr-{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: apache/apr/tags
|
|
|
|
build:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
tea.xyz/gx/make: '*'
|
|
script: |
|
|
./configure $ARGS
|
|
make --jobs {{ hw.concurrency }}
|
|
make install
|
|
|
|
cd {{prefix}}/include
|
|
mv apr-{{version.major}}/* .
|
|
rmdir apr-{{version.major}}
|
|
ln -s . apr-{{version.major}}
|
|
env:
|
|
# add any environment variables here
|
|
ARGS:
|
|
- --prefix="{{prefix}}"
|
|
- --disable-debug
|
|
|
|
test:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
fixture: |
|
|
#include <stdio.h>
|
|
#include <apr-1/apr_version.h>
|
|
int main() {
|
|
printf("%s", apr_version_string());
|
|
return 0;
|
|
}
|
|
script: |
|
|
mv $FIXTURE b.c
|
|
cc b.c -lapr-{{version.major}}
|