summaryrefslogtreecommitdiff
path: root/editors/joe/Makefile
blob: 1b5a457feaec5684982e796a9a8c94b38e0982f9 (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
# Created by: torstenb@FreeBSD.org

PORTNAME=	joe
PORTVERSION=	4.6
PORTEPOCH=	1
CATEGORIES?=	editors
MASTER_SITES=	SF/joe-editor/JOE%20sources/joe-${PORTVERSION}

MAINTAINER=	juergen.gotteswinter@googlemail.com
COMMENT=	Joe's Own Editor

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

CONFLICTS=	joe-2.*

USES=		gmake iconv localbase ncurses
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	SPELL=aspell
LIBS+=		${ICONV_LIB}

ALL_TARGET=	${PORTNAME}

OPTIONS_DEFINE=	ASPELL DOCS

ASPELL_RUN_DEPENDS=	aspell:textproc/aspell

post-patch:
	${REINPLACE_CMD} -e 's|docs/README.old docs/man.md ||' ${WRKSRC}/Makefile.in

post-install:
.for rc in ftyperc jmacsrc joerc jpicorc jstarrc rjoerc
	${MV} ${STAGEDIR}${ETCDIR}/${rc} ${STAGEDIR}${ETCDIR}/${rc}.sample
.endfor

.include <bsd.port.mk>