summaryrefslogtreecommitdiff
path: root/print/cups-pstoraster/Makefile
blob: 3fa234d32795f436bd89e54802e773f469624816 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# New ports collection makefile for:	cups-pstoraster
# Date created:		Jul 13 2002
# Whom:			ports@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=	cups-pstoraster
PORTVERSION=	7.05.5
PORTREVISION=	1
CATEGORIES=	print
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
		ftp://ftp.easysw.com/pub/ghostscript/
MASTER_SITE_SUBDIR=	espgs
DISTNAME=		espgs-${PORTVERSION}-source

MAINTAINER=	ports@geeksrus.net

LIB_DEPENDS=	cups.2:${PORTSDIR}/print/cups-base
RUN_DEPENDS=	${LOCALBASE}/share/ghostscript/fonts/fonts.scale:${PORTSDIR}/print/ghostscript-gnu

WRKSRC=		${WRKDIR}/espgs-${PORTVERSION}

USE_BZIP2=	yes
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include" \
			LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS=	--without-x --without-ijs --without-gimp-print \
		--with-drivers=cups --with-gs=espgs \
		--with-fontpath=${LOCALBASE}/share/ghostscript/fonts \
		--enable-compiled-inits --without-omni

USE_REINPLACE=	yes

post-patch:
	${REINPLACE_CMD} -e 's|%%DATADIR%%|${LOCALBASE}/share/ghostscript|g' \
		${WRKSRC}/lib/gs_res.ps

pre-build:
	${MKDIR} ${WRKSRC}/bin
	${MKDIR} ${WRKSRC}/obj

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/espgs ${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/pstoraster/pstoraster.convs \
		${PREFIX}/etc/cups
	${INSTALL_SCRIPT} ${WRKSRC}/pstoraster/pstoraster \
		${PREFIX}/libexec/cups/filter

.include <bsd.port.mk>