freebsd-ports/lang/gawk/Makefile

55 lines
1.1 KiB
Makefile
Raw Normal View History

# 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
PORTNAME= gawk
PORTVERSION= 4.1.0
1998-10-21 20:52:03 +02:00
CATEGORIES= lang
MASTER_SITES= GNU
1998-10-21 20:52:03 +02:00
MAINTAINER= johans@FreeBSD.org
COMMENT= The GNU version of Awk
1998-10-21 20:52:03 +02:00
LIB_DEPENDS= sigsegv:${PORTSDIR}/devel/libsigsegv
OPTIONS_DEFINE= MPFR
MPFR_DESC?= Support multiple-precision floating-point computation
2004-07-11 12:30:37 +02:00
INFO= gawk gawkinet
USE_XZ= true
GNU_CONFIGURE= yes
USES= iconv
CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG} \
--with-libintl-prefix=${LOCALBASE} \
AWK=${AWK}
2007-03-04 10:53:09 +01: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
PLIST_SUB= VERSION=${PORTVERSION}
2004-07-11 12:30:37 +02:00
NO_STAGE= yes
2012-06-27 22:58:20 +02:00
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
2004-07-11 12:30:37 +02:00
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MMPFR}
LIB_DEPENDS= mpfr:${PORTSDIR}/math/mpfr
.else
CONFIGURE_ARGS+=--without-gmp --without-mpfr
.endif
post-patch:
@${RM} -f ${WRKSRC}/doc/*.info
@${REINPLACE_CMD} -e 's/ -export-dynamic/ -Wl,--export-dynamic/' \
${WRKSRC}/configure
.include <bsd.port.mk>