# 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