aboutsummaryrefslogtreecommitdiff
path: root/editors/le/Makefile
blob: 48fcd73d14c01075a2f813309f9aa7e769809899 (plain) (blame)
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
# Created by: Andrey Zakhvatov
# $FreeBSD$

PORTNAME=	le
PORTVERSION=	1.14.9
CATEGORIES=	editors
MASTER_SITES=	ftp://ftp.yar.ru/pub/source/le/%SUBDIR%/ \
		http://mirrors.rit.edu/zi/
MASTER_SITE_SUBDIR=	. old

MAINTAINER=	zi@FreeBSD.org
COMMENT=	Text editor with block and binary operations

LICENSE=	GPLv3

USE_BZIP2=	yes
GNU_CONFIGURE=	yes

MAKE_JOBS_UNSAFE=	yes

MAN1=		le.1
PORTDOCS=	*
PORTDATA=	*
PLIST_FILES=	bin/le

MISC_DATA=	colors-black colors-blue colors-defbg colors-green \
		colors-white keymap-emacs mainmenu mainmenu-ru syntax
SRC_DATA=	le.hlp

NO_STAGE=	yes
.include <bsd.port.pre.mk>

.if ${OSVERSION} < 800000
BROKEN=		does not compile on FreeBSD 7.x
.endif

do-install:
	cd ${WRKSRC}/src && ${INSTALL_PROGRAM} le ${PREFIX}/bin
	cd ${WRKSRC}/doc && ${INSTALL_MAN} le.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTDATA)
	@${MKDIR} ${DATADIR}
.for file in ${MISC_DATA}
	cd ${WRKSRC}/misc && ${INSTALL_DATA} ${file} ${DATADIR}
.endfor
	@(cd ${WRKSRC}/misc && ${COPYTREE_SHARE} syntax.d ${DATADIR})
.for file in ${SRC_DATA}
	cd ${WRKSRC}/src && ${INSTALL_DATA} ${file} ${DATADIR}
.endfor
.endif
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for file in FEATURES HISTORY NEWS README TODO
	cd ${WRKSRC} && ${INSTALL_DATA} ${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>