1999-11-26 20:25:32 +00:00
|
|
|
# New ports collection makefile for: epstool
|
|
|
|
# Date created: 23 October 1999
|
|
|
|
# Whom: Yuzo FURUKAWA <hurukawa@kuee.kyoto-u.ac.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-13 06:28:28 +00:00
|
|
|
PORTNAME= epstool
|
2004-01-18 18:04:41 +00:00
|
|
|
PORTVERSION= 3.04
|
1999-11-26 20:25:32 +00:00
|
|
|
CATEGORIES= graphics
|
2001-06-12 16:04:20 +00:00
|
|
|
MASTER_SITES= ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/
|
1999-11-26 20:25:32 +00:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:08:19 +00:00
|
|
|
COMMENT= Create or extract preview bitmaps in EPS files
|
1999-11-26 20:25:32 +00:00
|
|
|
|
2003-08-31 00:33:20 +00:00
|
|
|
.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes
|
|
|
|
GSPORT?= print/ghostscript-afpl
|
|
|
|
.else
|
|
|
|
GSPORT?= print/ghostscript-gnu
|
|
|
|
.endif
|
|
|
|
|
|
|
|
RUN_DEPENDS= gs:${PORTSDIR}/${GSPORT}
|
1999-11-26 20:25:32 +00:00
|
|
|
|
2003-10-19 18:22:43 +00:00
|
|
|
USE_REINPLACE= yes
|
2003-04-23 23:54:46 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
MAKEFILE= makefile
|
2003-10-19 18:22:43 +00:00
|
|
|
MAKE_ARGS= MAKE="${GMAKE}" CC="${CC}" CCAUX="${CC}" CDEBUG="${CFLAGS}" \
|
|
|
|
CLINK="${CC} ${LDFLAGS}" LINK="${CC} ${LDFLAGS}" EPSLIB=""
|
2003-04-23 23:54:46 +00:00
|
|
|
ALL_TARGET= ${PORTNAME}
|
1999-11-26 20:25:32 +00:00
|
|
|
|
2003-10-19 18:22:43 +00:00
|
|
|
MAN1= epstool.1
|
|
|
|
|
2003-09-27 00:45:43 +00:00
|
|
|
pre-everything::
|
2003-08-31 00:33:20 +00:00
|
|
|
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
|
2003-09-27 00:45:43 +00:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} " Define WITH_GHOSTSCRIPT_AFPL=yes to use"
|
|
|
|
@${ECHO_MSG} " AFPL Postscript interpreter instead of GNU one"
|
|
|
|
@${ECHO_MSG} ""
|
2003-08-31 00:33:20 +00:00
|
|
|
.endif
|
|
|
|
|
2003-10-19 18:22:43 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|make -f|$$(MAKE) -f|g' ${WRKSRC}/src/unix.mak
|
|
|
|
|
2003-04-23 23:54:46 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/epstool ${PREFIX}/bin
|
2003-10-19 18:22:43 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/epstool.1 ${MANPREFIX}/man/man1
|
2000-02-29 02:03:02 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-12-08 03:38:17 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2003-04-23 23:54:46 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/epstool.htm ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/gsview.css ${DOCSDIR}
|
2000-02-29 02:03:02 +00:00
|
|
|
.endif
|
1999-11-26 20:25:32 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|