mirror of
https://git.freebsd.org/ports.git
synced 2025-06-10 23:30:29 -04:00
Changes: https://git.savannah.gnu.org/cgit/bison.git/tree/NEWS PR: 238141 Exp-run by: antoine
45 lines
1 KiB
Makefile
45 lines
1 KiB
Makefile
# Created by: Jerry Hicks
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bison
|
|
PORTVERSION= 3.4.1
|
|
PORTEPOCH= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= GNU
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Parser generator from FSF, (mostly) compatible with Yacc
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
RUN_DEPENDS= m4>=1.4.16,1:devel/m4
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES NLS
|
|
OPTIONS_SUB= yes
|
|
|
|
USES= charsetfix localbase makeinfo perl5 tar:xz
|
|
USE_PERL5= build
|
|
|
|
CONFIGURE_ARGS= --disable-yacc --enable-relocatable
|
|
.ifdef QEMU_EMULATING
|
|
# XXX bug 224740: configure hangs
|
|
CONFIGURE_ENV= gl_cv_func_printf_enomem=no
|
|
.endif
|
|
GNU_CONFIGURE= yes
|
|
LIBS+= -lm
|
|
TEST_TARGET= check
|
|
|
|
INFO= bison
|
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
NLS_CONFIGURE_OFF= ac_cv_libtextstyle=no
|
|
NLS_LIB_DEPENDS= libtextstyle.so:devel/libtextstyle
|
|
NLS_USES= gettext
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|$$(docdir)\(/examples\)|$$(datarootdir)\1/bison|' ${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} -e 's|\(.*\) _Noreturn void|_Noreturn \1 void|' ${WRKSRC}/data/skeletons/*.c ${WRKSRC}/lib/*.[ch]
|
|
|
|
.include <bsd.port.mk>
|