View | Details | Raw Unified | Return to bug 53107
Collapse All | Expand All

(-)print/cups-pstoraster/Makefile (-12 / +27 lines)
Lines 6-18 Link Here
6
#
6
#
7
7
8
PORTNAME=	cups-pstoraster
8
PORTNAME=	cups-pstoraster
9
PORTVERSION=	7.05.6
9
PORTVERSION=	7.07
10
PORTREVISION=	0
10
PORTREVISION=	0
11
CATEGORIES=	print
11
CATEGORIES=	print
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
13
		ftp://ftp.easysw.com/pub/ghostscript/
13
		ftp://ftp.easysw.com/pub/ghostscript/
14
MASTER_SITE_SUBDIR=	espgs
14
MASTER_SITE_SUBDIR=	ghostscript espgs
15
DISTNAME=		espgs-${PORTVERSION}-source
15
DISTFILES=	ghostscript-${PORTVERSION}${EXTRACT_SUFX} \
16
		espgs-7.05.6-source${EXTRACT_SUFX}
17
DIST_SUBDIR=	ghostscript
16
18
17
MAINTAINER=	ports@FreeBSD.org
19
MAINTAINER=	ports@FreeBSD.org
18
COMMENT=	GNU Postscript interpreter for CUPS printing to non-PS printers
20
COMMENT=	GNU Postscript interpreter for CUPS printing to non-PS printers
Lines 20-39 Link Here
20
LIB_DEPENDS+=	cups.2:${PORTSDIR}/print/cups-base
22
LIB_DEPENDS+=	cups.2:${PORTSDIR}/print/cups-base
21
RUN_DEPENDS+=	${LOCALBASE}/share/ghostscript/fonts/fonts.scale:${PORTSDIR}/print/ghostscript-gnu
23
RUN_DEPENDS+=	${LOCALBASE}/share/ghostscript/fonts/fonts.scale:${PORTSDIR}/print/ghostscript-gnu
22
24
23
WRKSRC=		${WRKDIR}/espgs-${PORTVERSION}
25
WRKSRC=		${WRKDIR}/ghostscript-${PORTVERSION}
24
26
25
USE_BZIP2=	yes
27
USE_BZIP2=	yes
28
USE_REINPLACE=	yes
26
USE_GMAKE=	yes
29
USE_GMAKE=	yes
27
GNU_CONFIGURE=	yes
30
GNU_CONFIGURE=	yes
28
CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
31
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
29
CONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include" \
32
CONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include" \
30
			LDFLAGS="-L${LOCALBASE}/lib"
33
			LDFLAGS="-L${LOCALBASE}/lib"
31
CONFIGURE_ARGS=	--without-x --without-ijs --without-gimp-print \
34
CONFIGURE_ARGS=	--without-x --without-ijs --without-gimp-print \
32
		--with-drivers=cups --with-gs=espgs \
35
		--with-gs=espgs
33
		--with-fontpath=${LOCALBASE}/share/ghostscript/fonts \
36
MAKE_ARGS=	CFLAGS_STANDARD="${CFLAGS} -DUPD_SIGNAL=0" \
34
		--enable-compiled-inits --without-omni
37
		DEVICE_DEVS="\$$(DD)cups.dev"
35
38
36
USE_REINPLACE=	yes
39
ESPGS_WRKSRC=	${WRKDIR}/espgs-7.05.6/pstoraster
40
41
post-patch:
42
	${LN} -sf ${ESPGS_WRKSRC}/gdevcups.c ${WRKSRC}/src
43
	${CAT} ${FILESDIR}/cups.contrib.mak >> ${WRKSRC}/src/contrib.mak
44
	${SED} -e 's:@prefix@:${PREFIX}:g ; \
45
		 s:@exec_prefix@:${PREFIX}:g ; \
46
		 s:@bindir@:${PREFIX}/bin:g ; \
47
		 s:@GS@:espgs:g' \
48
		${ESPGS_WRKSRC}/pstoraster.in > ${ESPGS_WRKSRC}/pstoraster
