summaryrefslogtreecommitdiffstats
path: root/build
blob: f0abafbdfbe649fdaa259ff188e4f47739669e04 (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 -- \
		--disable-static \
		--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/bin/curl-config
	rm dest/usr/share/man/man1/curl-config.1
	oh-fixperms
	oh-strip
	oh-installfiles
	oh-shlibdeps