summaryrefslogtreecommitdiffstats
path: root/build
blob: a97eceb1944dc114357c8e6199dea9c3d09dae60 (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:
	@:

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

install: build
	oh-autoinstall
	rm -Rf dest/usr/include/ \
		dest/usr/lib/$(OPK_HOST_ARCH)/pkgconfig/ \
		dest/usr/lib/$(OPK_HOST_ARCH)/libopkg.a \
		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