summaryrefslogtreecommitdiff
path: root/devel/m4/Makefile
blob: 6458aaf0b65a7c983ceb721f37036608b0f375fc (plain) (blame)
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
34
# Created by: mr
# $FreeBSD$

PORTNAME=	m4
PORTVERSION=	1.4.17
PORTREVISION=	1
PORTEPOCH=	1
CATEGORIES=	devel
MASTER_SITES=	GNU

MAINTAINER=	johans@FreeBSD.org
COMMENT=	GNU m4

USES=		makeinfo tar:bzip2
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--program-prefix=g
CONFIGURE_ENV=	MAKEINFO="makeinfo --no-split"

INFO=	m4

EXAMPLESDIR=	share/examples/gm4

OPTIONS_DEFINE=			LIBSIGSEGV EXAMPLES
LIBSIGSEGV_DESC=		Use alternative page fault handler (GNU libsigsegv)
LIBSIGSEGV_LIB_DEPENDS=		libsigsegv.so:devel/libsigsegv
LIBSIGSEGV_CONFIGURE_ON=	--with-libsigsegv-prefix=${LOCALBASE}
LIBSIGSEGV_CONFIGURE_OFF=	--without-libsigsegv-prefix

post-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/*.m4 \
		${STAGEDIR}${PREFIX}/${EXAMPLESDIR}

.include <bsd.port.mk>