1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

editors/aee: modernize makefile and support ports ncurses

Approved by:	general and ncurses blankets.
This commit is contained in:
John Marino 2016-11-19 21:39:28 +00:00
parent 68df3e705c
commit dd8ea46ffe
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=426539
2 changed files with 22 additions and 29 deletions

View File

@ -13,46 +13,39 @@ COMMENT= Easy editor with both curses and X11 interfaces
LICENSE= ART10
USES= ncurses
OPTIONS_DEFINE= XAE
XAE_DESC= Build X11 version 'xae'
PLIST_FILES= bin/aee bin/rae man/man1/aee.1.gz %%DATADIR%%/help.ae
ALL_TARGET= main
MAKE_JOBS_UNSAFE= yes
PLIST_FILES= bin/aee bin/rae man/man1/aee.1.gz %%DATADIR%%/help.ae
OPTIONS_DEFINE= XAE
.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
XAE_DESC= Build X11 version 'xae'
XAE_USE= XORG=x11
XAE_PLIST_FILES= bin/xae bin/rxae
XAE_ALL_TARGET= xae
XAE_DESKTOP_ENTRIES= "Xae" "" "" "xae" "" false
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
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:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} aee ${STAGEDIR}${PREFIX}/bin)
(cd ${STAGEDIR}${PREFIX}/bin && ${LN} aee rae)
(cd ${WRKSRC} && ${INSTALL_MAN} aee.1 ${STAGEDIR}${MANPREFIX}/man/man1)
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC} && ${INSTALL_DATA} help.ae ${STAGEDIR}${DATADIR})
.if ${PORT_OPTIONS:MXAE}
(cd ${WRKSRC} && ${INSTALL_PROGRAM} xae ${STAGEDIR}${PREFIX}/bin)
${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)
.endif
.include <bsd.port.mk>

View File

@ -5,7 +5,7 @@
# rather than local curses)
-if [ -n "$terminfo_exists" -a -z "$termcap_exists" ]
+if true
+if false
then
echo "Neither terminfo or termcap are on this system! "
if [ -f /usr/include/curses.h ]