aboutsummaryrefslogtreecommitdiffstats
path: root/shells/heirloom-sh/Makefile
blob: 8655c11ef170320dfdf47e0dea793eda0ffef9a2 (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
41
42
43
# Ports collection makefile for:    heirloom-sh
# Date created:             2008-03-28
# Whom:                 Danijel Tasov <danielt@pilgerer.org>
#
# $FreeBSD$
#

PORTNAME=   heirloom-sh
PORTVERSION=    050706
CATEGORIES= shells
MASTER_SITES=   SF/heirloom

MAINTAINER= danielt@pilgerer.org
COMMENT=    Portable version of OpenSolaris' Bourne Shell

USE_BZIP2=  yes
MAN1=       jsh.1
PLIST_FILES=    bin/jsh
PORTDOCS=   CALDERA.LICENSE OPENSOLARIS.LICENSE CHANGES README

PKGINSTALL= pkg-install
PKGDEINSTALL=   pkg-deinstall

do-build:
    cd ${WRKSRC} && make

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/jsh ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/sh.1.out ${MANPREFIX}/man/man1/jsh.1

pre-install:
    @${SETENV} PKG_PREFIX="${PREFIX}" PKG_DESTDIR="${DESTDIR}" \
        ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
    @${SETENV} PKG_PREFIX="${PREFIX}" PKG_DESTDIR="${DESTDIR}" \
        ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>