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

(-)cups-pstoraster/Makefile (-25 / +16 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	cups-pstoraster
8
PORTNAME=	cups-pstoraster
9
PORTVERSION=	8.15
9
PORTVERSION=	8.15.3
10
CATEGORIES=	print
10
CATEGORIES=	print
11
MASTER_SITES=	\
11
MASTER_SITES=	\
12
	ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/%SUBDIR%/ \
12
	ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/%SUBDIR%/ \
Lines 14-48 Link Here
14
	ftp://ftp3.easysw.com/pub/%SUBDIR%/ \
14
	ftp://ftp3.easysw.com/pub/%SUBDIR%/ \
15
	http://ftp.easysw.com/pub/%SUBDIR%/ \
15
	http://ftp.easysw.com/pub/%SUBDIR%/ \
16
	http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/%SUBDIR%/
16
	http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/%SUBDIR%/
17
MASTER_SITE_SUBDIR=	ghostscript/test
17
MASTER_SITE_SUBDIR=	ghostscript/${PORTVERSION}
18
DIST_SUBDIR=	ghostscript
18
DIST_SUBDIR=	ghostscript
19
19
20
MAINTAINER=	ports@FreeBSD.org
20
MAINTAINER=	frank@exit.com
21
COMMENT=	Postscript interpreter for CUPS printing to non-PS printers
21
COMMENT=	Postscript interpreter for CUPS printing to non-PS printers
22
22
23
PATCH_DEPENDS=	${NONEXISTENT}:${PORTSDIR}/${GHOSTSCRIPT_PORT}:patch
24
LIB_DEPENDS=	cups.2:${PORTSDIR}/print/cups-base
23
LIB_DEPENDS=	cups.2:${PORTSDIR}/print/cups-base
25
24
26
ESPGS_VER=	${PORTVERSION}rc3
25
ESPGS_VER=	${PORTVERSION}
26
GS_VERSION=	8.15
27
27
28
DISTNAME=	espgs-${ESPGS_VER}-source
28
DISTNAME=	espgs-${ESPGS_VER}-source
29
EXTRACT_AFTER_ARGS=	| ${TAR} -xf - espgs-${ESPGS_VER}/pstoraster
29
WRKSRC=		${WRKDIR}/espgs-${PORTVERSION}
30
ESPGS_WRKSRC=	${WRKDIR}/espgs-${ESPGS_VER}/pstoraster
30
31
WRKSRC=		${WRKDIRPREFIX}$$(${REALPATH} ${PORTSDIR})/${GHOSTSCRIPT_PORT}/work/ghostscript
31
DATADIR=	${TARGETDIR}/share/ghostscript
32
PATCH_WRKSRC=	${ESPGS_WRKSRC}
33
32
34
USE_BZIP2=	yes
33
USE_BZIP2=	yes
35
USE_GHOSTSCRIPT_RUN=	yes
36
USE_GMAKE=	yes
34
USE_GMAKE=	yes
37
GNU_CONFIGURE=	yes
35
GNU_CONFIGURE=	yes
38
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
36
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
39
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
37
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
40
		LDFLAGS="-L${LOCALBASE}/lib"
38
		LDFLAGS="-L${LOCALBASE}/lib"
41
CONFIGURE_ARGS=	--without-x --without-ijs --without-gimp-print \
39
CONFIGURE_ARGS=	--without-x --with-gs=espgs
42
		--with-gs=espgs
43
MAKE_ARGS=	CFLAGS_STANDARD="${CFLAGS} -DUPD_SIGNAL=0" \
40
MAKE_ARGS=	CFLAGS_STANDARD="${CFLAGS} -DUPD_SIGNAL=0" \
44
		DEVICE_DEVS="\$$(DD)cups.dev \$$(DD)pxlcolor.dev \$$(DD)pxlmono.dev"
41
		DEVICE_DEVS="\$$(DD)cups.dev \$$(DD)pxlcolor.dev \$$(DD)pxlmono.dev"
45
42
PLIST_SUB=      GS_VERSION="${GS_VERSION}" 
46
PLIST_FILES=	bin/espgs etc/cups/pstoraster.convs \
43
PLIST_FILES=	bin/espgs etc/cups/pstoraster.convs \
47
		libexec/cups/filter/pstopxl libexec/cups/filter/pstoraster \
44
		libexec/cups/filter/pstopxl libexec/cups/filter/pstoraster \
48
		share/cups/model/pxlcolor.ppd share/cups/model/pxlmono.ppd
45
		share/cups/model/pxlcolor.ppd share/cups/model/pxlmono.ppd
Lines 51-65 Link Here
51
IGNORE=		doesn't build with AFPL version of Ghostscript; please use gnu ghostscript instead
48
IGNORE=		doesn't build with AFPL version of Ghostscript; please use gnu ghostscript instead
52
.endif
49
.endif
53
50
51
pre-configure:
52
	${RM} -f ${WRKSRC}/ijs/config.guess ${WRKSRC}/ijs/missing ${WRKSRC}/ijs/config.sub ${WRKSRC}/ijs/install-sh ${WRKSRC}/ijs/ltmain.sh
53
	${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
54
54
post-patch:
55
post-patch:
55
	${LN} -sf ${ESPGS_WRKSRC}/gdevcups.c ${WRKSRC}/src
56
	${LN} -sf ${WRKSRC}/pstoraster/gdevcups.c ${WRKSRC}/src
56
	${CAT} ${FILESDIR}/cups.contrib.mak >> ${WRKSRC}/src/contrib.mak
57
	${CAT} ${FILESDIR}/cups.contrib.mak >> ${WRKSRC}/src/contrib.mak
57
.for file in pstopxl pstoraster
58
.for file in pstopxl pstoraster
58
	${SED} -e 's:@prefix@:${PREFIX}:g ; \
59
	${SED} -e 's:@prefix@:${PREFIX}:g ; \
59
		 s:@exec_prefix@:${PREFIX}:g ; \
60
		 s:@exec_prefix@:${PREFIX}:g ; \
60
		 s:@bindir@:${PREFIX}/bin:g ; \
61
		 s:@bindir@:${PREFIX}/bin:g ; \
61
		 s:@GS@:espgs:g' \
62
		 s:@GS@:espgs:g' \
62
		${ESPGS_WRKSRC}/${file}.in > ${ESPGS_WRKSRC}/${file}
63
		${WRKSRC}/pstoraster/${file}.in > ${WRKSRC}/pstoraster/${file}
63
.endfor
64
.endfor
64
	${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS=@CPPFLAGS@ |g ; \
65
	${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS=@CPPFLAGS@ |g ; \
65
		 s|^LDFLAGS=|LDFLAGS=@LDFLAGS@ |g ; \
66
		 s|^LDFLAGS=|LDFLAGS=@LDFLAGS@ |g ; \
Lines 69-82 Link Here
69
	${MKDIR} ${WRKSRC}/bin
70
	${MKDIR} ${WRKSRC}/bin
70
	${MKDIR} ${WRKSRC}/obj
71
	${MKDIR} ${WRKSRC}/obj
71
72
72
do-install:
73
	${INSTALL_PROGRAM} ${WRKSRC}/bin/espgs ${PREFIX}/bin
74
	${INSTALL_DATA} ${ESPGS_WRKSRC}/pstoraster.convs ${PREFIX}/etc/cups
75
.for _file in pstopxl pstoraster
76
	${INSTALL_SCRIPT} ${ESPGS_WRKSRC}/${_file} ${PREFIX}/libexec/cups/filter
77
.endfor
78
.for _file in pxlcolor.ppd pxlmono.ppd
79
	${INSTALL_DATA} ${ESPGS_WRKSRC}/${_file} ${PREFIX}/share/cups/model
80
.endfor
81
82
.include <bsd.port.mk>
73
.include <bsd.port.mk>
(-)cups-pstoraster/distinfo (-3 / +5 lines)
Lines 1-3 Link Here
1
MD5 (ghostscript/espgs-8.15rc3-source.tar.bz2) = e6fb2e581bd2b85368f7664be8d38186
1
MD5 (ghostscript/espgs-8.15.3-source.tar.bz2) = 4ec87a3da20c1b433ffbe0ffe3675fcd
2
SHA256 (ghostscript/espgs-8.15rc3-source.tar.bz2) = 90f2f2382e63be37e5bb7d873ef2b67c883595e79417bd01393b914f3e7eb875
2
SHA256 (ghostscript/espgs-8.15.3-source.tar.bz2) = c1f5eefc058b08113f90bc583436399d71644b61872fa39ab4982a58a80baa62
3
SIZE (ghostscript/espgs-8.15rc3-source.tar.bz2) = 7820124
3
SIZE (ghostscript/espgs-8.15.3-source.tar.bz2) = 8785418
4
5
(-)cups-pstoraster/files/patch-pstopxl.in (-2 / +2 lines)
Lines 1-5 Link Here
1
--- pstopxl.in.orig	Mon Feb 21 18:13:47 2005
1
--- pstoraster/pstopxl.in.orig	Mon Feb 21 18:13:47 2005
2
+++ pstopxl.in	Wed Jun  8 09:11:00 2005
2
+++ pstoraster/pstopxl.in	Wed Jun  8 09:11:00 2005
3
@@ -27,7 +27,7 @@
3
@@ -27,7 +27,7 @@
4
 bindir=@bindir@
4
 bindir=@bindir@
5
 
5
 
(-)cups-pstoraster/files/patch-pstoraster.in (-2 / +2 lines)
Lines 1-5 Link Here
1
--- pstoraster.in.orig	Wed Jun  8 09:11:26 2005
1
--- pstoraster/pstoraster.in.orig	Wed Jun  8 09:11:26 2005
2
+++ pstoraster.in	Wed Jun  8 09:13:19 2005
2
+++ pstoraster/pstoraster.in	Wed Jun  8 09:13:19 2005
3
@@ -27,7 +27,7 @@
3
@@ -27,7 +27,7 @@
4
 bindir=@bindir@
4
 bindir=@bindir@
5
 
5
 
(-)cups-pstoraster/files/patch-src:gxobj.h (-17 lines)
Lines 1-17 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__) && !defined(__amd64__)
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 106292