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

(-)print/cups-pstoraster/Makefile (-9 / +18 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	cups-pstoraster
8
PORTNAME=	cups-pstoraster
9
PORTVERSION=	7.07
9
PORTVERSION=	7.07
10
PORTREVISION=	2
10
PORTREVISION=	3
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/
Lines 31-51 Link Here
31
USE_GMAKE=	yes
31
USE_GMAKE=	yes
32
GNU_CONFIGURE=	yes
32
GNU_CONFIGURE=	yes
33
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
33
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
34
CONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include" \
34
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
35
			LDFLAGS="-L${LOCALBASE}/lib"
35
		LDFLAGS="-L${LOCALBASE}/lib"
36
CONFIGURE_ARGS=	--without-x --without-ijs --without-gimp-print \
36
CONFIGURE_ARGS=	--without-x --without-ijs --without-gimp-print \
37
		--with-gs=espgs
37
		--with-gs=espgs
38
MAKE_ARGS=	CFLAGS_STANDARD="${CFLAGS} -DUPD_SIGNAL=0" \
38
MAKE_ARGS=	CFLAGS_STANDARD="${CFLAGS} -DUPD_SIGNAL=0" \
39
		DEVICE_DEVS="\$$(DD)cups.dev"
39
		DEVICE_DEVS="\$$(DD)cups.dev \$$(DD)pxlcolor.dev \$$(DD)pxlmono.dev"
40
41
PLIST_FILES=	bin/espgs etc/cups/pstoraster.convs \
42
		libexec/cups/filter/pstopxl libexec/cups/filter/pstoraster \
43
		share/cups/model/pxlcolor.ppd share/cups/model/pxlmono.ppd
40
44
41
post-patch:
45
post-patch:
42
	${LN} -sf ${ESPGS_WRKSRC}/gdevcups.c ${WRKSRC}/src
46
	${LN} -sf ${ESPGS_WRKSRC}/gdevcups.c ${WRKSRC}/src
43
	${CAT} ${FILESDIR}/cups.contrib.mak >> ${WRKSRC}/src/contrib.mak
47
	${CAT} ${FILESDIR}/cups.contrib.mak >> ${WRKSRC}/src/contrib.mak
48
.for file in pstopxl pstoraster
44
	${SED} -e 's:@prefix@:${PREFIX}:g ; \
49
	${SED} -e 's:@prefix@:${PREFIX}:g ; \
45
		 s:@exec_prefix@:${PREFIX}:g ; \
50
		 s:@exec_prefix@:${PREFIX}:g ; \
46
		 s:@bindir@:${PREFIX}/bin:g ; \
51
		 s:@bindir@:${PREFIX}/bin:g ; \
47
		 s:@GS@:espgs:g' \
52
		 s:@GS@:espgs:g' \
48
		${ESPGS_WRKSRC}/pstoraster.in > ${ESPGS_WRKSRC}/pstoraster
53
		${ESPGS_WRKSRC}/${file}.in > ${ESPGS_WRKSRC}/${file}
54
.endfor
49
	${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS=@CPPFLAGS@ |g ; \
55
	${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS=@CPPFLAGS@ |g ; \
50
		 s|^LDFLAGS=|LDFLAGS=@LDFLAGS@ |g ; \
56
		 s|^LDFLAGS=|LDFLAGS=@LDFLAGS@ |g ; \
51
		 s|^DEVICE_DEVS|#DEVICE_DEVS|g' ${WRKSRC}/Makefile.in
57
		 s|^DEVICE_DEVS|#DEVICE_DEVS|g' ${WRKSRC}/Makefile.in
Lines 56-67 Link Here
56
62
57
do-install:
63
do-install:
58
	${INSTALL_PROGRAM} ${WRKSRC}/bin/espgs ${PREFIX}/bin
64
	${INSTALL_PROGRAM} ${WRKSRC}/bin/espgs ${PREFIX}/bin
59
	${INSTALL_DATA} ${ESPGS_WRKSRC}/pstoraster.convs \
65
	${INSTALL_DATA} ${ESPGS_WRKSRC}/pstoraster.convs ${PREFIX}/etc/cups
60
		${PREFIX}/etc/cups
66
.for file in pstopxl pstoraster
61
	${INSTALL_SCRIPT} ${ESPGS_WRKSRC}/pstoraster \
67
	${INSTALL_SCRIPT} ${ESPGS_WRKSRC}/${file} ${PREFIX}/libexec/cups/filter
62
		${PREFIX}/libexec/cups/filter
68
.endfor
63
	${CHOWN} -R ${CUPSOWN}:${CUPSGRP} \
69
	${CHOWN} -R ${CUPSOWN}:${CUPSGRP} \
64
		${PREFIX}/etc/cups ${PREFIX}/libexec/cups/filter
70
		${PREFIX}/etc/cups ${PREFIX}/libexec/cups/filter
71
.for file in pxlcolor.ppd pxlmono.ppd
72
	${INSTALL_DATA} ${ESPGS_WRKSRC}/${file} ${PREFIX}/share/cups/model
73
.endfor
65
74
66
.include "${.CURDIR}/../../print/cups/Makefile.common"
75
.include "${.CURDIR}/../../print/cups/Makefile.common"
67
.include <bsd.port.pre.mk>
76
.include <bsd.port.pre.mk>
(-)print/cups-pstoraster/files/patch-src:gxobj.h (-1 / +1 lines)
Lines 4-10 Link Here
4
  * The final | is because back pointer values are divided by obj_back_scale,
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.
5
  * so objects must be aligned at least 0 mod obj_back_scale.
6
  */
6
  */
7
+#if !defined(__ia64__)
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_long_mod - 1) | (arch_align_ptr_mod - 1) |\
10
     (arch_align_double_mod - 1) | (align_bitmap_mod - 1) |\
10
     (arch_align_double_mod - 1) | (align_bitmap_mod - 1) |\
(-)print/cups-pstoraster/pkg-plist (-3 lines)
Lines 1-3 Link Here
1
bin/espgs
2
etc/cups/pstoraster.convs
3
libexec/cups/filter/pstoraster

Return to bug 74427