summaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-11-26 21:05:46 +0000
committerkrion <krion@FreeBSD.org>2004-11-26 21:05:46 +0000
commitc598cb48aab42a148aecfbbc1985d98d00f9da32 (patch)
tree01ef35145ec8184c23c35caf2e6b6b832ffafa05 /print
parent8c5d43ad0967c767f40926d698f68cc71802b8b6 (diff)
downloadFreeBSD-ports-c598cb48aab42a148aecfbbc1985d98d00f9da32.zip
FreeBSD-ports-c598cb48aab42a148aecfbbc1985d98d00f9da32.tar.gz
Add "pstopxl" filter
Support PLIST_FILES PR: ports/74427 Submitted by: Ports Fury
Diffstat (limited to 'print')
-rw-r--r--print/cups-pstoraster/Makefile27
-rw-r--r--print/cups-pstoraster/files/patch-src:gxobj.h2
-rw-r--r--print/cups-pstoraster/pkg-plist3
3 files changed, 19 insertions, 13 deletions
diff --git a/print/cups-pstoraster/Makefile b/print/cups-pstoraster/Makefile
index a0fcaf6..1aa2b6a 100644
--- a/print/cups-pstoraster/Makefile
+++ b/print/cups-pstoraster/Makefile
@@ -7,7 +7,7 @@
PORTNAME= cups-pstoraster
PORTVERSION= 7.07
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://ftp.easysw.com/pub/ghostscript/
@@ -31,21 +31,27 @@ USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --without-x --without-ijs --without-gimp-print \
--with-gs=espgs
MAKE_ARGS= CFLAGS_STANDARD="${CFLAGS} -DUPD_SIGNAL=0" \
- DEVICE_DEVS="\$$(DD)cups.dev"
+ DEVICE_DEVS="\$$(DD)cups.dev \$$(DD)pxlcolor.dev \$$(DD)pxlmono.dev"
+
+PLIST_FILES= bin/espgs etc/cups/pstoraster.convs \
+ libexec/cups/filter/pstopxl libexec/cups/filter/pstoraster \
+ share/cups/model/pxlcolor.ppd share/cups/model/pxlmono.ppd
post-patch:
${LN} -sf ${ESPGS_WRKSRC}/gdevcups.c ${WRKSRC}/src
${CAT} ${FILESDIR}/cups.contrib.mak >> ${WRKSRC}/src/contrib.mak
+.for file in pstopxl pstoraster
${SED} -e 's:@prefix@:${PREFIX}:g ; \
s:@exec_prefix@:${PREFIX}:g ; \
s:@bindir@:${PREFIX}/bin:g ; \
s:@GS@:espgs:g' \
- ${ESPGS_WRKSRC}/pstoraster.in > ${ESPGS_WRKSRC}/pstoraster
+ ${ESPGS_WRKSRC}/${file}.in > ${ESPGS_WRKSRC}/${file}
+.endfor
${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS=@CPPFLAGS@ |g ; \
s|^LDFLAGS=|LDFLAGS=@LDFLAGS@ |g ; \
s|^DEVICE_DEVS|#DEVICE_DEVS|g' ${WRKSRC}/Makefile.in
@@ -56,12 +62,15 @@ pre-build:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/espgs ${PREFIX}/bin
- ${INSTALL_DATA} ${ESPGS_WRKSRC}/pstoraster.convs \
- ${PREFIX}/etc/cups
- ${INSTALL_SCRIPT} ${ESPGS_WRKSRC}/pstoraster \
- ${PREFIX}/libexec/cups/filter
+ ${INSTALL_DATA} ${ESPGS_WRKSRC}/pstoraster.convs ${PREFIX}/etc/cups
+.for file in pstopxl pstoraster
+ ${INSTALL_SCRIPT} ${ESPGS_WRKSRC}/${file} ${PREFIX}/libexec/cups/filter
+.endfor
${CHOWN} -R ${CUPSOWN}:${CUPSGRP} \
${PREFIX}/etc/cups ${PREFIX}/libexec/cups/filter
+.for file in pxlcolor.ppd pxlmono.ppd
+ ${INSTALL_DATA} ${ESPGS_WRKSRC}/${file} ${PREFIX}/share/cups/model
+.endfor
.include "${.CURDIR}/../../print/cups/Makefile.common"
.include <bsd.port.pre.mk>
diff --git a/print/cups-pstoraster/files/patch-src:gxobj.h b/print/cups-pstoraster/files/patch-src:gxobj.h
index 4e11eb4..f0df856 100644
--- a/print/cups-pstoraster/files/patch-src:gxobj.h
+++ b/print/cups-pstoraster/files/patch-src:gxobj.h
@@ -4,7 +4,7 @@
* The final | is because back pointer values are divided by obj_back_scale,
* so objects must be aligned at least 0 mod obj_back_scale.
*/
-+#if !defined(__ia64__)
++#if !defined(__ia64__) && !defined(__amd64__)
#define obj_align_mod\
(((arch_align_long_mod - 1) | (arch_align_ptr_mod - 1) |\
(arch_align_double_mod - 1) | (align_bitmap_mod - 1) |\
diff --git a/print/cups-pstoraster/pkg-plist b/print/cups-pstoraster/pkg-plist
deleted file mode 100644
index d8360f6..0000000
--- a/print/cups-pstoraster/pkg-plist
+++ /dev/null
@@ -1,3 +0,0 @@
-bin/espgs
-etc/cups/pstoraster.convs
-libexec/cups/filter/pstoraster
OpenPOWER on IntegriCloud