mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
new file: projects/github.com/sctplab/usrsctp/package.yml
new file: projects/github.com/sctplab/usrsctp/test.c
This commit is contained in:
parent
31907e1c65
commit
fea60a18b6
2 changed files with 37 additions and 0 deletions
31
projects/github.com/sctplab/usrsctp/package.yml
Normal file
31
projects/github.com/sctplab/usrsctp/package.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
distributable:
|
||||
url: https://github.com/sctplab/usrsctp/archive/refs/tags/{{version.raw}}.tar.gz
|
||||
strip-components: 1
|
||||
versions:
|
||||
github: sctplab/usrsctp
|
||||
build:
|
||||
dependencies:
|
||||
cmake.org: '*'
|
||||
linux:
|
||||
gnu.org/gcc: '*'
|
||||
script:
|
||||
- cmake -S . -B build $CMAKE_ARGS
|
||||
- cmake --build build
|
||||
- cmake --install build
|
||||
env:
|
||||
CMAKE_ARGS:
|
||||
- -DCMAKE_INSTALL_PREFIX="{{prefix}}
|
||||
- -DCMAKE_INSTALL_LIBDIR=lib
|
||||
- -DCMAKE_BUILD_TYPE=Release
|
||||
- -DCMAKE_FIND_FRAMEWORK=LAST
|
||||
- -DCMAKE_VERBOSE_MAKEFILE=ON
|
||||
- -Wno-dev
|
||||
- -DBUILD_TESTING=OFF
|
||||
- -Dsctp_build_shared_lib=ON
|
||||
test:
|
||||
dependencies:
|
||||
linux:
|
||||
gnu.org/gcc: '*'
|
||||
script:
|
||||
- cc test.c -lusrsctp -lpthread -o test
|
||||
- ./test
|
6
projects/github.com/sctplab/usrsctp/test.c
Normal file
6
projects/github.com/sctplab/usrsctp/test.c
Normal file
|
@ -0,0 +1,6 @@
|
|||
#include <unistd.h>
|
||||
#include <usrsctp.h>
|
||||
int main() {
|
||||
usrsctp_init(0, NULL, NULL);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue