1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/editors/sted/Makefile
2014-02-20 08:13:05 +00:00

35 lines
822 B
Makefile

# Created by: Andrey Zakhvatov
# $FreeBSD$
PORTNAME= sted
PORTVERSION= 0.2.2
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= gabor
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple/Small/Stupid Text Editor
LICENSE= GPLv2
WRKSRC= ${WRKDIR}/sted
PORTDOCS= CHANGES README
PLIST_FILES= bin/sted man/man1/sted.1.gz
post-patch:
@${REINPLACE_CMD} -e "s|CC = gcc|CC ?= gcc|" \
-e "s|C_OPTS = -Wall -O2|C_OPTS = ${CFLAGS}|" \
${WRKSRC}/Makefile
@${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>