freebsd-ports/net/jwhois/Makefile
2021-04-06 16:31:07 +02:00

43 lines
903 B
Makefile

# Created by: matusita@jp.FreeBSD.org
PORTNAME= jwhois
PORTVERSION= 4.0
PORTREVISION= 7
CATEGORIES= net
MASTER_SITES= GNU
MAINTAINER= ports@FreeBSD.org
COMMENT= Improved WHOIS client capable of selecting server to query
LICENSE= GPLv3
LIB_DEPENDS= libidn.so:dns/libidn
GNU_CONFIGURE= yes
USES= gettext gmake iconv
CPPFLAGS+= -I${PREFIX}/include
LDFLAGS+= -L${PREFIX}/lib
CONFIGURE_ARGS= --localstatedir=${PREFIX}/var/jwhois
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_CONFIGURE_OFF= --disable-nls --without-libiconv-prefix
INSTALL_TARGET= install-strip
INFO= jwhois
.include <bsd.port.pre.mk>
.if exists(${FILESDIR}/jwhois.conf)
JWHOIS_CONF_SRC=${FILESDIR}/jwhois.conf
.else
JWHOIS_CONF_SRC=${WRKSRC}/example/jwhois.conf
.endif
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/var/jwhois
${INSTALL_DATA} ${JWHOIS_CONF_SRC} ${STAGEDIR}${PREFIX}/etc/jwhois.conf.sample
.include <bsd.port.post.mk>