2022-11-24 15:33:49 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/libevent/libevent/releases/download/release-{{version}}-stable/libevent-{{version}}-stable.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: libevent/libevent/tags
|
|
|
|
strip:
|
|
|
|
- /^release-/
|
|
|
|
- /-stable$/
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
openssl.org: ^1.1
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
gnu.org/libtool: 2
|
|
|
|
gnu.org/automake: 1
|
|
|
|
gnu.org/autoconf: 2
|
|
|
|
freedesktop.org/pkg-config: ^0.29
|
2023-12-23 00:18:35 +03:00
|
|
|
script:
|
|
|
|
- ./autogen.sh
|
|
|
|
- ./configure $ARGS
|
|
|
|
- make V=1 --jobs {{ hw.concurrency }}
|
|
|
|
- make install
|
|
|
|
- run: sed -i -e 's|{{deps.openssl.org.prefix}}|\${pcfiledir}/../../../../openssl.org/v{{deps.openssl.org.version.major}}|g' *.pc
|
|
|
|
working-directory: '{{prefix}}/lib/pkgconfig'
|
2022-11-24 15:33:49 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
2023-10-02 03:41:57 +03:00
|
|
|
- --disable-debug-mode
|
|
|
|
- --prefix="{{prefix}}"
|
2022-11-24 15:33:49 +03:00
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
mv $FIXTURE $FIXTURE.c
|
|
|
|
cc $FIXTURE.c "-levent"
|
|
|
|
./a.out
|
|
|
|
fixture: |
|
|
|
|
#include <event2/event.h>
|
|
|
|
int main() {
|
|
|
|
struct event_base *base;
|
|
|
|
base = event_base_new();
|
|
|
|
event_base_free(base);
|
|
|
|
return 0;
|
|
|
|
}
|