summaryrefslogtreecommitdiff
path: root/editors/ng/Makefile
blob: 7b3ff94517b3769d565743426ea2f94af052ff71 (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
# $NetBSD: Makefile,v 1.23 2012/02/12 14:12:19 wiz Exp $

DISTNAME=	ng-1.4.3
PKGREVISION=	1
CATEGORIES=	editors japanese
MASTER_SITES=	http://tt.sakura.ne.jp/~amura/archives/ng/

MAINTAINER=	fk200329@fsinet.or.jp
HOMEPAGE=	http://tt.sakura.ne.jp/~amura/ng/
COMMENT=	Very light Emacs-clone with japanese support

PKG_DESTDIR_SUPPORT=	user-destdir

WRKSRC=		${WRKDIR}/ng

PKG_SUPPORTED_OPTIONS=	canna
PKG_SUGGESTED_OPTIONS=	canna
PKG_OPTIONS_VAR=	PKG_OPTIONS.ng

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mcanna)
.include "../../inputmethod/canna-lib/buildlink3.mk"
MAKEFLAGS+=	USE_CANNA=YES
.else
MAKEFLAGS+=	USE_CANNA=NO
.endif

BUILD_TARGET=	ng

INSTALLATION_DIRS=	bin

.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
post-patch:
	@(cd ${WRKSRC}; ${LN} -s sys/sysv/Makefile . )
.else
post-patch:
	@(cd ${WRKSRC}; ${LN} -s sys/bsd/Makefile . )
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/ng ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/ng
	${INSTALL_DATA} ${WRKSRC}/docs/Ng.FAQ ${DESTDIR}${PREFIX}/share/doc/ng/Ng.FAQ.euc-jp
	${INSTALL_DATA} ${WRKSRC}/docs/Ng.doc ${DESTDIR}${PREFIX}/share/doc/ng/Ng.doc.euc-jp
	${INSTALL_DATA} ${WRKSRC}/docs/Ng.ref ${DESTDIR}${PREFIX}/share/doc/ng/Ng.ref.euc-jp
	${INSTALL_DATA} ${WRKSRC}/docs/Ng.tut ${DESTDIR}${PREFIX}/share/doc/ng/Ng.tut.euc-jp
	${INSTALL_DATA} ${WRKSRC}/docs/README.Ng ${DESTDIR}${PREFIX}/share/doc/ng/README.Ng.euc-jp
	${INSTALL_DATA} ${WRKSRC}/docs/README.SKG ${DESTDIR}${PREFIX}/share/doc/ng/README.SKG.euc-jp
	${INSTALL_DATA} ${WRKSRC}/docs/CHANGES.new ${DESTDIR}${PREFIX}/share/doc/ng/CHANGES.new.euc-jp
	${INSTALL_DATA} ${WRKSRC}/docs/CHANGES.doc ${DESTDIR}${PREFIX}/share/doc/ng/CHANGES.doc.euc-jp

.include "../../mk/bsd.pkg.mk"