# New ports collection makefile for:	epsonepl
# Date created:		14 February 2003
# Whom:			Simon 'corecode' Schubert <corecode@corecode.ath.cx>
#
# $FreeBSD: ports/print/epsonepl/Makefile,v 1.1 2003/10/10 04:26:13 edwin Exp $
#

PORTNAME=	epsonepl
PORTVERSION=	0.2.2
CATEGORIES=	print
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
DISTNAME=	${PORTNAME}ijs-${PORTVERSION}
EXTRACT_SUFX=	.tgz

MAINTAINER=	corecode@corecode.ath.cx
COMMENT=	"Printer filter for EPSON EPL-5700L etc"

LIB_DEPENDS=	ijs.1:${PORTSDIR}/print/libijs
RUN_DEPENDS=	gs:${PORTSDIR}/print/ghostscript-gnu

MAKEFILE=	${FILESDIR}/Makefile

post-extract:
	@cd ${WRKSRC} && ${LS} ijs* | ${GREP} -v ${PORTNAME} | ${XARGS} ${RM}

post-install:
	@${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.conf.sample ${PREFIX}/etc
	@${MKDIR} ${DATADIR}
	@${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.apsfilter ${DATADIR}
	@${SED} -e 's#%%PREFIX%%#${PREFIX}#' ${PKGMESSAGE}

.include <bsd.port.mk>
