2006-07-22 10:55:20 +00:00
|
|
|
# Ports collection makefile for: mksh
|
|
|
|
# Date created: 2006-06-24
|
|
|
|
# Whom: Andreas Kohn <andreas@syndrom23.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mksh
|
2008-03-29 23:25:12 +00:00
|
|
|
PORTVERSION= R33b
|
2006-07-22 10:55:20 +00:00
|
|
|
CATEGORIES= shells
|
2007-03-11 22:24:33 +00:00
|
|
|
MASTER_SITES= http://www.mirbsd.org/MirOS/dist/mir/mksh/ \
|
|
|
|
http://pub.allbsd.org/MirOS/dist/mir/mksh/
|
2006-07-22 10:55:20 +00:00
|
|
|
DISTFILES= ${PORTNAME}-${DISTVERSION}.cpio.gz
|
|
|
|
|
2007-03-12 10:07:17 +00:00
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
2006-07-25 11:41:05 +00:00
|
|
|
COMMENT= A MirBSD enhanced shell based on pdksh
|
2006-07-22 10:55:20 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
MAN1= mksh.1
|
2006-09-04 07:02:54 +00:00
|
|
|
PLIST_FILES= bin/mksh share/examples/mksh/dot.mkshrc
|
|
|
|
PLIST_DIRS= share/examples/mksh
|
2006-07-22 10:55:20 +00:00
|
|
|
|
|
|
|
PKGINSTALL= pkg-install
|
|
|
|
PKGDEINSTALL= pkg-deinstall
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
do-extract:
|
|
|
|
${MKDIR} ${WRKDIR}
|
|
|
|
cd ${WRKDIR} && \
|
|
|
|
${GZCAT} ${DISTDIR}/${DISTFILES} | ${CPIO} -id
|
|
|
|
|
|
|
|
do-build:
|
2007-09-09 09:43:20 +00:00
|
|
|
cd ${WRKSRC} && CFLAGS="${CFLAGS}" CC="${CC}" LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}" SHELL=${SH} ${SH} ${WRKSRC}/Build.sh -q -r
|
2006-07-22 10:55:20 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mksh ${PREFIX}/bin
|
2006-09-04 07:02:54 +00:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dot.mkshrc ${EXAMPLESDIR}
|
2006-07-22 10:55:20 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/mksh.1 ${MANPREFIX}/man/man1
|
|
|
|
|
|
|
|
pre-install:
|
2007-09-09 09:43:20 +00:00
|
|
|
@${SETENV} PKG_PREFIX="${PREFIX}" PKG_DESTDIR="${DESTDIR}" \
|
2006-07-22 10:55:20 +00:00
|
|
|
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
|
|
|
|
post-install:
|
2007-09-09 09:43:20 +00:00
|
|
|
@${SETENV} PKG_PREFIX="${PREFIX}" PKG_DESTDIR="${DESTDIR}" \
|
2006-07-22 10:55:20 +00:00
|
|
|
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|