mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
3eb9b3ba65
PR: ports/100804 Submitted by: Filippo Natali <filippo.natali(at)gmail.com> Approved by: krion (mentor)
52 lines
1.1 KiB
Makefile
52 lines
1.1 KiB
Makefile
# New ports collection makefile for: whois
|
|
# Date created: 02 Oct 2003
|
|
# Whom: Filippo Natali <filippo@widestore.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= whois
|
|
PORTVERSION= 4.7.15
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL}
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
MAINTAINER= filippo.natali@gmail.com
|
|
COMMENT= Marco d'Itri whois client
|
|
|
|
USE_ICONV= yes
|
|
USE_PERL5_BUILD= yes
|
|
USE_GETOPT_LONG= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAKE_ENV= LDFLAGS="${LDFLAGS}"
|
|
MAKE_ARGS= OPTS=""
|
|
|
|
MAN1= whois.1
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
USE_GETTEXT= yes
|
|
LDFLAGS+= -lintl
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
PLIST_SUB+= NLS="@comment "
|
|
NO_PO= yes
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|prefix\=/usr/local|prefix\=${PREFIX}|g ; \
|
|
s|/usr/local|${LOCALBASE}|g ; \
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -e "s|/usr/share|${PREFIX}/share|g" ${WRKSRC}/po/Makefile
|
|
@if [ -n "${NO_PO}" ]; \
|
|
then ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/have_nls-patch; \
|
|
fi
|
|
|
|
post-install:
|
|
@if [ ! -n "${NO_PO}" ]; \
|
|
then cd ${WRKSRC}/po && ${MAKE} install; \
|
|
fi
|
|
|
|
.include <bsd.port.mk>
|