1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/devel/m4/Makefile
Jung-uk Kim f872930d0e Set MAKEINFO to the full path of makeinfo when USES=makeinfo is set.
PR:		221027
Reviewed by:	mat
Approved by:	portmgr (antoine)
2017-07-28 21:45:20 +00:00

41 lines
997 B
Makefile

# Created by: mr
# $FreeBSD$
PORTNAME= m4
PORTVERSION= 1.4.18
PORTEPOCH= 1
CATEGORIES= devel
MASTER_SITES= GNU
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= GNU M4
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
OPTIONS_DEFINE= LIBSIGSEGV EXAMPLES
LIBSIGSEGV_DESC=Use alternative page fault handler (GNU libsigsegv)
CONFIGURE_ARGS= --program-prefix=g
CONFIGURE_ENV= MAKEINFO="${MAKEINFO} --no-split"
GNU_CONFIGURE= yes
USES= makeinfo tar:xz
EXAMPLESDIR= ${PREFIX}/share/examples/gm4
INFO= m4
PORTEXAMPLES= *
LIBSIGSEGV_CONFIGURE_OFF= --without-libsigsegv-prefix
LIBSIGSEGV_CONFIGURE_ON= --with-libsigsegv-prefix=${LOCALBASE}
LIBSIGSEGV_LIB_DEPENDS= libsigsegv.so:devel/libsigsegv
post-patch:
@${REINPLACE_CMD} -e '/^* M4: / s|M4|G&|' ${WRKSRC}/doc/m4.texi
@${REINPLACE_CMD} -e '/^install-exec-am: / s| .*||' ${WRKSRC}/lib/Makefile.in
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
${INSTALL_DATA} ${WRKSRC}/examples/*.m4 ${STAGEDIR}${EXAMPLESDIR}/
.include <bsd.port.mk>