# New ports collection makefile for:    stuffit
# Date created:		12 Dec 2001
# Whom:			Nathan Ahlstrom <nra@FreeBSD.org>
#
# $FreeBSD: ports/archivers/stuffit/Makefile,v 1.1 2001/12/13 03:29:43 ijliao Exp $
#

PORTNAME=	stuffit
PORTVERSION=	5.2.0.611
CATEGORIES=	archivers linux
MASTER_SITES=	ftp://ftp.aladdinsys.com/pub/linux/StuffIt_for_Linux/ \
		ftp://ftp2.aladdinsys.com/pub/linux/StuffIt_for_Linux/
DISTNAME=	stuffit520.611linux-i386
EXTRACT_SUFX=	.tgz

MAINTAINER=	ports@FreeBSD.org

RUN_DEPENDS=	\
	${LINUXBASE}/lib/libc-2.2.2.so:${PORTSDIR}/emulators/linux_base-7

#USE_LINUX=	yes

NO_BUILD=	yes
ONLY_FOR_ARCHS=	i386
NO_CDROM=	Shareware -- should not redistribute
NO_PACKAGE=	Only unmodified original package can be distributed
STRIP=		# empty: do not strip linux binary during INSTALL_PROGRAM
WRKSRC=		${WRKDIR}

STUFFIT_FILES=	bin/unstuff bin/stuff
STUFFIT_MAN=    man/man1/stuff.1 man/man1/unstuff.1

post-fetch:
	@${CHMOD} a+x ${DISTDIR}/${DISTFILES}

do-install:
.for sFile in ${STUFFIT_FILES}
	${INSTALL_PROGRAM} ${WRKSRC}/${sFile} ${PREFIX}/bin
	brandelf -t Linux ${PREFIX}/${sFile}
.endfor
.for mFile in ${STUFFIT_MAN}
	${INSTALL_MAN} ${WRKSRC}/${mFile} ${PREFIX}/man/man1
.endfor

.include <bsd.port.mk>
