1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/graphics/epstool/Makefile

54 lines
1.4 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: epstool
# Date created: 23 October 1999
# Whom: Yuzo FURUKAWA <hurukawa@kuee.kyoto-u.ac.jp>
#
# $FreeBSD$
#
PORTNAME= epstool
PORTVERSION= 3.04
CATEGORIES= graphics
MASTER_SITES= ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/
MAINTAINER= ports@FreeBSD.org
2003-02-20 18:08:19 +00:00
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_REINPLACE= yes
USE_GMAKE= yes
MAKEFILE= makefile
MAKE_ARGS= MAKE="${GMAKE}" CC="${CC}" CCAUX="${CC}" CDEBUG="${CFLAGS}" \
CLINK="${CC} ${LDFLAGS}" LINK="${CC} ${LDFLAGS}" EPSLIB=""
ALL_TARGET= ${PORTNAME}
MAN1= epstool.1
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-patch:
@${REINPLACE_CMD} -e 's|make -f|$$(MAKE) -f|g' ${WRKSRC}/src/unix.mak
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>