faa5f3a506
Skip ENOMEM check for printf when building with qemu, this makes configure hang PR: 224740 Reported by: pkg-fallout With hat: portmgr
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
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"
|
|
.ifdef QEMU_EMULATING
|
|
# XXX bug 224740: configure hangs
|
|
CONFIGURE_ENV+= gl_cv_func_printf_enomem=no
|
|
.endif
|
|
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>
|