From a69051b0b9b210db5a33e990fea6944e43254ee8 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 16 Mar 2023 14:33:29 -0400 Subject: [PATCH] +apr Closes #271 --- projects/apache.org/apr/package.yml | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 projects/apache.org/apr/package.yml diff --git a/projects/apache.org/apr/package.yml b/projects/apache.org/apr/package.yml new file mode 100644 index 00000000..f8e4c827 --- /dev/null +++ b/projects/apache.org/apr/package.yml @@ -0,0 +1,33 @@ +distributable: + url: https://dlcdn.apache.org//apr/apr-{{version}}.tar.gz + strip-components: 1 + +versions: + - 1.7.2 + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + script: | + ./configure $ARGS + make --jobs {{ hw.concurrency }} install + env: + # add any environment variables here + ARGS: + - --prefix="{{prefix}}" + - --disable-debug + +test: + dependencies: + tea.xyz/gx/cc: c99 + fixture: | + #include + #include + int main() { + printf("%s", apr_version_string()); + return 0; + } + script: | + mv $FIXTURE b.c + cc b.c -lapr-{{version.major}}