# $NetBSD: Makefile,v 1.2 1999/04/15 17:43:38 tsarna Exp $
#

DISTNAME=	lout-3.13
CATEGORIES=	textproc
MASTER_SITES=	ftp://ftp.cs.usyd.edu.au/jeff/lout/

MAINTAINER=	tsarna@netbsd.org
HOMEPAGE=	http://snark.niif.spb.su/~uwe/lout/lout.html

PLIST_SRC=      ${WRKDIR}/.PLIST_SRC
INSTALL_TARGET=	allinstall

do-configure:
	${MV} ${WRKSRC}/makefile ${WRKSRC}/makefile.in
	${SED} -e "s,@PREFIX@,${PREFIX}," <${WRKSRC}/makefile.in >${WRKSRC}/Makefile

post-install:
	${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
	(cd ${PREFIX}; find share/doc/lout -type f -print >>${PLIST_SRC})
	(cd ${PREFIX}; find share/lout -type f -print >>${PLIST_SRC})
	${ECHO} "@unexec ${RM} -rf %D/share/doc/lout" >>${PLIST_SRC}
	(cd ${PREFIX}; find -d share/lout -type d -print | \
	${SED} -e "s/^/@dirrm /" >>${PLIST_SRC})

.include "../../mk/bsd.pkg.mk"