aboutsummaryrefslogtreecommitdiff
path: root/package/setserial/setserial.mk
blob: 561fbe98c96f30be319025a49c514707b5f38aab (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
################################################################################
#
# setserial
#
################################################################################

SETSERIAL_VERSION = 2.17
SETSERIAL_PATCH = setserial_2.17-45.3.diff.gz
SETSERIAL_SOURCE = setserial_$(SETSERIAL_VERSION).orig.tar.gz
SETSERIAL_SITE = http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/s/setserial
SETSERIAL_LICENSE = GPLv2
SETSERIAL_LICENSE_FILES = debian/copyright
# make all also builds setserial.cat which needs nroff
SETSERIAL_MAKE_OPTS = setserial

define SETSERIAL_APPLY_DEBIAN_PATCHES
	# Touching gorhack.h is needed for the Debian patch 18 to work
	if [ -d $(@D)/debian/patches ]; then \
		touch $(@D)/gorhack.h; \
		rm $(@D)/debian/patches/01_makefile.dpatch; \
		$(APPLY_PATCHES) $(@D) $(@D)/debian/patches *.dpatch; \
	fi
endef

SETSERIAL_POST_PATCH_HOOKS += SETSERIAL_APPLY_DEBIAN_PATCHES

$(eval $(autotools-package))