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

(-)cups-pstoraster/Makefile (-24 / +20 lines)
Lines 6-30 Link Here
6
#
6
#
7
7
8
PORTNAME=	cups-pstoraster
8
PORTNAME=	cups-pstoraster
9
PORTVERSION=	7.07
9
PORTVERSION=	8.15rc1
10
PORTREVISION=	3
11
CATEGORIES=	print
10
CATEGORIES=	print
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
11
MASTER_SITES=	ftp://ftp.easysw.com/pub/ghostscript/test/
13
		ftp://ftp.easysw.com/pub/ghostscript/
12
DISTFILES=	espgs-${PORTVERSION}-source${EXTRACT_SUFX}
14
MASTER_SITE_SUBDIR=	ghostscript espgs
15
DISTFILES=	ghostscript-${PORTVERSION}${EXTRACT_SUFX} \
16
		espgs-${ESPGS_VER}-source${EXTRACT_SUFX}
17
DIST_SUBDIR=	ghostscript
13
DIST_SUBDIR=	ghostscript
18
14
19
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	ports@FreeBSD.org
20
COMMENT=	GNU Postscript interpreter for CUPS printing to non-PS printers
16
COMMENT=	GNU Postscript interpreter for CUPS printing to non-PS printers
21
17
22
LIB_DEPENDS=	cups.2:${PORTSDIR}/print/cups-base
18
LIB_DEPENDS=	cups.2:${PORTSDIR}/print/cups-base
23
RUN_DEPENDS=	${LOCALBASE}/share/ghostscript/${PORTVERSION}/lib/gs_init.ps:${PORTSDIR}/print/ghostscript-gnu
24
19
25
ESPGS_VER=	7.07.1
20
WRKSRC=		${WRKDIR}/espgs-${PORTVERSION}
26
ESPGS_WRKSRC=	${WRKDIR}/espgs-${ESPGS_VER}/pstoraster
27
WRKSRC=		${WRKDIR}/ghostscript-${PORTVERSION}
28
21
29
USE_BZIP2=	yes
22
USE_BZIP2=	yes
30
USE_REINPLACE=	yes
23
USE_REINPLACE=	yes
Lines 33-40 Link Here
33
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
26
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
34
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
27
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
35
		LDFLAGS="-L${LOCALBASE}/lib"
28
		LDFLAGS="-L${LOCALBASE}/lib"
36
CONFIGURE_ARGS=	--without-x --without-ijs --without-gimp-print \
29
CONFIGURE_ARGS=	--without-x --with-gs=espgs
37
		--with-gs=espgs
38
MAKE_ARGS=	CFLAGS_STANDARD="${CFLAGS} -DUPD_SIGNAL=0" \
30
MAKE_ARGS=	CFLAGS_STANDARD="${CFLAGS} -DUPD_SIGNAL=0" \
39
		DEVICE_DEVS="\$$(DD)cups.dev \$$(DD)pxlcolor.dev \$$(DD)pxlmono.dev"
31
		DEVICE_DEVS="\$$(DD)cups.dev \$$(DD)pxlcolor.dev \$$(DD)pxlmono.dev"
40
32
Lines 42-56 Link Here
42
		libexec/cups/filter/pstopxl libexec/cups/filter/pstoraster \
34
		libexec/cups/filter/pstopxl libexec/cups/filter/pstoraster \
43
		share/cups/model/pxlcolor.ppd share/cups/model/pxlmono.ppd
35
		share/cups/model/pxlcolor.ppd share/cups/model/pxlmono.ppd
44
36
37
pre-configure:
38
	${RM} -f ${WRKSRC}/ijs/config.guess ${WRKSRC}/ijs/missing ${WRKSRC}/ijs/config.sub ${WRKSRC}/ijs/install-sh ${WRKSRC}/ijs/ltmain.sh
39
	${RM} -f ${WRKSRC}/trunk/ijs/config.guess ${WRKSRC}/trunk/ijs/missing ${WRKSRC}/trunk/ijs/config.sub ${WRKSRC}/trunk/ijs/install-sh ${WRKSRC}/trunk/ijs/ltmain.sh
