1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/shells/v7sh/Makefile
2012-07-20 22:16:38 +00:00

66 lines
1.8 KiB
Makefile

# New ports collection makefile for: v7sh
# Date created: 4 June 2004
# Whom: Cyrille.Lefevre@laposte.net
#
# $FreeBSD$
#
PORTNAME= v7sh
PORTVERSION= 1.0
CATEGORIES= shells
MASTER_SITES= ftp://minnie.tuhs.org/UnixArchive/PDP-11/Trees/V7/usr/src/cmd/sh/:s \
http://minnie.tuhs.org/UnixTree/V7/usr/src/cmd/sh/:s \
ftp://minnie.tuhs.org/UnixArchive/PDP-11/Trees/V7/usr/man/man1/:m \
http://minnie.tuhs.org/UnixTree/V7/usr/man/man1/:m
DISTFILES= args.c:s blok.c:s brkincr.h:s builtin.c:s cmd.c:s \
ctype.c:s ctype.h:s defs.h:s error.c:s expand.c:s \
fault.c:s io.c:s mac.h:s macro.c:s main.c:s mode.h:s \
msg.c:s name.c:s name.h:s print.c:s service.c:s \
setbrk.c:s stak.c:s stak.h:s string.c:s sym.h:s \
timeout.h:s word.c:s xec.c:s sh.1:m
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= An implementation of the UNIX 7th Edition shell
EXTRACT_CMD= ${CP}
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS= ${WRKDIR}
NO_WRKSUBDIR= yes
MAN1= ${PORTNAME}.1
MANCOMPRESSED= yes
OPTIONS_DEFINE= SYSIII RENO ULTRIX
OPTIONS_DEFAULT= SYSIII RENO ULTRIX
SYSIII_DESC= System III enhancements
RENO_DESC= 4.3BSD-Reno enhancements
ULTRIX_DESC= Ultrix 3.1 enhancements
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSYSIII}
CFLAGS+= -DSYSIII
.endif
.if ${PORT_OPTIONS:MRENO}
CFLAGS+= -DRENO
.endif
.if ${PORT_OPTIONS:MULTRIX}
CFLAGS+= -DULTRIX
.endif
post-extract:
@${MV} ${WRKSRC}/sh.1 ${WRKSRC}/${PORTNAME}.1
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
@${CP} ${FILESDIR}/test.c ${WRKSRC} # sysIII
@${CP} ${FILESDIR}/pathnames.h ${WRKSRC} # 43reno
post-install:
@${ECHO_MSG} "updating /etc/shells"
@${CP} /etc/shells /etc/shells.bak
@(${GREP} -v ${PREFIX}/bin/${PORTNAME} /etc/shells.bak; \
${ECHO_CMD} ${PREFIX}/bin/${PORTNAME}) > /etc/shells
@${RM} /etc/shells.bak
.include <bsd.port.mk>