1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/editors/sted/Makefile

40 lines
880 B
Makefile
Raw Normal View History

# ex:ts=8
# New ports collection makefile for: sted
# Date created: 19 May 1998
# Whom: Andrey Zakhvatov
#
1999-08-25 05:57:29 +00:00
# $FreeBSD$
#
2000-04-14 00:25:54 +00:00
PORTNAME= sted
PORTVERSION= 0.2.2
CATEGORIES= editors
MASTER_SITES= http://freebsd.t-hosting.hu/sted/
MAINTAINER= gabor@FreeBSD.org
2003-02-20 17:12:51 +00:00
COMMENT= Simple/Small/Stupid Text Editor
WRKSRC= ${WRKDIR}/sted
MAN1= sted.1
PORTDOCS= CHANGES COPYING README
PLIST_FILES= bin/sted
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 ${TARGETDIR}/bin
@ ${INSTALL_MAN} ${WRKSRC}/sted.1 ${TARGETDIR}/man/man1
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
@ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>