xref: /OK3568_Linux_fs/buildroot/package/setserial/setserial.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# setserial
4#
5################################################################################
6
7SETSERIAL_VERSION = 2.17
8SETSERIAL_PATCH = setserial_2.17-45.3.diff.gz
9SETSERIAL_SOURCE = setserial_$(SETSERIAL_VERSION).orig.tar.gz
10SETSERIAL_SITE = http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/s/setserial
11SETSERIAL_LICENSE = GPL-2.0
12SETSERIAL_LICENSE_FILES = debian/copyright
13# make all also builds setserial.cat which needs nroff
14SETSERIAL_MAKE_OPTS = setserial
15
16define SETSERIAL_APPLY_DEBIAN_PATCHES
17	# Touching gorhack.h is needed for the Debian patch 18 to work
18	if [ -d $(@D)/debian/patches ]; then \
19		touch $(@D)/gorhack.h; \
20		rm $(@D)/debian/patches/01_makefile.dpatch; \
21		$(APPLY_PATCHES) $(@D) $(@D)/debian/patches *.dpatch; \
22	fi
23endef
24
25SETSERIAL_POST_PATCH_HOOKS += SETSERIAL_APPLY_DEBIAN_PATCHES
26
27$(eval $(autotools-package))
28