mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
355b183ab6
while here, use MAKE_ARGS instead of sed'ing Makefile
33 lines
752 B
Makefile
33 lines
752 B
Makefile
# Created by: Andrey Zakhvatov
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= sted
|
|
PORTVERSION= 0.2.2
|
|
CATEGORIES= editors
|
|
MASTER_SITES= LOCAL/gabor
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Simple/Small/Stupid Text Editor
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USES= ncurses
|
|
WRKSRC= ${WRKDIR}/sted
|
|
MAKE_ARGS= CC="${CC}" C_OPTS="${CFLAGS}" L_OPTS="${LDFLAGS} -lncurses"
|
|
|
|
PORTDOCS= CHANGES README
|
|
PLIST_FILES= bin/sted man/man1/sted.1.gz
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} "s|<curses.h>|<ncurses.h>|" ${WRKSRC}/sted.c
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sted ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/sted.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for file in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|