mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
7d06e3b526
With hat: portmgr
40 lines
858 B
Makefile
40 lines
858 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
|
|
|
|
BROKEN= Unfetchable
|
|
|
|
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>
|