Skip to content

Commit

Permalink
mongoose: update to 7.6
Browse files Browse the repository at this point in the history
  • Loading branch information
subnut committed Mar 28, 2022
1 parent 69a4cd9 commit 225e1ff
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 58 deletions.
17 changes: 17 additions & 0 deletions srcpkgs/mongoose/patches/Fix-LDFLAGS.patch
@@ -0,0 +1,17 @@
--- a/Makefile
+++ b/Makefile
@@ -19,12 +19,12 @@ VERSION ?= $(shell cut -d'"' -f2 src/version.h)
ifeq "$(SSL)" "MBEDTLS"
MBEDTLS ?= /usr
CFLAGS += -DMG_ENABLE_MBEDTLS=1 -I$(MBEDTLS)/include -I/usr/include
-LDFLAGS ?= -L$(MBEDTLS)/lib -lmbedtls -lmbedcrypto -lmbedx509
+LDFLAGS += -L$(MBEDTLS)/lib -lmbedtls -lmbedcrypto -lmbedx509
endif
ifeq "$(SSL)" "OPENSSL"
OPENSSL ?= /usr
CFLAGS += -DMG_ENABLE_OPENSSL=1 -I$(OPENSSL)/include
-LDFLAGS ?= -L$(OPENSSL)/lib -lssl -lcrypto
+LDFLAGS += -L$(OPENSSL)/lib -lssl -lcrypto
endif

all: mg_prefix unamalgamated unpacked test test++ arm examples vc98 vc2017 mingw mingw++ linux linux++ fuzz
50 changes: 0 additions & 50 deletions srcpkgs/mongoose/patches/add-makefile.patch

This file was deleted.

29 changes: 21 additions & 8 deletions srcpkgs/mongoose/template
@@ -1,29 +1,42 @@
# Template file for 'mongoose'
pkgname=mongoose
version=6.18
revision=4
version=7.6
revision=1
build_style=gnu-makefile
make_use_env=compliant
make_use_env=yes
make_check_target=test
make_check_args="SSL=OPENSSL"
make_build_target=linux-libs
make_build_args="SSL=OPENSSL"
makedepends="openssl-devel"
short_desc="Easy to use Web server"
maintainer="Orphaned <orphan@voidlinux.org>"
checkdepends="openssl-devel libsanitizer-devel"
short_desc="Embedded Networking Library for TCP,UDP,HTTP,MQTT,WebSocket and SSL/TLS"
maintainer="Subhaditya Nath <sn03.general@gmail.com>"
license="GPL-2.0-only"
homepage="https://cesanta.com/"
homepage="https://mongoose.ws/"
distfiles="https://github.com/cesanta/mongoose/archive/${version}.tar.gz"
checksum=f5c10346abc9c72f7cac7885d853ca064fb09aad57580433941a8fd7a3543769
checksum=1ef09d971b6de1a6317c109980d6fb5a9c19b39efef2506d6b76869644b3dafa

pre_check() {
export EXTRA="${CFLAGS}"
unset CFLAGS
}

mongoose-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}

mongoose-doc_package() {
short_desc+=" - documentation"
pkg_install() {
vmove usr/share
vmkdir usr/share/mongoose
vcopy docs usr/share/mongoose
vcopy examples usr/share/mongoose
}
}

0 comments on commit 225e1ff

Please sign in to comment.