Skip to content

Commit

Permalink
Add miniupnpc
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulgen301 committed Jul 23, 2024
1 parent 0ba2934 commit 797af68
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ jobs:
scripts/build.sh mpg123
scripts/build.sh SDL2_mixer
scripts/build.sh freetype -DCMAKE_DISABLE_FIND_PACKAGE_HarfBuzz=TRUE
NOLICENSE=1 scripts/build.sh freetype
scripts/build.sh miniupnpc
- name: Remove bin
run: $CHROOT rm -rf output/bin
Expand Down
21 changes: 21 additions & 0 deletions scripts/miniupnpc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

set -e

VERSION=2.2.3

curl -L https://miniupnp.tuxfamily.org/files/miniupnpc-"$VERSION".tar.gz | tar -xz

pushd miniupnp-"$VERSION"

mkdir build
pushd build

cmake .. $CMAKE_CONFIGURE_ARGS -DUPNPC_BUILD_STATIC=ON -DUPNPC_BUILD_SHARED=OFF -DUPNPC_BUILD_TESTS=OFF -DUPNPC_BUILD_SAMPLE=OFF
cmake --build . $CMAKE_BUILD_ARGS
cmake --install . $CMAKE_BUILD_ARGS

popd

license miniupnpc "LICENSE" "BSD 3-Clause"
popd

0 comments on commit 797af68

Please sign in to comment.