summaryrefslogtreecommitdiffstats
path: root/build
blob: f284b04933c43dd768988116715fac9a393ecef2 (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
30
31
32
33
#!/usr/bin/make -f

include ../source.mk

configure:
	oh-autoconfigure -- \
		--enable-threads --disable-java \
		--without-emacs
	touch $@

build: configure
	oh-autobuild
	touch $@

install: build
	oh-autoinstall
	# Remove unversioned links to internal libraries.
	rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libgettextlib.so
	rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libgettextsrc.so
	# Remove GNU Libtool archive files.
	rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libasprintf.la
	rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libgettextlib.la
	rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libgettextpo.la
	rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libgettextsrc.la
	# Put all documentation files in /usr/share/doc/gettext-base/.
	mkdir -p dest/usr/share/doc/gettext-base/
	mv dest/usr/share/doc/*/* dest/usr/share/doc/gettext-base/
	ln -sf gettext_toc.html dest/usr/share/doc/gettext-base/index.html
	# Remove GNU Info index.
	rm -f dest/usr/share/info/dir
	oh-fixperms
	oh-strip
	oh-installfiles