40
45
post-patch:
41
post-patch:
46
	${LN} -sf ${ESPGS_WRKSRC}/gdevcups.c ${WRKSRC}/src
42
	${LN} -sf ${WRKSRC}/pstoraster/gdevcups.c ${WRKSRC}/src
47
	${CAT} ${FILESDIR}/cups.contrib.mak >> ${WRKSRC}/src/contrib.mak
43
	${CAT} ${FILESDIR}/cups.contrib.mak >> ${WRKSRC}/src/contrib.mak
48
.for file in pstopxl pstoraster
44
.for file in pstopxl pstoraster
49
	${SED} -e 's:@prefix@:${PREFIX}:g ; \
45
	${SED} -e 's:@prefix@:${PREFIX}:g ; \
50
		 s:@exec_prefix@:${PREFIX}:g ; \
46
		 s:@exec_prefix@:${PREFIX}:g ; \
51
		 s:@bindir@:${PREFIX}/bin:g ; \
47
		 s:@bindir@:${PREFIX}/bin:g ; \
52
		 s:@GS@:espgs:g' \
48
		 s:@GS@:espgs:g' \
53
		${ESPGS_WRKSRC}/${file}.in > ${ESPGS_WRKSRC}/${file}
49
		${WRKSRC}/pstoraster/${file}.in > ${WRKSRC}/pstoraster/${file}
54
.endfor
50
.endfor
55
	${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS=@CPPFLAGS@ |g ; \
51
	${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS=@CPPFLAGS@ |g ; \
56
		 s|^LDFLAGS=|LDFLAGS=@LDFLAGS@ |g ; \
52
		 s|^LDFLAGS=|LDFLAGS=@LDFLAGS@ |g ; \
Lines 60-74 Link Here
60
	${MKDIR} ${WRKSRC}/bin
56
	${MKDIR} ${WRKSRC}/bin
61
	${MKDIR} ${WRKSRC}/obj
57
	${MKDIR} ${WRKSRC}/obj
62
58
63
do-install:
59
#post-install:
64
	${INSTALL_PROGRAM} ${WRKSRC}/bin/espgs ${PREFIX}/bin
60
#	${INSTALL_PROGRAM} ${WRKSRC}/bin/espgs ${PREFIX}/bin
65
	${INSTALL_DATA} ${ESPGS_WRKSRC}/pstoraster.convs ${PREFIX}/etc/cups
61
#	${INSTALL_DATA} ${WRKSRC}/pstoraster/pstoraster.convs ${PREFIX}/etc/cups
66
.for file in pstopxl pstoraster
62
#.for file in pstopxl pstoraster
67
	${INSTALL_SCRIPT} ${ESPGS_WRKSRC}/${file} ${PREFIX}/libexec/cups/filter
63
#	${INSTALL_SCRIPT} ${WRKSRC}/pstoraster/${file} ${PREFIX}/libexec/cups/filter
68
.endfor
64
#.endfor
69
.for file in pxlcolor.ppd pxlmono.ppd
65
#.for file in pxlcolor.ppd pxlmono.ppd
70
	${INSTALL_DATA} ${ESPGS_WRKSRC}/${file} ${PREFIX}/share/cups/model
66
#	${INSTALL_DATA} ${WRKSRC}/pstoraster/${file} ${PREFIX}/share/cups/model
71
.endfor
67
#.endfor
72
68
73
.include "${.CURDIR}/../../print/cups/Makefile.common"
69
.include "${.CURDIR}/../../print/cups/Makefile.common"
74
.include <bsd.port.pre.mk>
70
.include <bsd.port.pre.mk>
(-)cups-pstoraster/distinfo (-4 / +2 lines)
Lines 1-4 Link Here
1
MD5 (ghostscript/ghostscript-7.07.tar.bz2) = 85fd16cdc8232e5e3679a3a7e30a3359
1
MD5 (ghostscript/espgs-8.15rc1-source.tar.bz2) = 90bf6e4de8cfa2ac47c37b8096b6503b
2
SIZE (ghostscript/ghostscript-7.07.tar.bz2) = 4138372
2
SIZE (ghostscript/espgs-8.15rc1-source.tar.bz2) = 15225662
3
MD5 (ghostscript/espgs-7.07.1-source.tar.bz2) = d30bf5c09f2c7caa8291f6305cf03044
4
SIZE (ghostscript/espgs-7.07.1-source.tar.bz2) = 5400198
(-)cups-pstoraster/files/patch-src:genarch.c (-4 / +4 lines)
Lines 1-5 Link Here
1
--- src/genarch.c.orig	Tue Jun  5 15:38:57 2001
1
--- src/genarch.c.orig	Sun Feb 13 11:26:57 2005
2
+++ src/genarch.c	Wed Jun 20 04:17:42 2001
2
+++ src/genarch.c	Sun Feb 13 11:28:13 2005
3
@@ -41,6 +41,7 @@
3
@@ -41,6 +41,7 @@
4
     fprintf(f, "\n\t /* ---------------- %s ---------------- */\n\n", str);
4
     fprintf(f, "\n\t /* ---------------- %s ---------------- */\n\n", str);
5
 }
5
 }
