# New ports collection makefile for:	epstool
# Date created:		23 October 1999
# Whom:			Yuzo FURUKAWA <hurukawa@kuee.kyoto-u.ac.jp>
#
# $FreeBSD: ports/graphics/epstool/Makefile,v 1.33 2011/03/17 13:48:56 bf Exp $
#

PORTNAME=	epstool
PORTVERSION=	3.08
PORTREVISION=	3
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_TEX_CTAN:S/$/:1/} \
		ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/:2
MASTER_SITE_SUBDIR=	support/ghostscript/ghostgum/:1
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:1,2

MAINTAINER=	bf@FreeBSD.org
COMMENT=	Create or extract preview bitmaps in EPS files

USE_GHOSTSCRIPT_RUN=	yes

USE_GMAKE=	yes
MAKEFILE=	makefile
MAKE_ARGS=	MAKE="${GMAKE}" GSCDEBUG="" CC="${CC}" CCAUX="${CC}" \
		CLINK="${CC} ${LDFLAGS}" LINK="${CC} ${LDFLAGS}" EPSLIB="" \
		GTKCFLAGS="" GTKLIBS="" LIBPNGCFLAGS="" LIBPNGLIBS=""
ALL_TARGET=	${PORTNAME}
MAKE_JOBS_UNSAFE=	yes

MAN1=		epstool.1
PLIST_FILES=	bin/epstool

LICENSE=	GPLv2

.if !defined(NOPORTDOCS)
PORTDOCS=	epstool.htm gsview.css
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/epstool ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/doc/epstool.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/epstool.htm ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/gsview.css ${DOCSDIR}
.endif

.include <bsd.port.mk>
