1999-10-08 17:32:48 +02:00
|
|
|
# New ports collection makefile for: w3m
|
|
|
|
# Date Created: 7 Oct 1999
|
|
|
|
# Whom: MANTANI Nobutaka <nobutaka@nobutaka.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-11 14:48:47 +02:00
|
|
|
PORTNAME= w3m
|
2001-08-28 01:45:08 +02:00
|
|
|
PORTVERSION= ${W3M_VERSION}
|
2000-04-14 19:24:56 +02:00
|
|
|
CATEGORIES+= www ipv6
|
2004-01-12 04:17:20 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= nobutaka
|
|
|
|
#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
#MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
DISTNAME= w3m-${W3M_VERSION}.${SNAPDATE}
|
1999-10-08 17:32:48 +02:00
|
|
|
|
2001-11-03 20:16:50 +01:00
|
|
|
MAINTAINER?= nobutaka@FreeBSD.org
|
2003-02-22 15:25:38 +01:00
|
|
|
COMMENT?= A pager/text-based WWW browser
|
1999-10-08 17:32:48 +02:00
|
|
|
|
2004-01-17 22:22:59 +01:00
|
|
|
LIB_DEPENDS= gc.1:${PORTSDIR}/devel/boehm-gc
|
2000-10-25 08:45:29 +02:00
|
|
|
|
2004-01-12 04:17:20 +01:00
|
|
|
W3M_VERSION= 0.4.2
|
|
|
|
SNAPDATE= 20040111
|
2001-08-28 01:45:08 +02:00
|
|
|
|
2004-01-12 04:17:20 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2002-07-25 17:58:18 +02:00
|
|
|
USE_REINPLACE= yes
|
2004-01-12 04:17:20 +01:00
|
|
|
|
|
|
|
CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include"
|
|
|
|
WRKSRC= ${WRKDIR}/w3m
|
2001-10-11 14:24:04 +02:00
|
|
|
|
2002-07-25 17:58:18 +02:00
|
|
|
MAN1= w3m.1 w3mman.1
|
|
|
|
MANLANG= "" ja
|
1999-11-14 03:02:07 +01:00
|
|
|
|
2000-01-30 17:23:57 +01:00
|
|
|
DOCS= FAQ.html HISTORY MANUAL.html README \
|
1999-11-14 03:02:07 +01:00
|
|
|
README.dict README.func STORY.html keymap.default \
|
|
|
|
keymap.lynx menu.default menu.submenu
|
|
|
|
|
2001-07-21 20:21:56 +02:00
|
|
|
.if !defined(WITHOUT_SSL) && exists(/usr/lib/libcrypto.so)
|
|
|
|
USE_OPENSSL= yes
|
2004-01-12 04:17:20 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ssl
|
2001-07-21 20:21:56 +02:00
|
|
|
.endif
|
|
|
|
|
2001-10-11 14:24:04 +02:00
|
|
|
.if defined(M17N)
|
2004-01-12 04:17:20 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-m17n
|
|
|
|
PLIST_SUB+= M17N=""
|
2001-10-11 14:24:04 +02:00
|
|
|
.else
|
2004-01-12 04:17:20 +01:00
|
|
|
.if !defined(JAPANESE)
|
|
|
|
CONFIGURE_ARGS+= --disable-m17n
|
|
|
|
PLIST_SUB+= M17N="@comment "
|
|
|
|
.endif
|
2000-01-10 15:48:37 +01:00
|
|
|
.endif
|
|
|
|
|
1999-11-14 03:02:07 +01:00
|
|
|
.if defined(JAPANESE)
|
2004-01-12 04:17:20 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-m17n --enable-japanese=E --with-migemo=yes
|
2002-07-25 17:58:18 +02:00
|
|
|
DOCS_JP= ${DOCS} README.SSL README.cookie README.keymap README.mailcap \
|
|
|
|
README.menu README.migemo
|
2001-07-21 20:21:56 +02:00
|
|
|
|
2004-01-12 04:17:20 +01:00
|
|
|
PLIST_SUB+= JAPANESE="" M17N=""
|
2001-07-21 20:21:56 +02:00
|
|
|
.else
|
2002-07-25 17:58:18 +02:00
|
|
|
PLIST_SUB+= JAPANESE="@comment "
|
1999-11-14 03:02:07 +01:00
|
|
|
.endif
|
|
|
|
|
2004-01-17 22:22:59 +01:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
2004-01-23 19:12:26 +01:00
|
|
|
LIB_DEPENDS+= intl.5:${PORTSDIR}/devel/gettext-old
|
2004-01-17 22:22:59 +01:00
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.endif
|
|
|
|
|
2001-07-21 20:21:56 +02:00
|
|
|
.if defined(INLINE_IMAGE)
|
2002-11-17 15:31:34 +01:00
|
|
|
USE_GNOME= gdkpixbuf
|
2004-01-12 04:17:20 +01:00
|
|
|
CONFIGURE_ARGS+= --with-imagelib=gdk-pixbuf
|
2001-07-21 20:21:56 +02:00
|
|
|
|
2001-08-28 01:45:08 +02:00
|
|
|
DOCS+= README.img
|
2001-07-21 20:21:56 +02:00
|
|
|
DOCS_JP+= README.img
|
2002-07-25 17:58:18 +02:00
|
|
|
PLIST_SUB+= INLINE_IMAGE=""
|
2002-03-31 17:52:04 +02:00
|
|
|
|
2001-08-28 01:45:08 +02:00
|
|
|
PKGMESSAGE= ${MASTERDIR}/pkg-message
|
2001-07-21 20:21:56 +02:00
|
|
|
.else
|
2004-01-12 04:17:20 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-image=no
|
2002-07-25 17:58:18 +02:00
|
|
|
PLIST_SUB+= INLINE_IMAGE="@comment "
|
2001-08-28 01:45:08 +02:00
|
|
|
|
|
|
|
# Don't use pkg-message
|
|
|
|
PKGMESSAGE= ${NONEXISTENT}
|
2001-07-21 20:21:56 +02:00
|
|
|
.endif
|
|
|
|
|
2002-02-03 04:02:27 +01:00
|
|
|
pre-everything::
|
2003-03-24 16:07:18 +01:00
|
|
|
@${ECHO_MSG} "===>"
|
|
|
|
@${ECHO_MSG} "===> You can enable some features by defining following variables."
|
|
|
|
@${ECHO_MSG} "===>"
|
2004-01-17 22:22:59 +01:00
|
|
|
.if defined(M17N)
|
|
|
|
@${ECHO_MSG} "===> M17N (multilingualization, enabled)"
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "===> M17N (multilingualization)"
|
|
|
|
.endif
|
2003-03-24 16:07:18 +01:00
|
|
|
.if defined(JAPANESE)
|
|
|
|
@${ECHO_MSG} "===> JAPANESE (Japanese messages and migemo support, enabled)"
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "===> JAPANESE (Japanese messages and migemo support)"
|
|
|
|
.endif
|
|
|
|
.if defined(INLINE_IMAGE)
|
|
|
|
@${ECHO_MSG} "===> INLINE_IMAGE (inline image support, enabled)"
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "===> INLINE_IMAGE (inline image support)"
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} "===>"
|
2004-01-17 22:22:59 +01:00
|
|
|
@${ECHO_MSG} "===> You can disable some features by defining following variables."
|
|
|
|
@${ECHO_MSG} "===>"
|
|
|
|
.if defined(WITHOUT_SSL)
|
|
|
|
@${ECHO_MSG} "===> WITHOUT_SSL (disabled)"
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "===> WITHOUT_SSL"
|
2002-02-03 04:02:27 +01:00
|
|
|
.endif
|
2004-01-17 22:22:59 +01:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
@${ECHO_MSG} "===> WITHOUT_NLS (disabled)"
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "===> WITHOUT_NLS"
|
2001-07-21 20:21:56 +02:00
|
|
|
.endif
|
2004-01-17 22:22:59 +01:00
|
|
|
@${ECHO_MSG} "===>"
|
2001-07-21 20:21:56 +02:00
|
|
|
|
2002-07-25 17:58:18 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|\`\(expr\) \(.*\) : \(.*\)`|`\1 \\( \2 : \3 \\)`|' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
|
1999-11-14 03:02:07 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
.if defined(JAPANESE)
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/ja/w3m
|
2000-04-22 04:50:45 +02:00
|
|
|
@cd ${WRKSRC}/doc-jp; \
|
1999-11-14 03:02:07 +01:00
|
|
|
for i in ${DOCS_JP} ; do \
|
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/share/doc/ja/w3m/ ; \
|
2000-04-22 04:50:45 +02:00
|
|
|
done
|
1999-11-14 03:02:07 +01:00
|
|
|
.endif
|
2000-04-22 04:50:45 +02:00
|
|
|
@cd ${WRKSRC}/doc; \
|
2001-12-04 23:32:46 +01:00
|
|
|
${MKDIR} ${PREFIX}/share/doc/w3m/; \
|
1999-11-14 03:02:07 +01:00
|
|
|
for i in ${DOCS} ; do \
|
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/share/doc/w3m/ ; \
|
2000-04-22 04:50:45 +02:00
|
|
|
done
|
2004-01-12 04:17:20 +01:00
|
|
|
.if defined(M17N) || defined(JAPANESE)
|
2001-10-11 14:24:04 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/README.m17n ${PREFIX}/share/doc/w3m
|
|
|
|
.endif
|
1999-11-14 03:02:07 +01:00
|
|
|
.endif
|
2002-07-25 17:58:18 +02:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/scripts/w3mman/w3mman.1 ${PREFIX}/man/ja/man1
|
2001-08-28 01:45:08 +02:00
|
|
|
.if defined(INLINE_IMAGE)
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.endif
|
1999-10-08 17:32:48 +02:00
|
|
|
|
2001-10-11 14:24:04 +02:00
|
|
|
.include <bsd.port.mk>
|