Lines 16-22 Link Here
16
 
16
 
17
 private void
17
 private void
18
 define(FILE *f, const char *str)
18
 define(FILE *f, const char *str)
19
@@ -181,6 +183,7 @@
19
@@ -212,6 +214,7 @@
20
     fprintf(f, "((unsigned long)~0L + (unsigned long)0)\n");
20
     fprintf(f, "((unsigned long)~0L + (unsigned long)0)\n");
21
 #undef PRINT_MAX
21
 #undef PRINT_MAX
22
 
22
 
Lines 24-30 Link Here
24
     section(f, "Cache sizes");
24
     section(f, "Cache sizes");
25
 
25
 
26
     /*
26
     /*
27
@@ -241,6 +244,7 @@
27
@@ -273,6 +276,7 @@
28
 	}
28
 	}
29
 	define_int(f, "ARCH_CACHE2_SIZE", bsize >> 1);
29
 	define_int(f, "ARCH_CACHE2_SIZE", bsize >> 1);
30
     }
30
     }
(-)cups-pstoraster/files/patch-src:gxobj.h (-9 / +9 lines)
Lines 1-17 Link Here
1
--- src/gxobj.h.orig	Fri Feb 22 19:45:59 2002
1
--- src/gxobj.h.orig	Sun Feb 13 11:29:10 2005
2
+++ src/gxobj.h	Thu Dec 19 00:16:57 2002
2
+++ src/gxobj.h	Sun Feb 13 11:29:15 2005
3
@@ -99,10 +99,14 @@
3
@@ -103,10 +103,14 @@
4
  * The final | is because back pointer values are divided by obj_back_scale,
4
  * required by the hardware, regardless of the value of obj_align_mod.
5
  * so objects must be aligned at least 0 mod obj_back_scale.
5
  * See gsmemraw.h for more information about this.
6
  */
6
  */
7
+#if !defined(__ia64__) && !defined(__amd64__)
7
+#if !defined(__ia64__) && !defined(__amd64__)
8
 #define obj_align_mod\
8
 #define obj_align_mod\
9
   (((arch_align_long_mod - 1) | (arch_align_ptr_mod - 1) |\
9
   (((arch_align_memory_mod - 1) |\
10
     (arch_align_double_mod - 1) | (align_bitmap_mod - 1) |\
10
     (align_bitmap_mod - 1) |\
11
     (obj_back_scale - 1)) + 1)
11
     (obj_back_scale - 1)) + 1)
12
+#else
12
+#else
13
+#define obj_align_mod	16
13
+#define obj_align_mod  16
14
+#endif
14
+#endif 
15
 /* The only possible values for obj_align_mod are 4, 8, or 16.... */
15
 /* The only possible values for obj_align_mod are 4, 8, or 16.... */
16
 #if obj_align_mod == 4
16
 #if obj_align_mod == 4
17
 #  define log2_obj_align_mod 2
17
 #  define log2_obj_align_mod 2

Return to bug 80129