1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add "pstopxl" filter

Support PLIST_FILES

PR:		ports/74427
Submitted by:	Ports Fury
This commit is contained in:
Kirill Ponomarev 2004-11-26 21:05:46 +00:00
parent 3884ecf94f
commit 1601298e7a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122530
3 changed files with 19 additions and 13 deletions

View File

@ -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>

View File

@ -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) |\

View File

@ -1,3 +0,0 @@
bin/espgs
etc/cups/pstoraster.convs
libexec/cups/filter/pstoraster