aboutsummaryrefslogtreecommitdiffstats
path: root/shells/ch/Makefile
blob: a75a4a6951e7fb03977704ec76964e4e2fcbd483 (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
# New ports collection makefile for:    ch
# Date created:             2 August 2006
# Whom:                 conrads@cox.net
#
# $FreeBSD$
#

PORTNAME=   ch
PORTVERSION=    5.1.0
CATEGORIES= shells
MASTER_SITES=   http://www.softintegration.com/download/software/release/FreeBSD/
DISTNAME=   chstandard-${PORTVERSION}.freebsd5.1

MAINTAINER= alepulver@FreeBSD.org
COMMENT=    An embeddable C/C++ interpreter/shell

# possibly ia64?
ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON=  is an i386 binary
NO_BUILD=   yes

DATADIR=    ${PREFIX}/${PORTNAME}

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 500000
.if ${ARCH} == amd64
LIB32_DEPENDS+= c.4:${PORTSDIR}/misc/compat4x
.else
LIB_DEPENDS+=   c.4:${PORTSDIR}/misc/compat4x
.endif
.endif

do-install:
    ${MKDIR} ${DATADIR}
    ${TAR} zxf ${WRKSRC}/ch.bin -C ${DATADIR}
    ${LN} -s ${DATADIR}/bin/ch ${PREFIX}/bin

post-install:
    @if ${GREP} -q '${PREFIX}/bin/ch' /etc/shells; then ${TRUE}; else \
        ${ECHO_CMD} '${PREFIX}/bin/ch' >> /etc/shells; fi

.include <bsd.port.post.mk>