#!/usr/bin/make -f

include ../source.mk

nop:
	@:

build:
	oh-autoconfigure -- \
		--enable-static \
		--disable-rpath
	oh-autobuild
	if [ 'x$(OPK_BUILD_ARCH)' = 'x$(OPK_HOST_ARCH)' ]; then \
		oh-autotest; \
	fi
	touch $@

install: build
	oh-autoinstall
	ln -sf libgpg-error.so.0 dest/usr/lib/$(OPK_HOST_ARCH)/libgpg-error.so
	rm dest/usr/lib/$(OPK_HOST_ARCH)/libgpg-error.la
	oh-fixperms
	oh-strip
	oh-installfiles