summaryrefslogtreecommitdiff
path: root/editors/sted/Makefile
blob: 7c94378cacab56fec93b335b2cc548518a9ba033 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# ex:ts=8
# New ports collection makefile for:	sted
# Date created:				19 May 1998
# Whom:					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

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 ${PREFIX}/bin
	@ ${INSTALL_MAN} ${WRKSRC}/sted.1 ${PREFIX}/man/man1
.if !defined(NOPORTDOCS)
	@ ${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
	@ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>