# Ports collection makefile for:	shc
# Date created:				Feb 14, 2001
# Whom:					Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD: branches/RELENG_9_1_0/misc/shc/Makefile 300896 2012-07-14 13:54:48Z beat $
#

PORTNAME=	shc
PORTVERSION=	3.8.9
CATEGORIES=	misc
MASTER_SITES=	http://www.datsi.fi.upm.es/~frosal/sources/ \
		CRITICAL
EXTRACT_SUFX=	.tgz

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	A generic script compiler

MAKE_JOBS_SAFE=	yes

MAN1=		shc.1
PLIST_FILES=	bin/shc

post-extract:
	@${RM} ${WRKSRC}/shc

do-build:
	${CC} ${CFLAGS} -o ${WRKSRC}/shc ${WRKSRC}/${PORTNAME}-${PORTVERSION}.c

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/shc ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/shc.1 ${MAN1PREFIX}/man/man1

.include <bsd.port.mk>