49
	${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS=@CPPFLAGS@ |g ; \
50
		 s|^LDFLAGS=|LDFLAGS=@LDFLAGS@ |g ; \
51
		 s|^DEVICE_DEVS|#DEVICE_DEVS|g' ${WRKSRC}/Makefile.in
37
52
38
pre-build:
53
pre-build:
39
	${MKDIR} ${WRKSRC}/bin
54
	${MKDIR} ${WRKSRC}/bin
Lines 41-49 Link Here
41
56
42
do-install:
57
do-install:
43
	${INSTALL_PROGRAM} ${WRKSRC}/bin/espgs ${PREFIX}/bin
58
	${INSTALL_PROGRAM} ${WRKSRC}/bin/espgs ${PREFIX}/bin
44
	${INSTALL_DATA} ${WRKSRC}/pstoraster/pstoraster.convs \
59
	${INSTALL_DATA} ${ESPGS_WRKSRC}/pstoraster.convs \
45
		${PREFIX}/etc/cups
60
		${PREFIX}/etc/cups
46
	${INSTALL_SCRIPT} ${WRKSRC}/pstoraster/pstoraster \
61
	${INSTALL_SCRIPT} ${ESPGS_WRKSRC}/pstoraster \
47
		${PREFIX}/libexec/cups/filter
62
		${PREFIX}/libexec/cups/filter
48
	${CHOWN} -R ${CUPSOWN}:${CUPSGRP} \
63
	${CHOWN} -R ${CUPSOWN}:${CUPSGRP} \
49
		${PREFIX}/etc/cups ${PREFIX}/libexec/cups/filter
64
		${PREFIX}/etc/cups ${PREFIX}/libexec/cups/filter
(-)print/cups-pstoraster/distinfo (-1 / +2 lines)
Line 1 Link Here
1
MD5 (espgs-7.05.6-source.tar.bz2) = 991cbd7bafc6917a19abf9df3ecad58e
1
MD5 (ghostscript/ghostscript-7.07.tar.bz2) = 85fd16cdc8232e5e3679a3a7e30a3359
2
MD5 (ghostscript/espgs-7.05.6-source.tar.bz2) = 991cbd7bafc6917a19abf9df3ecad58e
(-)print/cups-pstoraster/files/cups.contrib.mak (+11 lines)
Line 0 Link Here
1
### ----------------- CUPS Ghostscript Driver ---------------------- ###
2
3
cups_=  $(GLOBJ)gdevcups.$(OBJ)
4
5
$(DD)cups.dev:  $(cups_) $(DD)page.dev
6
	$(SETPDEV2) $(DD)cups $(cups_)
7
	$(ADDMOD) $(DD)cups -lib cupsimage -lib cups
8
9
$(GLOBJ)gdevcups.$(OBJ): $(GLSRC)gdevcups.c $(PDEVH)
10
	$(GLCC) $(GLO_)gdevcups.$(OBJ) $(C_) $(GLSRC)gdevcups.c
11
(-)print/cups-pstoraster/files/patch-src:gxobj.h (+17 lines)
Line 0 Link Here
1
--- src/gxobj.h.orig	Fri Feb 22 19:45:59 2002
2
+++ src/gxobj.h	Thu Dec 19 00:16:57 2002
3
@@ -99,10 +99,14 @@
4
  * The final | is because back pointer values are divided by obj_back_scale,
5
  * so objects must be aligned at least 0 mod obj_back_scale.
6
  */
7
+#if !defined(__ia64__)
8
 #define obj_align_mod\
9
   (((arch_align_long_mod - 1) | (arch_align_ptr_mod - 1) |\
10
     (arch_align_double_mod - 1) | (align_bitmap_mod - 1) |\
11
     (obj_back_scale - 1)) + 1)
12
+#else
13
+#define obj_align_mod	16
14
+#endif
15
 /* The only possible values for obj_align_mod are 4, 8, or 16.... */
16
 #if obj_align_mod == 4
17
 #  define log2_obj_align_mod 2

Return to bug 53107