Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
38 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} |