aboutsummaryrefslogtreecommitdiffstats
path: root/editors/aee/Makefile
blob: 29bfe993f306847e50d8e54d4b9e8ba66659a000 (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
# Created by: Kelly Yancey <kbyanc@posi.net>

PORTNAME=   aee
PORTVERSION=    2.2.21
PORTREVISION=   2
CATEGORIES= editors
MASTER_SITES=   https://BSDforge.com/projects/source/editors/aee/

MAINTAINER= portmaster@BSDforge.com
COMMENT=    Easy editor with both curses and X11 interfaces

LICENSE=    ART10

USES=       ncurses
PLIST_FILES=    bin/aee bin/rae man/man1/aee.1.gz ${DATADIR}/help.ae
ALL_TARGET= main

MAKE_JOBS_UNSAFE=   yes

OPTIONS_DEFINE= XAE

XAE_DESC=       Build X11 version 'xae'
XAE_USES=       xorg
XAE_USE=        XORG=x11
XAE_PLIST_FILES=    bin/xae bin/rxae
XAE_ALL_TARGET=     xae
XAE_DESKTOP_ENTRIES=    "Xae" "" "" "xae" "" false

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

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

do-install-XAE-on:
    ${INSTALL_PROGRAM} ${WRKSRC}/xae ${STAGEDIR}${PREFIX}/bin
    (cd ${STAGEDIR}${PREFIX}/bin && ${LN} xae rxae)

.include <bsd.port.mk>