summaryrefslogtreecommitdiffstats
path: root/build
blob: 7af830c9502e4a7f7846a77e275d14a11b69d970 (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
26
27
#!/usr/bin/make -f

include ../source.mk

nop:
	@:

# Should use "--with-ca-path=/etc/x509/server-auth" instead "--with-ca-bundle",
# but "--with-ca-path only works with OpenSSL, GnuTLS or mbedTLS".
build:
	oh-autoconfigure -- \
		--without-ssl \
		--with-wolfssl \
		--with-ca-bundle=/usr/share/x509/server-auth/nss-certdata.pem
	oh-autobuild
	touch $@

install: build
	oh-autoinstall
	rm dest/usr/lib/$(OPK_HOST_ARCH)/libcurl.la
	rm dest/usr/lib/$(OPK_HOST_ARCH)/libcurl.a
	rm dest/usr/bin/curl-config
	rm dest/usr/share/man/man1/curl-config.1
	oh-fixperms
	oh-strip
	oh-installfiles
	oh-shlibdeps