2003-10-04 16:36:43 +02:00
|
|
|
# New ports collection makefile for: whois
|
|
|
|
# Date created: 02 Oct 2003
|
|
|
|
# Whom: Filippo Natali <filippo@widestore.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= whois
|
2005-10-07 13:09:06 +02:00
|
|
|
PORTVERSION= 4.7.8
|
2003-10-04 16:36:43 +02:00
|
|
|
CATEGORIES= net
|
2004-03-02 10:28:38 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL}
|
2003-10-04 16:36:43 +02:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
|
2005-03-10 18:24:59 +01:00
|
|
|
MAINTAINER= filippo.natali@gmail.com
|
2003-10-04 16:36:43 +02:00
|
|
|
COMMENT= Marco d'Itri whois client
|
|
|
|
|
|
|
|
MAN1= whois.1
|
|
|
|
|
2004-03-30 21:56:43 +02:00
|
|
|
USE_ICONV= yes
|
2003-10-04 16:36:43 +02:00
|
|
|
USE_PERL5_BUILD= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
USE_GETOPT_LONG= yes
|
2005-10-07 13:09:06 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-4.7.7
|
2003-10-04 16:36:43 +02:00
|
|
|
|
2003-10-13 15:54:40 +02:00
|
|
|
MAKE_ENV= LDFLAGS="${LDFLAGS}"
|
2004-04-13 17:57:01 +02:00
|
|
|
MAKE_ARGS= OPTS=""
|
2003-10-13 15:54:40 +02:00
|
|
|
|
2004-04-19 13:17:36 +02:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
LDFLAGS+= -lintl
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
NO_PO= yes
|
|
|
|
.endif
|
|
|
|
|
2003-10-04 16:36:43 +02:00
|
|
|
post-patch:
|
2003-10-13 15:54:40 +02:00
|
|
|
@${REINPLACE_CMD} -e "s|prefix\=/usr/local|prefix\=${PREFIX}|g ; \
|
2005-11-12 18:53:09 +01:00
|
|
|
s|/usr/local|${LOCALBASE}|g ; \
|
2003-10-13 15:54:40 +02:00
|
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/Makefile
|
2003-10-04 16:36:43 +02:00
|
|
|
@${REINPLACE_CMD} -e "s|/usr/share|${PREFIX}/share|g" ${WRKSRC}/po/Makefile
|
2004-04-19 13:17:36 +02:00
|
|
|
@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
|
2003-10-04 16:36:43 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|