2001-12-30 18:52:17 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: retawq
|
|
|
|
# Date created: Dec 30, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= retawq
|
2004-03-05 15:59:43 +00:00
|
|
|
PORTVERSION= 0.2.4
|
2001-12-30 18:52:17 +00:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:21:36 +00:00
|
|
|
COMMENT= An interactive, multi-threaded web browser for text terminals
|
2001-12-30 18:52:17 +00:00
|
|
|
|
2004-02-04 04:36:30 +00:00
|
|
|
USE_GETTEXT= yes
|
2002-11-23 15:33:50 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
HAS_CONFIGURE= yes
|
2003-09-04 16:56:46 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2002-11-23 15:33:50 +00:00
|
|
|
CONFIGURE_ARGS= --path-archprefix=${PREFIX} --path-prefix=${PREFIX} \
|
|
|
|
--enable-i18n --enable-local-cgi --enable-ipv6
|
2004-03-05 15:59:43 +00:00
|
|
|
PORTDOCS= *
|
2001-12-30 18:52:17 +00:00
|
|
|
|
2002-11-20 13:24:40 +00:00
|
|
|
MAN1= retawq.1
|
2001-12-30 18:52:17 +00:00
|
|
|
|
2003-09-04 16:56:46 +00:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
|
|
|
|
2003-07-16 16:41:17 +00:00
|
|
|
.if defined(WITH_GNUTLS)
|
2004-06-06 01:44:39 +00:00
|
|
|
LIB_DEPENDS+= gnutls.12:${PORTSDIR}/security/gnutls
|
2003-09-04 16:56:46 +00:00
|
|
|
CONFIGURE_ARGS+= --set-tls=1
|
|
|
|
.elif defined(WITH_OPENSSL)
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS+= --set-tls=2
|
|
|
|
LDFLAGS+= -lssl -lcrypto
|
2003-07-16 16:41:17 +00:00
|
|
|
.endif
|
|
|
|
|
2002-11-23 15:33:50 +00:00
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e 's|_IN_H 0|_IN_H 1|g ; \
|
|
|
|
s|_SOCKET_H 0|_SOCKET_H 1|g' ${WRKSRC}/.config
|
|
|
|
|
2001-12-30 18:52:17 +00:00
|
|
|
do-install:
|
2004-03-05 15:59:43 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/retawq ${PREFIX}/bin
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/docu/retawq.1 ${MANPREFIX}/man/man1
|
2003-07-08 06:25:46 +00:00
|
|
|
.for lang in de es fr pt_BR
|
2004-03-05 15:59:43 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/i18n/${lang}.mo \
|
2002-11-20 13:24:40 +00:00
|
|
|
${PREFIX}/share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
|
2001-12-30 18:52:17 +00:00
|
|
|
.endfor
|
2002-11-20 13:24:40 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2004-03-05 15:59:43 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docu/*.html ${DOCSDIR}
|
2002-11-20 13:24:40 +00:00
|
|
|
.endif
|
2001-12-30 18:52:17 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|