summaryrefslogtreecommitdiff
path: root/editors/aee/Makefile
blob: 483f22ed22e00b5203f4bf9d00be210dcc72b082 (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
58
# Created by: Kelly Yancey <kbyanc@posi.net>
# $FreeBSD$

PORTNAME=	aee
PORTVERSION=	2.2.15b
PORTREVISION=	2
CATEGORIES=	editors
MASTER_SITES=	http://www.users.uswest.net/~hmahon/sources/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Easy editor with both curses and X11 interfaces

LICENSE=	ART10

OPTIONS_DEFINE=	XAE
XAE_DESC=	Build X11 version 'xae'

MAKE_JOBS_UNSAFE=	yes

MAN1=		aee.1
PLIST_FILES=	bin/aee bin/rae %%DATADIR%%/help.ae
PLIST_DIRS=	%%DATADIR%%

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MXAE}
USE_XORG=	x11
ALL_TARGET=	both
PLIST_FILES+=	bin/xae bin/rxae
DESKTOP_ENTRIES="Xae" "" "" "xae" "" false
.else
ALL_TARGET=	main
.endif

post-patch:
.for i in create.mk.aee create.mk.xae
	@${REINPLACE_CMD} -e \
		's|cc|${CC}|g ; \
		 s|"-s"|""|g ; \
		 s|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/${i}
.endfor
.for i in aee.1 localize.c
	@${REINPLACE_CMD} -e \
		's|/usr/local/lib|${DATADIR}|g' ${WRKSRC}/${i}
.endfor

do-install:
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} aee ${PREFIX}/bin)
	(cd ${PREFIX}/bin && ${LN} aee rae)
	(cd ${WRKSRC} && ${INSTALL_MAN} aee.1 ${MANPREFIX}/man/man1)
	@${MKDIR} ${DATADIR}
	(cd ${WRKSRC} && ${INSTALL_DATA} help.ae ${DATADIR})
.if ${PORT_OPTIONS:MXAE}
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} xae ${PREFIX}/bin)
	(cd ${PREFIX}/bin && ${LN} xae rxae)
.endif

.include <bsd.port.mk>