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
|
2005-11-17 01:17:54 +01:00
|
|
|
PORTVERSION= 2.1
|
2006-03-26 11:30:06 +02:00
|
|
|
PORTREVISION= 2
|
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
|
|
|
|
2005-09-04 20:33:15 +02:00
|
|
|
MAINTAINER= ade@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
|
|
|
|
2002-10-24 22:04:48 +02:00
|
|
|
BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4
|
2002-11-16 01:48:39 +01:00
|
|
|
RUN_DEPENDS= gm4:${PORTSDIR}/devel/m4
|
2000-06-12 12:00:36 +02:00
|
|
|
|
2005-11-17 01:17:54 +01:00
|
|
|
CONFLICTS= bison-1.*
|
2004-11-11 18:19:39 +01:00
|
|
|
|
2004-01-29 13:06:26 +01:00
|
|
|
NO_LATEST_LINK= yes
|
2002-04-30 10:29:55 +02:00
|
|
|
USE_BZIP2= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2002-04-30 10:29:55 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
MAKEINFO="makeinfo --no-split"
|
2000-06-12 12:00:36 +02:00
|
|
|
|
2002-04-30 10:29:55 +02:00
|
|
|
MAN1= bison.1
|
2004-11-11 18:19:39 +01:00
|
|
|
INFO= bison
|
|
|
|
|
2006-03-26 11:30:06 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-yacc
|
2004-11-11 18:19:39 +01:00
|
|
|
.if defined(WITHOUT_NLS)
|
2006-03-26 11:30:06 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
2004-11-11 18:19:39 +01:00
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.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*
|
2001-09-23 08:40:35 +02:00
|
|
|
|
2003-11-15 23:20:01 +01:00
|
|
|
post-install:
|
2005-11-17 01:17:54 +01:00
|
|
|
${LN} -sf ${PREFIX}/bin/bison ${PREFIX}/bin/bison2
|
2003-11-15 23:20:01 +01:00
|
|
|
|
2000-01-17 12:31:33 +01:00
|
|
|
.include <bsd.port.mk>
|