2013-03-17 15:05:20 +01:00
|
|
|
# Created by: Andreas Klemm <andreas@klemm.gtn.com>
|
1999-08-25 08:35:40 +02:00
|
|
|
# $FreeBSD$
|
1998-10-21 20:52:03 +02:00
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= gawk
|
2013-05-15 19:03:17 +02:00
|
|
|
PORTVERSION= 4.1.0
|
1998-10-21 20:52:03 +02:00
|
|
|
CATEGORIES= lang
|
2013-05-15 19:03:17 +02:00
|
|
|
MASTER_SITES= GNU
|
1998-10-21 20:52:03 +02:00
|
|
|
|
2010-12-28 18:59:18 +01:00
|
|
|
MAINTAINER= johans@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= The GNU version of Awk
|
1998-10-21 20:52:03 +02:00
|
|
|
|
2011-07-09 13:27:19 +02:00
|
|
|
LIB_DEPENDS= sigsegv:${PORTSDIR}/devel/libsigsegv
|
|
|
|
|
2013-06-29 11:30:23 +02:00
|
|
|
OPTIONS_DEFINE= MPFR
|
|
|
|
MPFR_DESC?= Support multiple-precision floating-point computation
|
|
|
|
|
2004-07-11 12:30:37 +02:00
|
|
|
INFO= gawk gawkinet
|
|
|
|
|
2011-07-09 13:27:19 +02:00
|
|
|
USE_XZ= true
|
2002-06-09 04:30:34 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2013-09-04 22:01:05 +02:00
|
|
|
USES= iconv
|
|
|
|
CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG} \
|
2010-04-30 13:50:43 +02:00
|
|
|
--with-libintl-prefix=${LOCALBASE} \
|
|
|
|
AWK=${AWK}
|
2007-03-04 10:53:09 +01:00
|
|
|
|
2013-05-15 19:03:17 +02:00
|
|
|
MAN1= gawk.1 igawk.1
|
|
|
|
MAN3= filefuncs.3am fnmatch.3am fork.3am ordchr.3am readdir.3am \
|
|
|
|
readfile.3am revoutput.3am revtwoway.3am rwarray.3am time.3am
|
1998-10-21 20:52:03 +02:00
|
|
|
|
2002-06-09 04:30:34 +02:00
|
|
|
PLIST_SUB= VERSION=${PORTVERSION}
|
2004-07-11 12:30:37 +02:00
|
|
|
|
2013-09-20 21:53:09 +02:00
|
|
|
NO_STAGE= yes
|
2012-06-27 22:58:20 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2013-04-24 20:10:30 +02:00
|
|
|
USES+= gettext
|
2004-07-11 12:30:37 +02:00
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
2002-06-09 04:30:34 +02:00
|
|
|
|
2013-06-29 11:30:23 +02:00
|
|
|
.if ${PORT_OPTIONS:MMPFR}
|
|
|
|
LIB_DEPENDS= mpfr:${PORTSDIR}/math/mpfr
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-gmp --without-mpfr
|
|
|
|
.endif
|
|
|
|
|
2013-03-17 15:05:20 +01:00
|
|
|
post-patch:
|
2010-09-09 23:51:23 +02:00
|
|
|
@${RM} -f ${WRKSRC}/doc/*.info
|
2013-03-17 15:05:20 +01:00
|
|
|
@${REINPLACE_CMD} -e 's/ -export-dynamic/ -Wl,--export-dynamic/' \
|
|
|
|
${WRKSRC}/configure
|
2010-09-09 23:51:23 +02:00
|
|
|
|
2009-01-05 21:36:33 +01:00
|
|
|
.include <bsd.port.mk>
|