mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-20 19:40:14 +00:00
Ensure that /usr/local/{bin,include,lib} are created in scrips that copy
to that.
This is not problem for the CI because `.github/scripts/Windows/prepare_msys.sh`
already creates them but the scripts are standalone installers and it
can be run independently by a developer to install the particular dependency.
17 lines
495 B
Bash
Executable File
17 lines
495 B
Bash
Executable File
#!/bin/sh -eux
|
|
|
|
git clone --depth 1 https://github.com/miniupnp/libnatpmp
|
|
cd libnatpmp
|
|
|
|
gcc -c -Wall -Os -DWIN32 -DNATPMP_STATICLIB -DENABLE_STRNATPMPERR getgateway.c
|
|
gcc -c -Wall -Os -DWIN32 -DNATPMP_STATICLIB -DENABLE_STRNATPMPERR natpmp.c
|
|
gcc -c -Wall -Os -DWIN32 wingettimeofday.c
|
|
ar cr natpmp.a getgateway.o natpmp.o wingettimeofday.o
|
|
|
|
mkdir -p /usr/local/include /usr/local/lib
|
|
cp natpmp.a /usr/local/lib/libnatpmp.a
|
|
cp natpmp_declspec.h natpmp.h /usr/local/include
|
|
cd -
|
|
rm -rf libnatpmp
|
|
|