Lines 3-47
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= aee |
4 |
PORTNAME= aee |
5 |
PORTVERSION= 2.2.15b |
5 |
PORTVERSION= 2.2.15b |
6 |
PORTREVISION= 1 |
6 |
PORTREVISION= 2 |
7 |
CATEGORIES= editors |
7 |
CATEGORIES= editors |
8 |
MASTER_SITES= http://mahon.cwx.net/sources/ |
8 |
MASTER_SITES= http://www.users.uswest.net/~hmahon/sources/ |
9 |
|
9 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
10 |
MAINTAINER= ports@FreeBSD.org |
11 |
COMMENT= Easy editor with both curses and X11 interfaces |
11 |
COMMENT= Easy editor with both curses and X11 interfaces |
12 |
|
12 |
|
|
|
13 |
LICENSE= ART10 |
14 |
|
13 |
OPTIONS_DEFINE= XAE |
15 |
OPTIONS_DEFINE= XAE |
14 |
XAE_DESC= Build X11 version 'xae' |
16 |
XAE_DESC= Build X11 version 'xae' |
15 |
|
17 |
|
|
|
18 |
MAKE_JOBS_UNSAFE= yes |
19 |
|
20 |
MAN1= aee.1 |
21 |
PLIST_FILES= bin/aee bin/rae %%DATADIR%%/help.ae |
22 |
PLIST_DIRS= %%DATADIR%% |
23 |
|
16 |
.include <bsd.port.options.mk> |
24 |
.include <bsd.port.options.mk> |
17 |
|
25 |
|
18 |
.if !${PORT_OPTIONS:MXAE} |
26 |
.if ${PORT_OPTIONS:MXAE} |
19 |
ALL_TARGET= main |
|
|
20 |
PLIST_SUB= XAE="@comment " |
21 |
.else |
22 |
USE_XORG= x11 |
27 |
USE_XORG= x11 |
23 |
ALL_TARGET= both |
28 |
ALL_TARGET= both |
24 |
PLIST_SUB= XAE="" |
29 |
PLIST_FILES+= bin/xae bin/rxae |
|
|
30 |
DESKTOP_ENTRIES="Xae" "" "" "xae" "" false |
31 |
.else |
32 |
ALL_TARGET= main |
25 |
.endif |
33 |
.endif |
26 |
|
34 |
|
27 |
PLIST_FILES= bin/aee bin/rae lib/help.ae %%XAE%%bin/xae %%XAE%%bin/rxae |
|
|
28 |
|
29 |
MAN1= aee.1 |
30 |
|
31 |
post-patch: |
35 |
post-patch: |
32 |
@${REINPLACE_CMD} -e 's|cc|${CC}|g' ${WRKSRC}/create.mk.aee |
36 |
.for i in create.mk.aee create.mk.xae |
33 |
@${REINPLACE_CMD} -e 's|cc|${CC}|g' ${WRKSRC}/create.mk.xae |
37 |
@${REINPLACE_CMD} -e \ |
34 |
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \ |
38 |
's|cc|${CC}|g ; \ |
35 |
${WRKSRC}/create.mk.xae |
39 |
s|"-s"|""|g ; \ |
|
|
40 |
s|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/${i} |
41 |
.endfor |
42 |
.for i in aee.1 localize.c |
43 |
@${REINPLACE_CMD} -e \ |
44 |
's|/usr/local/lib|${DATADIR}|g' ${WRKSRC}/${i} |
45 |
.endfor |
36 |
|
46 |
|
37 |
do-install: |
47 |
do-install: |
38 |
${INSTALL_PROGRAM} ${WRKSRC}/aee ${PREFIX}/bin |
48 |
(cd ${WRKSRC} && ${INSTALL_PROGRAM} aee ${PREFIX}/bin) |
39 |
${LN} ${PREFIX}/bin/aee ${PREFIX}/bin/rae |
49 |
(cd ${PREFIX}/bin && ${LN} aee rae) |
40 |
${INSTALL_MAN} ${WRKSRC}/aee.1 ${PREFIX}/man/man1 |
50 |
(cd ${WRKSRC} && ${INSTALL_MAN} aee.1 ${MANPREFIX}/man/man1) |
41 |
${INSTALL_DATA} ${WRKSRC}/help.ae ${PREFIX}/lib |
51 |
@${MKDIR} ${DATADIR} |
|
|
52 |
(cd ${WRKSRC} && ${INSTALL_DATA} help.ae ${DATADIR}) |
42 |
.if ${PORT_OPTIONS:MXAE} |
53 |
.if ${PORT_OPTIONS:MXAE} |
43 |
${INSTALL_PROGRAM} ${WRKSRC}/xae ${PREFIX}/bin |
54 |
(cd ${WRKSRC} && ${INSTALL_PROGRAM} xae ${PREFIX}/bin) |
44 |
${LN} ${PREFIX}/bin/xae ${PREFIX}/bin/rxae |
55 |
(cd ${PREFIX}/bin && ${LN} xae rxae) |
45 |
.endif |
56 |
.endif |
46 |
|
57 |
|
47 |
.include <bsd.port.mk> |
58 |
.include <bsd.port.mk> |