Support staging

This commit is contained in:
Emanuel Haupt 2014-02-20 08:13:05 +00:00
parent 863f1c2e18
commit a3af4f48e1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345180

View file

@ -10,13 +10,13 @@ MASTER_SITE_SUBDIR= gabor
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= Simple/Small/Stupid Text Editor COMMENT= Simple/Small/Stupid Text Editor
LICENSE= GPLv2
WRKSRC= ${WRKDIR}/sted WRKSRC= ${WRKDIR}/sted
MAN1= sted.1 PORTDOCS= CHANGES README
PORTDOCS= CHANGES COPYING README PLIST_FILES= bin/sted man/man1/sted.1.gz
PLIST_FILES= bin/sted
NO_STAGE= yes
post-patch: post-patch:
@${REINPLACE_CMD} -e "s|CC = gcc|CC ?= gcc|" \ @${REINPLACE_CMD} -e "s|CC = gcc|CC ?= gcc|" \
-e "s|C_OPTS = -Wall -O2|C_OPTS = ${CFLAGS}|" \ -e "s|C_OPTS = -Wall -O2|C_OPTS = ${CFLAGS}|" \
@ -24,13 +24,11 @@ post-patch:
@${REINPLACE_CMD} "s|<curses.h>|<ncurses.h>|" ${WRKSRC}/sted.c @${REINPLACE_CMD} "s|<curses.h>|<ncurses.h>|" ${WRKSRC}/sted.c
do-install: do-install:
@ ${INSTALL_PROGRAM} ${WRKSRC}/sted ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/sted ${STAGEDIR}${PREFIX}/bin
@ ${INSTALL_MAN} ${WRKSRC}/sted.1 ${PREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/sted.1 ${STAGEDIR}${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS) ${MKDIR} ${STAGEDIR}${DOCSDIR}
@ ${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS} .for file in ${PORTDOCS}
@ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor .endfor
.endif
.include <bsd.port.mk> .include <bsd.port.mk>