From 1601298e7a21ac8680af3159bf8bcb35b5909b25 Mon Sep 17 00:00:00 2001 From: Kirill Ponomarev Date: Fri, 26 Nov 2004 21:05:46 +0000 Subject: [PATCH] Add "pstopxl" filter Support PLIST_FILES PR: ports/74427 Submitted by: Ports Fury --- print/cups-pstoraster/Makefile | 27 ++++++++++++------- print/cups-pstoraster/files/patch-src:gxobj.h | 2 +- print/cups-pstoraster/pkg-plist | 3 --- 3 files changed, 19 insertions(+), 13 deletions(-) delete mode 100644 print/cups-pstoraster/pkg-plist diff --git a/print/cups-pstoraster/Makefile b/print/cups-pstoraster/Makefile index a0fcaf697cc8..1aa2b6a51c24 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 diff --git a/print/cups-pstoraster/files/patch-src:gxobj.h b/print/cups-pstoraster/files/patch-src:gxobj.h index 4e11eb416f39..f0df8565100c 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 d8360f63569e..000000000000 --- a/print/cups-pstoraster/pkg-plist +++ /dev/null @@ -1,3 +0,0 @@ -bin/espgs -etc/cups/pstoraster.convs -libexec/cups/filter/pstoraster