summaryrefslogtreecommitdiffstats
path: root/build
blob: a89eaa13a5d99a3c6863495870652d27682361ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

include ../source.mk

build:
	oh-autoconfigure -- \
		--disable-static \
		--disable-curl --disable-ssl-curl --disable-gpg \
		--with-opkglibdir=/var/lib
	oh-autobuild
	touch $@

install: build
	oh-autoinstall
	rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libopkg.la
	ln -sf opkg-cl dest/usr/bin/opkg
	ln -sf opkg-cl.1 dest/usr/share/man/man1/opkg.1
	oh-fixperms
	oh-strip -k
	oh-installfiles