diff options
Diffstat (limited to 'www/w3m/Makefile')
-rw-r--r-- | www/w3m/Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/www/w3m/Makefile b/www/w3m/Makefile new file mode 100644 index 000000000000..94dead5b00ee --- /dev/null +++ b/www/w3m/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: w3m +# Version required: 990928 +# Date Created: 7 Oct 1999 +# Whom: MANTANI Nobutaka <nobutaka@nobutaka.com> +# +# $FreeBSD$ +# + +DISTNAME= w3m-990928 +CATEGORIES?= www +MASTER_SITES= ftp://ei5nazha.yz.yamagata-u.ac.jp/w3m/ \ + ftp://ftp.firedrake.org/w3m/ + +MAINTAINER= nobutaka@nobutaka.com + +WRKSRC= ${WRKDIR}/w3m +TARGET= ${WRKSRC}/config.h + +.if !defined(JAPANESE_MSG) +pre-extract: + @${ECHO} "Try ports/japanese/w3m if you prefer Japanese messages." +.endif + +post-configure: + @${CP} ${TARGET} ${TARGET}.in +.if defined(JAPANESE_MSG) + @${SED} \ + -e "s,%%PREFIX%%,${PREFIX},g" \ + -e "s,%%LOCALBASE%%,${LOCALBASE},g" \ + -e "s,#undef JAPANESE_MSG,#define JAPANESE_MSG,g" \ + -e "s,w3mhelp_en.html,w3mhelp_ja.html,g" \ + < ${TARGET}.in > ${TARGET} +.else + @${SED} \ + -e "s,%%PREFIX%%,${PREFIX},g" \ + -e "s,%%LOCALBASE%%,${LOCALBASE},g" \ + < ${TARGET}.in > ${TARGET} +.endif + +.include <bsd.port.mk> |