summaryrefslogtreecommitdiffstats
path: root/build
blob: 5ae02f9e3b9bf37ecdf6037c5b44663843957aeb (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
28
29
#!/usr/bin/make -f

include ../source.mk

curses_libs = ncurses ncursesw

nop:
	@:

build:
	set -e; for lib in $(curses_libs); do \
		oh-autoconfigure -B build_$${lib} -- \
			--enable-nls \
			--with-$${lib} \
			--disable-rpath-hack; \
		oh-autobuild -B build_$${lib}; \
	done
	touch $@

install: build
	set -e; for lib in $(curses_libs); do \
		oh-autoinstall -B build_$${lib}; \
		mv dest/usr/bin/dialog dest/usr/bin/dialog.$${lib}; \
	done
	rm dest/usr/lib/$(OPK_HOST_ARCH)/libdialog.a
	oh-fixperms
	oh-strip
	oh-installfiles
	oh-shlibdeps