mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
07ab5ebe41
PR: ports/176981 Submitted by: Green Dog <fiziologus@gmail.com>
43 lines
849 B
Makefile
43 lines
849 B
Makefile
# Created by: Andreas Klemm <andreas@klemm.gtn.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gawk
|
|
PORTVERSION= 4.0.2
|
|
CATEGORIES= lang
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
MASTER_SITE_SUBDIR= gawk
|
|
|
|
MAINTAINER= johans@FreeBSD.org
|
|
COMMENT= The GNU version of Awk
|
|
|
|
LIB_DEPENDS= sigsegv:${PORTSDIR}/devel/libsigsegv
|
|
|
|
INFO= gawk gawkinet
|
|
|
|
USE_XZ= true
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \
|
|
--with-libintl-prefix=${LOCALBASE} \
|
|
AWK=${AWK}
|
|
|
|
MAN1= gawk.1 dgawk.1 igawk.1 pgawk.1
|
|
|
|
PLIST_SUB= VERSION=${PORTVERSION}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
USE_GETTEXT= yes
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${RM} -f ${WRKSRC}/doc/*.info
|
|
@${REINPLACE_CMD} -e 's/ -export-dynamic/ -Wl,--export-dynamic/' \
|
|
${WRKSRC}/configure
|
|
|
|
.include <bsd.port.mk>
|