2001-10-25 12:14:51 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.29 2001/10/25 16:14:51 naddy Exp $
|
2001-04-03 18:54:50 -04:00
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386 sparc m68k
|
1999-10-26 10:20:07 -04:00
|
|
|
|
2001-03-30 12:19:08 -05:00
|
|
|
COMMENT= "text-based web browser/pager"
|
2001-08-02 10:59:07 -04:00
|
|
|
COMMENT-kanji= "Japanese text-based web browser/pager"
|
2001-07-31 11:27:08 -04:00
|
|
|
COMMENT-image= "text-based web browser/pager with inline image support"
|
2001-03-30 12:19:08 -05:00
|
|
|
COMMENT-m17n= "multi-script text-based web browser/pager"
|
2001-08-02 10:59:07 -04:00
|
|
|
COMMENT-kanji-m17n= "Japanese multi-script text-based web browser/pager"
|
|
|
|
COMMENT-kanji-image= "Japanese text-based web browser/pager with image support"
|
1999-10-26 10:20:07 -04:00
|
|
|
|
2001-10-24 08:23:32 -04:00
|
|
|
V_AITO= 0.2.1 # aito's official release
|
|
|
|
V_INU= 1.4 # inu branch
|
|
|
|
V_IMG= 1.11 # image extension
|
|
|
|
V_M17N= 0.19 # multilingualization extension
|
|
|
|
|
|
|
|
AITO_DISTNAME= w3m-${V_AITO}
|
|
|
|
INU_DISTNAME= w3m-${V_AITO}-inu-${V_INU}
|
2001-03-30 12:19:08 -05:00
|
|
|
|
2001-03-24 07:56:14 -05:00
|
|
|
CATEGORIES= www
|
2001-10-24 08:23:32 -04:00
|
|
|
NEED_VERSION= 1.474
|
2000-07-09 20:17:55 -04:00
|
|
|
HOMEPAGE= http://ei5nazha.yz.yamagata-u.ac.jp/~aito/w3m/eng/
|
1999-10-26 10:20:07 -04:00
|
|
|
|
2001-03-24 07:56:14 -05:00
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
2000-08-24 22:24:10 -04:00
|
|
|
|
2000-02-15 13:59:02 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
1999-10-26 10:20:07 -04:00
|
|
|
|
2001-03-24 07:56:14 -05:00
|
|
|
MASTER_SITES= ftp://ei5nazha.yz.yamagata-u.ac.jp/w3m/ \
|
|
|
|
http://mi.med.tohoku.ac.jp/~satodai/w3m/src/ \
|
2001-10-06 14:33:50 -04:00
|
|
|
http://www.instinct.org/w3m/ \
|
|
|
|
ftp://ftp.wiretapped.net/pub/w3m/
|
2001-10-24 08:23:32 -04:00
|
|
|
MASTER_SITES0= http://mi.med.tohoku.ac.jp/~satodai/w3m/inusrc/200109/
|
|
|
|
MASTER_SITES1= http://www2u.biglobe.ne.jp/~hsaka/w3m/patch/
|
2001-03-30 12:19:08 -05:00
|
|
|
|
2001-10-24 08:23:32 -04:00
|
|
|
INU_DISTFILE= ${INU_DISTNAME}${EXTRACT_SUFX}:0
|
|
|
|
IMG_PATCH= w3m-${V_AITO}-inu-${V_INU}-img-${V_IMG}.patch:1
|
|
|
|
M17N_PATCH= w3m-${V_AITO}-m17n-${V_M17N}.patch.gz:1
|
2001-07-31 11:27:08 -04:00
|
|
|
PATCH_DIST_STRIP= -p1
|
2001-10-24 08:23:32 -04:00
|
|
|
SUPDISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${INU_DISTFILE} \
|
|
|
|
${IMG_PATCH} ${M17N_PATCH}
|
2001-03-30 12:19:08 -05:00
|
|
|
|
2001-07-31 11:27:08 -04:00
|
|
|
FLAVORS= kanji image m17n
|
2001-03-30 12:19:08 -05:00
|
|
|
FLAVOR?=
|
2001-03-24 07:56:14 -05:00
|
|
|
|
2001-07-31 11:27:08 -04:00
|
|
|
PATCH_LIST= patch-*
|
|
|
|
|
2000-08-24 22:24:10 -04:00
|
|
|
CONFIGURE_STYLE= simple
|
2001-03-24 07:56:14 -05:00
|
|
|
CONFIGURE_ARGS= -nonstop -prefix="${PREFIX}" -cflags="${CFLAGS}" \
|
2000-08-24 22:24:10 -04:00
|
|
|
-model=monster
|
2001-09-22 10:27:48 -04:00
|
|
|
CONFIGURE_ENV= use_nntp=y use_ssl_verify=y \
|
|
|
|
dmail=mail ded=vi dbrowser=lynx dcc="${CC}" \
|
2000-08-24 22:24:10 -04:00
|
|
|
dtermlib="${TERMLIB}" def_helpdir="${PREFIX}/share/w3m" \
|
|
|
|
def_libdir="${PREFIX}/libexec/w3m"
|
|
|
|
|
2001-10-25 12:14:51 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2001-03-24 07:56:14 -05:00
|
|
|
DOCS= FAQ.html HISTORY MANUAL.html \
|
|
|
|
README README.dict README.func STORY.html \
|
|
|
|
keymap.default keymap.lynx menu.default menu.submenu
|
|
|
|
|
2001-07-31 11:27:08 -04:00
|
|
|
.if ${FLAVOR:L:Mimage} && ${FLAVOR:L:Mm17n}
|
|
|
|
ERRORS+= "Fatal: Flavors 'image' and 'm17n' are mutually exclusive."
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mimage}
|
|
|
|
|
2001-10-24 08:23:32 -04:00
|
|
|
DISTNAME= ${INU_DISTNAME}
|
|
|
|
PKGNAME= w3m-${V_AITO}.inu.${V_INU}.${V_IMG}
|
|
|
|
DISTFILES= ${INU_DISTFILE}
|
2001-07-31 11:27:08 -04:00
|
|
|
PATCHFILES= ${IMG_PATCH}
|
|
|
|
HOMEPAGE= http://www2u.biglobe.ne.jp/~hsaka/w3m/
|
|
|
|
DOCS+= README.img
|
|
|
|
LIB_DEPENDS+= Imlib.19::graphics/imlib
|
|
|
|
|
|
|
|
.elif ${FLAVOR:L:Mm17n}
|
|
|
|
|
2001-10-24 08:23:32 -04:00
|
|
|
DISTNAME= ${AITO_DISTNAME}
|
2001-09-29 07:41:03 -04:00
|
|
|
PKGNAME= ${DISTNAME}.${V_M17N}p1
|
2001-07-31 11:27:08 -04:00
|
|
|
PATCHFILES= ${M17N_PATCH}
|
|
|
|
HOMEPAGE= http://www2u.biglobe.ne.jp/~hsaka/w3m/
|
|
|
|
CONFIGURE_ARGS+= -suffix="" -charset=UTF-8
|
|
|
|
DOCS+= README.m17n
|
2001-09-29 07:41:03 -04:00
|
|
|
PATCH_LIST+= m17n-*
|
2001-07-31 11:27:08 -04:00
|
|
|
|
2001-06-21 21:15:40 -04:00
|
|
|
.else
|
2001-07-31 11:27:08 -04:00
|
|
|
|
2001-10-24 08:23:32 -04:00
|
|
|
DISTNAME= ${INU_DISTNAME}
|
|
|
|
PKGNAME= w3m-${V_AITO}.inu.${V_INU}
|
|
|
|
DISTFILES= ${INU_DISTFILE}
|
2001-07-31 11:27:08 -04:00
|
|
|
|
2001-03-30 12:19:08 -05:00
|
|
|
.endif
|
|
|
|
|
2000-07-14 13:50:13 -04:00
|
|
|
.if ${FLAVOR:L:Mkanji}
|
2001-03-24 07:56:14 -05:00
|
|
|
|
2001-07-31 11:27:08 -04:00
|
|
|
. if ${FLAVOR:L:Mimage}
|
|
|
|
FULLPKGNAME= ja-${PKGNAME}-img
|
|
|
|
. elif ${FLAVOR:L:Mm17n}
|
|
|
|
FULLPKGNAME= ja-${PKGNAME}-m17n
|
|
|
|
. else
|
|
|
|
FULLPKGNAME= ja-${PKGNAME}
|
|
|
|
. endif
|
|
|
|
CATEGORIES+= japanese
|
|
|
|
CONFIGURE_ARGS+= -lang=ja -code=n
|
|
|
|
DOCS+= README.SSL README.cookie README.keymap \
|
|
|
|
README.mailcap README.menu
|
|
|
|
DOCSRC= ${WRKSRC}/doc-jp
|
2001-03-24 07:56:14 -05:00
|
|
|
|
2000-07-14 13:50:13 -04:00
|
|
|
.else
|
|
|
|
|
2001-07-31 11:27:08 -04:00
|
|
|
CONFIGURE_ARGS+= -lang=en
|
|
|
|
DOCSRC= ${WRKSRC}/doc
|
2001-03-24 07:56:14 -05:00
|
|
|
|
|
|
|
.endif
|
2000-07-09 20:17:55 -04:00
|
|
|
|
|
|
|
post-install:
|
2000-02-15 13:59:02 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/w3m
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/w3m.1 ${PREFIX}/man/man1
|
2001-03-30 12:19:08 -05:00
|
|
|
cd ${DOCSRC} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/w3m
|
1999-10-26 10:20:07 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|