1999-10-08 15:32:48 +00:00
|
|
|
# New ports collection makefile for: w3m
|
2000-01-30 16:23:57 +00:00
|
|
|
# Version required: 0.1.7
|
1999-10-08 15:32:48 +00:00
|
|
|
# Date Created: 7 Oct 1999
|
|
|
|
# Whom: MANTANI Nobutaka <nobutaka@nobutaka.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-01-30 16:23:57 +00:00
|
|
|
DISTNAME= w3m-${W3M_VER}
|
|
|
|
W3M_VER= 0.1.7
|
2000-01-18 12:34:34 +00:00
|
|
|
CATEGORIES?= www ipv6
|
2000-01-30 16:23:57 +00:00
|
|
|
MASTER_SITES= ftp://ei5nazha.yz.yamagata-u.ac.jp/w3m/dev/ \
|
|
|
|
ftp://ftp.firedrake.org/w3m/dev/ \
|
|
|
|
http://www.instinct.org/~pgl/w3m/dev/ \
|
|
|
|
http://grilli.net/mirrors/w3m/download/dev/
|
1999-10-08 15:32:48 +00:00
|
|
|
|
|
|
|
MAINTAINER= nobutaka@nobutaka.com
|
|
|
|
|
1999-11-14 02:02:07 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libgc.a:${PORTSDIR}/devel/boehm-gc
|
|
|
|
|
1999-10-08 15:32:48 +00:00
|
|
|
WRKSRC= ${WRKDIR}/w3m
|
1999-11-14 02:02:07 +00:00
|
|
|
MAN1= w3m.1
|
|
|
|
MANLANG= ""
|
|
|
|
|
1999-10-08 15:32:48 +00:00
|
|
|
TARGET= ${WRKSRC}/config.h
|
2000-01-30 16:23:57 +00:00
|
|
|
DOCS= FAQ.html HISTORY MANUAL.html README \
|
1999-11-14 02:02:07 +00:00
|
|
|
README.dict README.func STORY.html keymap.default \
|
|
|
|
keymap.lynx menu.default menu.submenu
|
|
|
|
SED_CMD= -e "s,%%PREFIX%%,${PREFIX},g" \
|
|
|
|
-e "s,%%LOCALBASE%%,${LOCALBASE},g"
|
|
|
|
|
2000-01-24 01:11:12 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 400014
|
2000-01-10 14:48:37 +00:00
|
|
|
SED_CMD+= -e "s,undef INET6,define INET6,g"
|
|
|
|
.endif
|
|
|
|
|
1999-11-14 02:02:07 +00:00
|
|
|
.if defined(JAPANESE)
|
|
|
|
SED_CMD+= -e "s,undef JAPANESE,define JAPANESE,g" \
|
|
|
|
-e "s,w3mhelp_en.html,w3mhelp_ja.html,g"
|
|
|
|
MANLANG+= ja
|
|
|
|
DOCS_JP= ${DOCS} HISTORY HISTORY.kokb README.keymap README.kokb \
|
|
|
|
README.menu
|
|
|
|
.endif
|
|
|
|
|
2000-02-06 22:25:15 +00:00
|
|
|
.if defined(USE_OPENSSL)
|
|
|
|
SSL_CFLAGS= -I${OPENSSLINC}/openssl -I${OPENSSLINC}
|
|
|
|
SSL_LIBS= -L${OPENSSLLIB} -lssl -lcrypto
|
1999-10-08 15:32:48 +00:00
|
|
|
|
1999-11-14 02:02:07 +00:00
|
|
|
SED_CMD+= -e "s,undef USE_SSL,define USE_SSL,g"
|
|
|
|
|
2000-02-10 06:10:32 +00:00
|
|
|
.if defined(OPENSSL_RSAREF)
|
2000-02-15 06:58:44 +00:00
|
|
|
EXTRA_SSL_LIBS= -lRSAglue -lrsaref
|
2000-02-10 06:10:32 +00:00
|
|
|
.endif
|
2000-02-06 22:25:15 +00:00
|
|
|
MAKE_FLAGS+= DEFS="${SSL_CFLAGS} -I${LOCALBASE}/include" \
|
2000-02-15 06:58:44 +00:00
|
|
|
LIBS="${SSL_LIBS} ${EXTRA_SSL_LIBS} -L${LOCALBASE}/lib"
|
2000-02-10 06:10:32 +00:00
|
|
|
.else
|
|
|
|
MAKE_FLAGS+= DEFS="-I${LOCALBASE}/include" LIBS="-L${LOCALBASE}/lib"
|
|
|
|
.endif
|
1999-11-14 02:02:07 +00:00
|
|
|
|
1999-10-08 15:32:48 +00:00
|
|
|
post-configure:
|
|
|
|
@${CP} ${TARGET} ${TARGET}.in
|
1999-11-14 02:02:07 +00:00
|
|
|
@${SED} ${SED_CMD} < ${TARGET}.in > ${TARGET}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
.if defined(JAPANESE)
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/ja/w3m
|
|
|
|
@(cd ${WRKSRC}/doc-jp; \
|
|
|
|
for i in ${DOCS_JP} ; do \
|
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/share/doc/ja/w3m/ ; \
|
|
|
|
done)
|
|
|
|
.endif
|
|
|
|
@(cd ${WRKSRC}/doc; \
|
|
|
|
for i in ${DOCS} ; do \
|
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/share/doc/w3m/ ; \
|
|
|
|
done)
|
|
|
|
.endif
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/doc/w3m.1 ${PREFIX}/man/man1
|
|
|
|
.if defined(JAPANESE)
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/doc-jp/w3m.1 ${PREFIX}/man/ja/man1
|
1999-10-08 15:32:48 +00:00
|
|
|
.endif
|
|
|
|
|
2000-01-24 01:11:12 +00:00
|
|
|
.include <bsd.port.post.mk>
|