summaryrefslogtreecommitdiffstats
path: root/editors/joe-devel/Makefile
blob: 3053ff57194276feabf0c26dcd14211fdf7840d4 (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
# New ports collection makefile for:	joe-devel
# Date created:		25 Jul 2001
# Whom:			dwcjr@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=	joe-devel
PORTVERSION=	2.9.7p1
CATEGORIES=	editors
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	joe-editor
DISTNAME=	joe-${PORTVERSION:S/p/-pre/}
EXTRACT_SUFX=	.tgz

MAINTAINER=	petef@FreeBSD.org

MAN1=		joe.1

GNU_CONFIGURE=	yes
USE_GMAKE=	yes

ALL_TARGET=	joe

post-patch:
	@${PERL} -pi -e 's!CFLAGS = -O2!CFLAGS +=!' ${WRKSRC}/Makefile.in
	@${PERL} -pi -e 's!fprintf.*long time.*!!' ${WRKSRC}/conf.c
	@${PERL} -pi -e 's!2.9.6-pre1!2.9.7-pre0!' ${WRKSRC}/main.c

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${PREFIX}/share/doc/joe
	${INSTALL_DATA} ${WRKSRC}/INFO ${WRKSRC}/README ${PREFIX}/share/doc/joe
	${INSTALL_DATA} ${WRKSRC}/LIST ${PREFIX}/share/doc/joe/CommandList
.endif
.for file in jmacsrc jpicorc jstarrc rjoerc joerc
.if !exists(${PREFIX}/etc/${file})
	@${CP} ${PREFIX}/etc/${file}.dist ${PREFIX}/etc/${file}
.endif
.endfor

.include <bsd.port.mk>
OpenPOWER on IntegriCloud