2000-02-13 04:25:05 +01:00
|
|
|
# Ports collection makefile for: bison
|
|
|
|
# Date created: 27 Mar 1999
|
|
|
|
# Whom: Jerry Hicks
|
2000-01-17 12:31:33 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2002-04-30 10:29:55 +02:00
|
|
|
PORTNAME= bison
|
2012-01-30 20:30:19 +01:00
|
|
|
PORTVERSION= 2.5
|
2007-10-18 04:28:45 +02:00
|
|
|
PORTEPOCH= 1
|
2002-04-30 10:29:55 +02:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
2002-10-24 15:55:31 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2000-01-17 12:31:33 +01:00
|
|
|
|
2010-02-23 19:03:45 +01:00
|
|
|
MAINTAINER= johans@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= A parser generator from FSF, (mostly) compatible with Yacc
|
2000-01-17 12:31:33 +01:00
|
|
|
|
2004-02-04 19:02:08 +01:00
|
|
|
BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4
|
|
|
|
RUN_DEPENDS= gm4:${PORTSDIR}/devel/m4
|
2003-09-01 05:30:08 +02:00
|
|
|
|
2005-09-04 12:45:23 +02:00
|
|
|
USE_BZIP2= yes
|
2002-04-30 10:29:55 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2000-06-12 12:00:36 +02:00
|
|
|
|
2002-04-30 10:29:55 +02:00
|
|
|
MAN1= bison.1
|
2004-03-28 18:26:57 +02:00
|
|
|
INFO= bison
|
|
|
|
|
2007-10-17 12:13:01 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-yacc
|
2012-06-27 22:58:20 +02:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2004-03-28 18:26:57 +02:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
2012-06-27 22:58:20 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
2004-03-28 18:26:57 +02:00
|
|
|
.endif
|
2000-01-17 12:31:33 +01:00
|
|
|
|
2002-09-14 15:32:06 +02:00
|
|
|
.ifdef USE_BISON
|
|
|
|
.error You have `USE_BISON' variable defined either in environment or in make(1) arguments. Please undefine and try again.
|
|
|
|
.endif
|
|
|
|
|
2001-09-23 08:40:35 +02:00
|
|
|
post-extract:
|
2002-03-13 02:23:26 +01:00
|
|
|
@${RM} -f ${WRKSRC}/doc/bison.info*
|
2009-03-06 13:04:11 +01:00
|
|
|
@${REINPLACE_CMD} 's/MANS = yacc.1/MANS =/' ${WRKSRC}/doc/Makefile.in
|
2012-06-27 22:58:20 +02:00
|
|
|
.if empty(${PORT_OPTIONS:MNLS})
|
2009-04-10 11:06:25 +02:00
|
|
|
@${REINPLACE_CMD} 's/ install-exec-local//' ${WRKSRC}/lib/Makefile.in
|
|
|
|
.endif
|
2001-09-23 08:40:35 +02:00
|
|
|
|
2007-10-17 12:13:01 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
post-install:
|
|
|
|
${MKDIR} ${EXAMPLESDIR}/calc++
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/calc++/*.[chly]* \
|
|
|
|
${EXAMPLESDIR}/calc++
|
|
|
|
.endif
|
|
|
|
|
2011-11-07 04:25:29 +01:00
|
|
|
.include <bsd.port.mk>
|