aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gawk/Makefile
blob: e7e055a04829a4b9f2db88535fcc91896e57f2d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Created by: Andreas Klemm <andreas@klemm.gtn.com>
# $FreeBSD$

PORTNAME=   gawk
PORTVERSION=    4.1.4
CATEGORIES= lang
MASTER_SITES=   GNU

MAINTAINER= johans@FreeBSD.org
COMMENT=    GNU version of Awk

LIB_DEPENDS=    libsigsegv.so:devel/libsigsegv

OPTIONS_DEFINE=     NLS MPFR
OPTIONS_SUB=        yes
NLS_USES=       gettext
NLS_CONFIGURE_OFF=  --disable-nls
MPFR_DESC?=     Support multiple-precision floating-point computation
MPFR_LIB_DEPENDS=   libmpfr.so:math/mpfr
MPFR_CONFIGURE_OFF= --without-gmp --without-mpfr

INFO=       gawk gawkinet

GNU_CONFIGURE=  yes
USES=       iconv libtool makeinfo readline tar:xz
CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG} \
        --with-libintl-prefix=${LOCALBASE} \
        AWK=${AWK}
INSTALL_TARGET= install-strip

PLIST_SUB+= VERSION=${PORTVERSION}

post-patch:
    @${RM} ${WRKSRC}/doc/*.info
    @${REINPLACE_CMD} -e 's/ -export-dynamic/ -Wl,--export-dynamic/' \
        ${WRKSRC}/configure

.include <bsd.port.mk>