Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Nov 2005 23:27:54 +0100 (CET)
From:      Jann Roeder <jann_roeder@arcor.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/89092: [Update port] /print/cups-pstoraster
Message-ID:  <200511152227.jAFMRsac095946@endurance.local>
Resent-Message-ID: <200511152230.jAFMUGig019041@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         89092
>Category:       ports
>Synopsis:       [Update port] /print/cups-pstoraster
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 15 22:30:15 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Jann Roeder
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
>Environment:
>Description:
	Only made it get the new source. Seems to work fine.
>How-To-Repeat:
	
>Fix:

	

--- pstoraster.txt begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	Makefile
#	distinfo
#	files
#	files/cups.contrib.mak
#	files/patch-pstopxl.in
#	files/patch-pstoraster.in
#	pkg-descr
#
echo x - Makefile
sed 's/^X//' >Makefile << 'END-of-Makefile'
X# New ports collection makefile for:	cups-pstoraster
X# Date created:		Jul 13 2002
X# Whom:			ports@FreeBSD.org
X#
X# $FreeBSD: ports/print/cups-pstoraster/Makefile,v 1.21 2005/06/29 09:27:04 barner Exp $
X#
X
XPORTNAME=	cups-pstoraster
XPORTVERSION=	8.15.1
XCATEGORIES=	print
XMASTER_SITES=	\
X	ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/%SUBDIR%/ \
X	ftp://ftp2.easysw.com/pub/%SUBDIR%/ \
X	ftp://ftp3.easysw.com/pub/%SUBDIR%/ \
X	http://ftp.easysw.com/pub/%SUBDIR%/ \
X	http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/%SUBDIR%/
XMASTER_SITE_SUBDIR=	ghostscript/$(PORTVERSION)
XDIST_SUBDIR=	ghostscript
X
XMAINTAINER=	ports@FreeBSD.org
XCOMMENT=	Postscript interpreter for CUPS printing to non-PS printers
X
XPATCH_DEPENDS=	${NONEXISTENT}:${PORTSDIR}/${GHOSTSCRIPT_PORT}:patch
XLIB_DEPENDS=	cups.2:${PORTSDIR}/print/cups-base
X
XESPGS_VER=	${PORTVERSION}
X
XDISTNAME=	espgs-${ESPGS_VER}-source
XEXTRACT_AFTER_ARGS=	| ${TAR} -xf - espgs-${ESPGS_VER}/pstoraster
XESPGS_WRKSRC=	${WRKDIR}/espgs-${ESPGS_VER}/pstoraster
XWRKSRC=		${WRKDIRPREFIX}$$(${REALPATH} ${PORTSDIR})/${GHOSTSCRIPT_PORT}/work/ghostscript
XPATCH_WRKSRC=	${ESPGS_WRKSRC}
X
XUSE_BZIP2=	yes
XUSE_GHOSTSCRIPT_RUN=	yes
XUSE_REINPLACE=	yes
XUSE_GMAKE=	yes
XGNU_CONFIGURE=	yes
XCONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
XCONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
X		LDFLAGS="-L${LOCALBASE}/lib"
XCONFIGURE_ARGS=	--without-x --without-ijs --without-gimp-print \
X		--with-gs=espgs
XMAKE_ARGS=	CFLAGS_STANDARD="${CFLAGS} -DUPD_SIGNAL=0" \
X		DEVICE_DEVS="\$$(DD)cups.dev \$$(DD)pxlcolor.dev \$$(DD)pxlmono.dev"
X
XPLIST_FILES=	bin/espgs etc/cups/pstoraster.convs \
X		libexec/cups/filter/pstopxl libexec/cups/filter/pstoraster \
X		share/cups/model/pxlcolor.ppd share/cups/model/pxlmono.ppd
X
Xpost-patch:
X	${LN} -sf ${ESPGS_WRKSRC}/gdevcups.c ${WRKSRC}/src
X	${CAT} ${FILESDIR}/cups.contrib.mak >> ${WRKSRC}/src/contrib.mak
X.for file in pstopxl pstoraster
X	${SED} -e 's:@prefix@:${PREFIX}:g ; \
X		 s:@exec_prefix@:${PREFIX}:g ; \
X		 s:@bindir@:${PREFIX}/bin:g ; \
X		 s:@GS@:espgs:g' \
X		${ESPGS_WRKSRC}/${file}.in > ${ESPGS_WRKSRC}/${file}
X.endfor
X	${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS=@CPPFLAGS@ |g ; \
X		 s|^LDFLAGS=|LDFLAGS=@LDFLAGS@ |g ; \
X		 s|^DEVICE_DEVS|#DEVICE_DEVS|g' ${WRKSRC}/Makefile.in
X
Xpre-build:
X	${MKDIR} ${WRKSRC}/bin
X	${MKDIR} ${WRKSRC}/obj
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/bin/espgs ${PREFIX}/bin
X	${INSTALL_DATA} ${ESPGS_WRKSRC}/pstoraster.convs ${PREFIX}/etc/cups
X.for file in pstopxl pstoraster
X	${INSTALL_SCRIPT} ${ESPGS_WRKSRC}/${file} ${PREFIX}/libexec/cups/filter
X.endfor
X.for file in pxlcolor.ppd pxlmono.ppd
X	${INSTALL_DATA} ${ESPGS_WRKSRC}/${file} ${PREFIX}/share/cups/model
X.endfor
X
X.include <bsd.port.mk>
END-of-Makefile
echo x - distinfo
sed 's/^X//' >distinfo << 'END-of-distinfo'
XMD5 (ghostscript/espgs-8.15.1-source.tar.bz2) = 2a21136953c3559e6088522753b06b1f
XSHA256 (ghostscript/espgs-8.15.1-source.tar.bz2) = 510e34f7cc9d9b41cff320168b0fcc43329ba41ba58dd35895cd58e33f63fbfa
XSIZE (ghostscript/espgs-8.15.1-source.tar.bz2) = 7758723
END-of-distinfo
echo c - files
mkdir -p files > /dev/null 2>&1
echo x - files/cups.contrib.mak
sed 's/^X//' >files/cups.contrib.mak << 'END-of-files/cups.contrib.mak'
X### ----------------- CUPS Ghostscript Driver ---------------------- ###
X
Xcups_=  $(GLOBJ)gdevcups.$(OBJ)
X
X$(DD)cups.dev:  $(cups_) $(DD)page.dev
X	$(SETPDEV2) $(DD)cups $(cups_)
X	$(ADDMOD) $(DD)cups -lib cupsimage -lib cups
X
X$(GLOBJ)gdevcups.$(OBJ): $(GLSRC)gdevcups.c $(PDEVH)
X	$(GLCC) $(GLO_)gdevcups.$(OBJ) $(C_) $(GLSRC)gdevcups.c
X
END-of-files/cups.contrib.mak
echo x - files/patch-pstopxl.in
sed 's/^X//' >files/patch-pstopxl.in << 'END-of-files/patch-pstopxl.in'
X--- pstopxl.in.orig	Mon Feb 21 18:13:47 2005
X+++ pstopxl.in	Wed Jun  8 09:11:00 2005
X@@ -27,7 +27,7 @@
X bindir=@bindir@
X 
X # Set the library/font path...
X-GS_LIB="${CUPS_FONTPATH:=/usr/share/cups/fonts}"
X+GS_LIB="${CUPS_FONTPATH:=@prefix@/share/cups/fonts}"
X export GS_LIB
X 
X # Determine the PCL XL/PCL 6 driver to use...
X@@ -56,7 +56,7 @@
X 	ifile="$6"
X fi
X 
X-echo INFO: Starting ESP Ghostscript @GS_VERSION_MAJOR@.@GS_VERSION_MINOR0@.@GS_VERSION_PATCH@... 1>&2
X+echo INFO: Starting GNU/GPL Ghostscript... 1>&2
X echo DEBUG: Running $bindir/@GS@ $gsopts -sOUTPUTFILE="%stdout" "$ifile" 1>&2
X 
X # Now run Ghostscript...
END-of-files/patch-pstopxl.in
echo x - files/patch-pstoraster.in
sed 's/^X//' >files/patch-pstoraster.in << 'END-of-files/patch-pstoraster.in'
X--- pstoraster.in.orig	Wed Jun  8 09:11:26 2005
X+++ pstoraster.in	Wed Jun  8 09:13:19 2005
X@@ -27,7 +27,7 @@
X bindir=@bindir@
X 
X # Set the library/font path...
X-GS_LIB="${CUPS_FONTPATH:=/usr/share/cups/fonts}"
X+GS_LIB="${CUPS_FONTPATH:=@prefix@/share/cups/fonts}"
X export GS_LIB
X 
X # Options we use with Ghostscript...
X@@ -51,7 +51,7 @@
X 	ifile="$6"
X fi
X 
X-echo INFO: Starting ESP Ghostscript @GS_VERSION_MAJOR@.@GS_VERSION_MINOR0@.@GS_VERSION_PATCH@... 1>&2
X+echo INFO: Starting GNU/GPL Ghostscript...  1>&2
X echo DEBUG: Running $bindir/@GS@ $gsopts -sOUTPUTFILE="%stdout" -c"$profile" "$ifile" 1>&2
X 
X # Now run Ghostscript...
END-of-files/patch-pstoraster.in
echo x - pkg-descr
sed 's/^X//' >pkg-descr << 'END-of-pkg-descr'
XGhostscript is the well-known PostScript interpreter which is available for
Xall common and most esoteric platforms and supports many different printers
Xand some displays.
X
XVersions entitled "GNU Ghostscript" are distributed with the GNU General
XPublic License, which allows free use, and free copying and redistribution
Xunder certain conditions (including, in some cases, commercial distribution).
X
XThis distribution is based on GNU Ghostscript and provides the "driver" for
XCUPS that supports non-PostScript printer drivers within CUPS.
X
XWWW: http://www.cups.org/ghostscript.html
END-of-pkg-descr
exit
--- pstoraster.txt ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:
 
 
 	<machine, os, target, libraries (multiple lines)>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511152227.jAFMRsac095946>