summaryrefslogtreecommitdiff
path: root/Ports/mbedtls/mbedtls.sh
blob: b2c559317076a7151fea2e24ff506a7b3868ed22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

PORT_DIR=mbedtls

fetch() {
    run_fetch_web "https://tls.mbed.org/download/mbedtls-2.16.2-apache.tgz"
    run_patch remove-net-from-config.patch -p1
    run_patch add-missing-includes.patch -p1
}

configure() {
    echo "move along, nothing to see here"
}

build() {
    run_export_env CC i686-pc-serenity-gcc
    run_make clean
    run_make CFLAGS=-DPLATFORM_UTIL_USE_GMTIME
}

install() {
    run_make_install DESTDIR="$SERENITY_ROOT"/Root
}

. ../.port_include.sh