Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Nov 2003 02:13:22 +0100 (CET)
From:      Barry Bouwsma <freebsd-misuser@remove-NOSPAM-to-reply.NOSPAM.dyndns.dk>
To:        FreeBSD Ports Patrol <freebsd-ports@freebsd.org>
Subject:   Fix for broken jpeg2ps-a4 port
Message-ID:  <200311210113.hAL1DMW01430@NOSPAM.spam.NOSPAM.spam.NOSPAM.dyndns.dk>

next in thread | raw e-mail | index | archive | help
[Drop hostname part of IPv6-only address above to obtain IPv4-capable e-mail,
 or don't reply to me since I'm hardly online anymore]
(I'm not sure if I should or can send this to freebsd-ports-bugs@ insetad...)


This may well be fixed already, but a recent change to the ports/graphics/
jpeg2ps-letter port Makefile has resulted in breakage of the related
jpeg2ps-a4 port, producing letter-sized output instead of the desired A4.

The following change to the jpeg2ps-*letter* Makefile seems that it
restores the -a4 port to produce A4 output:
(diff cut-n-pasted, tabs lost; please review and apply by hand as needed)

--- ../../graphics/jpeg2ps-letter/Makefile-DIST Tue Sep  2 19:22:04 2003
+++ ../../graphics/jpeg2ps-letter/Makefile      Mon Nov 17 22:36:07 2003
@@ -21,7 +21,8 @@
 .if ${PAPERSIZE} == a4
 post-patch:
        ${CP} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.input
-       ${SED} "s%CCFLAGS=-O -c%CCFLAGS=-O -c -DA4%" ${WRKSRC}/Makefile.input > ${WRKSRC}/Makefile
+## B0RKED      ${SED} "s%CCFLAGS=-O -c%CCFLAGS=-O -c -DA4%" ${WRKSRC}/Makefile.input > ${WRKSRC}/Makefile
+       ${SED} "s%CFLAGS+=-c%CFLAGS+=-DA4 -c%" ${WRKSRC}/Makefile.input > ${WRKSRC}/Makefile
        ${RM} -f ${WRKSRC}/Makefile.input
 .endif



The result of the above patch is a Makefile that resembles...
CFLAGS?=-O -pipe
CFLAGS+=-DA4 -c
LD=cc
which probably preserves the intent of revision 1.3 of patch-aa while
restoring the flags changed by release 1.9 of jpeg2ps.  I think.


Thanks,
Barry Bouwsma



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311210113.hAL1DMW01430>