2023-03-16 21:33:29 +03:00
|
|
|
distributable:
|
2023-04-08 07:54:33 +03:00
|
|
|
url: https://dlcdn.apache.org/apr/apr-{{version}}.tar.gz
|
2023-03-16 21:33:29 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-04-08 07:54:33 +03:00
|
|
|
github: apache/apr/tags
|
2023-03-16 21:33:29 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
tea.xyz/gx/make: '*'
|
|
|
|
script: |
|
|
|
|
./configure $ARGS
|
2023-04-05 06:21:55 +03:00
|
|
|
make --jobs {{ hw.concurrency }}
|
|
|
|
make install
|
2023-04-12 00:51:36 +03:00
|
|
|
|
|
|
|
cd {{prefix}}/include
|
|
|
|
mv apr-{{version.major}}/* .
|
|
|
|
rmdir apr-{{version.major}}
|
|
|
|
ln -s . apr-{{version.major}}
|
2023-04-21 07:51:30 +03:00
|
|
|
|
|
|
|
cd ../bin
|
|
|
|
sed -i.bak "s_{{prefix}}_\$(cd \$(dirname \$0)/.. \&\& pwd)_g" apr-{{version.major}}-config
|
|
|
|
rm apr-{{version.major}}-config.bak
|
2023-04-21 09:09:00 +03:00
|
|
|
|
|
|
|
cd ../build-1
|
|
|
|
sed -i.bak \
|
|
|
|
-e "s_{{prefix}}_\$(subst /bin/apr-{{version.major}}-config,,\$(shell command -v apr-{{version.major}}-config))_g" \
|
|
|
|
-e "s_${TEA_PREFIX}_\$(subst /apache.org/apr/v{{version}}/bin/apr-{{version.major}}-config,,\$(shell command -v apr-{{version.major}}-config))_g" \
|
|
|
|
apr_rules.mk
|
|
|
|
rm apr_rules.mk.bak
|
2023-03-16 21:33:29 +03:00
|
|
|
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}}
|