# New ports collection makefile for: epstool # Date created: 23 October 1999 # Whom: Yuzo FURUKAWA # # $FreeBSD$ # PORTNAME= epstool PORTVERSION= 3.0 CATEGORIES= graphics MASTER_SITES= ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/ MAINTAINER= ports@FreeBSD.org COMMENT= Create or extract preview bitmaps in EPS files .if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes GSPORT?= print/ghostscript-afpl .else GSPORT?= print/ghostscript-gnu .endif RUN_DEPENDS= gs:${PORTSDIR}/${GSPORT} USE_GMAKE= yes MAKEFILE= makefile MAKE_ARGS= CC="${CC}" CDEBUG="${CFLAGS}" LINK="${CC}" EPSLIB="" ALL_TARGET= ${PORTNAME} pre-everything:: .if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes @${ECHO_MSG} "" @${ECHO_MSG} " Define WITH_GHOSTSCRIPT_AFPL=yes to use" @${ECHO_MSG} " AFPL Postscript interpreter instead of GNU one" @${ECHO_MSG} "" .endif post-extract: @${RM} -f ${WRKSRC}/epstool do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bin/epstool ${PREFIX}/bin .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/epstool.htm ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/gsview.css ${DOCSDIR} .endif .include