1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00
freebsd-ports/net/whois/Makefile
Guido Falsi 35ad8cc0ea - Update to 5.0.23
- Convert to staging
- Support NLS option
- Remove uneeded file
- Rename patch files according to standard

PR:		ports/185929
Submitted by:	Lapo Luchini <lapo@lapo.it> (maintainer)
2014-01-22 15:21:59 +00:00

38 lines
836 B
Makefile

# Created by: Filippo Natali <filippo@widestore.net>
# $FreeBSD$
PORTNAME= whois
PORTVERSION= 5.0.23
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL}
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= lapo@lapo.it
COMMENT= Marco d'Itri whois client
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= iconv gmake perl5
USE_XZ= yes
USE_PERL5= build
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAKE_ARGS= BASEDIR="${STAGEDIR}"
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/Makefile
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e "s| pos||" -e "s| install-pos||" \
-e "s|-lintl||" ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s|# define ENABLE_NLS||" ${WRKSRC}/config.h
.endif
.include <bsd.port.mk>