1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/shells/mksh/Makefile
2008-10-25 16:21:32 +00:00

50 lines
1.3 KiB
Makefile

# Ports collection makefile for: mksh
# Date created: 2006-06-24
# Whom: Andreas Kohn <andreas@syndrom23.de>
#
# $FreeBSD$
#
PORTNAME= mksh
DISTVERSION= R36
CATEGORIES= shells
MASTER_SITES= http://www.mirbsd.org/MirOS/dist/mir/mksh/ \
http://pub.allbsd.org/MirOS/dist/mir/mksh/
DISTFILES= ${PORTNAME}-${DISTVERSION}.cpio.gz
MAINTAINER= miwi@FreeBSD.org
COMMENT= A MirBSD enhanced shell based on pdksh
WRKSRC= ${WRKDIR}/${PORTNAME}
MAN1= mksh.1
PLIST_FILES= bin/mksh %%PORTEXAMPLES%%%%EXAMPLESDIR%%/dot.mkshrc
PLIST_DIRS= %%PORTEXAMPLES%%%%EXAMPLESDIR%%
.include <bsd.port.pre.mk>
do-extract:
${MKDIR} ${WRKDIR}
cd ${WRKDIR} && \
${GZCAT} ${DISTDIR}/${DISTFILES} | ${CPIO} -id
do-build:
cd ${WRKSRC} && CFLAGS="${CFLAGS}" CC="${CC}" LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}" SHELL=${SH} ${SH} ${WRKSRC}/Build.sh -r
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mksh ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/mksh.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/dot.mkshrc ${EXAMPLESDIR}
.endif
post-install:
@${ECHO_MSG} "updating /etc/shells"
@${CP} /etc/shells /etc/shells.bak
@(${GREP} -v ${PREFIX}/bin/mksh /etc/shells.bak; \
${ECHO_CMD} ${PREFIX}/bin/mksh) > /etc/shells
@${RM} /etc/shells.bak
.include <bsd.port.post.mk>