blob: 9e1e7e2a0791d901e497115740a6e95cfca9d71e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# $NetBSD: Makefile,v 1.7 2000/04/30 15:01:45 sakamoto Exp $
# FreeBSD Id: Makefile,v 1.11 1999/04/17 10:51:03 itojun Exp
DISTNAME= nvi-1.79
PKGNAME= nvi-m17n-1.79.19991117
CATEGORIES= editors
MASTER_SITES= ftp://sleepy.vwh.net/pub/ \
ftp://ftp.foretune.co.jp/pub/tools/nvi-m17n/
PATCH_SITES= ftp://ftp.foretune.co.jp/pub/tools/nvi-m17n/
PATCHFILES= nvi-1.79.m17n-19991117.diff.gz
MAINTAINER= itojun@itojun.org
CONFLICTS= vigor-*
WRKSRC= ${WRKDIR}/${DISTNAME}/build
GNU_CONFIGURE= YES
PATCH_DIST_ARGS=-d ${WRKSRC}/.. --forward --quiet -E -p1 -f
CONFIGURE_ENV= OPTFLAG='-D_PATH_SYSEXRC=\"${PREFIX}/etc/vi.exrc\"'
CONFIGURE_ARGS+=--enable-multibyte --program-prefix=n
.include "../../mk/bsd.prefs.mk"
PATCH_FUZZ_FACTOR= -F1
.if !defined(USE_CANNA) || ${USE_CANNA} == YES
DEPENDS+= Canna-lib-3.5b2:../../japanese/canna-lib
CONFIGURE_ARGS+=--enable-canna=${LOCALBASE}
CANNA_OPT= canna cannactrl cannakey=
.endif
PLIST_TMP= ${WRKDIR}/PLIST
PLIST_SRC+= ${PKGDIR}/PLIST ${PLIST_TMP}
REQ_TMP= ${PKGDIR}/REQ
REQ_FILE= ${WRKDIR}/REQ
AUTODETECT.euc-jp=jp
AUTODETECT.sjis=jp
AUTODETECT.iso-2022-jp=jp
AUTODETECT.euc-cn=cn
AUTODETECT.big5=cn
AUTODETECT.hz=cn
AUTODETECT.iso-2022-cn=cn
AUTODETECT.euc-tw=tw
AUTODETECT.euc-kr=kr
AUTODETECT.iso-2022-kr=kr
ENCODING+= iso-2022-cn iso-2022-jp iso-2022-kr
ENCODING+= euc-jp euc-cn euc-kr sjis big5 euc-tw hz
post-build:
.for encoding in ${ENCODING}
@${SED} -e 's|$${CANNA_OPT}|${CANNA_OPT}|' \
-e 's|$${AUTODETECT}|${AUTODETECT.${encoding}}|' \
-e 's|$${ENCODING}|${encoding}|g' \
-e 's|$${PREFIX}|${PREFIX}|' \
${FILESDIR}/nvi-m17n > ${WRKDIR}/nvi-${encoding}
@${ECHO} "bin/nvi-${encoding}" >> ${PLIST_TMP}
.endfor
@${SED} -e 's|$${PREFIX}|${PREFIX}|' ${REQ_TMP} > ${REQ_FILE}
post-install:
.for encoding in ${ENCODING}
@${INSTALL_SCRIPT} ${WRKDIR}/nvi-${encoding} ${PREFIX}/bin
.endfor
@${CP} ${WRKSRC}/../docs.m17n/README.english \
${PREFIX}/share/vi/
@${CP} ${WRKSRC}/../docs.m17n/README.japanese \
${PREFIX}/share/vi/
.include "../../mk/bsd.pkg.mk"
|