# ports collection makefile for:	fam
# Date created:				20 February 2001
# Whom:					Jeremy Norris <ishmael27@home.com>
#
# $FreeBSD: ports/devel/fam/Makefile,v 1.12 2003/03/07 06:00:18 ade Exp $
#

PORTNAME=		fam
PORTVERSION=		2.6.9
PORTREVISION=		2
CATEGORIES=		devel
MASTER_SITES=		ftp://oss.sgi.com/projects/fam/download/
PATCH_SITES=		ftp://oss.sgi.com/projects/fam/download/patches/
PATCH_DIST_STRIP=	-p1
PATCHFILES=		freebsd-mntent.patch # freebsd-build.patch

MAINTAINER=		alane@FreeBSD.org
COMMENT=	A file alteration monitor

CFLAGS+=		-Wno-deprecated

USE_AUTOMAKE_VER=15
USE_LIBTOOL=	yes
USE_GMAKE=	yes
INSTALLS_SHLIB=	yes

MAN1=		fam.1m
MAN3=		fam.3x

pre-configure:
	@${RM} -fr ${WRKSRC}/util
	@${MV} ${WRKSRC}/Makefile.am ${WRKSRC}/Makefile.am.orig
	@${SED} -e s/util// -e /SUBDIRS/q \
		<${WRKSRC}/Makefile.am.orig >${WRKSRC}/Makefile.am
	@${RM} -f ${WRKSRC}/Makefile.am.orig
	${RM} -fv ${WRKSRC}/fam/mntent*
	${CP} ${FILESDIR}/mntent* ${WRKSRC}/fam

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
