From owner-freebsd-ports Tue May 20 15:40:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA02238 for ports-outgoing; Tue, 20 May 1997 15:40:37 -0700 (PDT) Received: from vader.cs.berkeley.edu (vader.CS.Berkeley.EDU [128.32.38.234]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA02230 for ; Tue, 20 May 1997 15:40:33 -0700 (PDT) Received: (from asami@localhost) by vader.cs.berkeley.edu (8.8.5/8.7.3) id PAA19568; Tue, 20 May 1997 15:40:16 -0700 (PDT) Date: Tue, 20 May 1997 15:40:16 -0700 (PDT) Message-Id: <199705202240.PAA19568@vader.cs.berkeley.edu> To: gurney_j@resnet.uoregon.edu CC: ports@freebsd.org, andreas@klemm.gtn.com In-reply-to: <19970520021721.25154@hydrogen.nike.efn.org> (message from John-Mark Gurney on Tue, 20 May 1997 02:17:21 -0700) Subject: Re: ghostscript4 is broken if your ports tree isn't in /usr/ports From: asami@vader.cs.berkeley.edu (Satoshi Asami) Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk * well.. tssia... basicly there needs to be a patch to unix-gcc.mak and * replace the occurance of /usr/ports on JSRCDIR and PSRCDIR with * ${PORTSDIR}... with this patch it builds fine... Where is that patch? (It's not that simple, as this file is created during "configure".... :) * I usually build ports in /tmp as it is MFS mounted... ttyl... Ok, try this. === Index: Makefile =================================================================== RCS file: /usr/cvs/ports/print/ghostscript4/Makefile,v retrieving revision 1.15 diff -u -r1.15 Makefile --- Makefile 1997/04/30 03:20:21 1.15 +++ Makefile 1997/05/20 21:45:28 @@ -13,10 +13,11 @@ MAINTAINER= andreas@klemm.gtn.com DEPENDS= ${PORTSDIR}/graphics/jpeg \ ${PORTSDIR}/graphics/png DEPENDS_TARGET= extract +MAKE_ENV= PORTSDIR=${PORTSDIR} EXTRACT_ONLY= ${GS_SOURCES} WRKSRC= ${WRKDIR}/gs4.03 MAKEFILE= unix-gcc.mak Index: scripts/configure =================================================================== RCS file: /usr/cvs/ports/print/ghostscript4/scripts/configure,v retrieving revision 1.9 diff -u -r1.9 configure --- configure 1997/05/18 20:59:02 1.9 +++ configure 1997/05/20 21:45:50 @@ -5,8 +5,8 @@ sed -e "s;XINCLUDE=-I/usr/local/X/include;XINCLUDE=-I/usr/X11R6/include;" \ -e "s;XLIBDIRS=-L/usr/X11/lib;XLIBDIRS=-L/usr/X11R6/lib;" \ - -e "s;JSRCDIR=jpeg-6a;JSRCDIR=${PORTSDIR}/graphics/jpeg/work/jpeg-6a;" \ - -e "s;PSRCDIR=libpng;PSRCDIR=${PORTSDIR}/graphics/png/work/libpng-0.89c;" \ + -e "s;JSRCDIR=jpeg-6a;JSRCDIR=\${PORTSDIR}/graphics/jpeg/work/jpeg-6a;" \ + -e "s;PSRCDIR=libpng;PSRCDIR=\${PORTSDIR}/graphics/png/work/libpng-0.89c;" \ -e "s;ZSRCDIR=zlib;ZSRCDIR=.;" \ -e "s;CC=gcc;CC=cc;" \ -e "s;^DEVICE_DEVS=.*;;" \ Index: scripts/configure.batch =================================================================== RCS file: /usr/cvs/ports/print/ghostscript4/scripts/configure.batch,v retrieving revision 1.4 diff -u -r1.4 configure.batch --- configure.batch 1996/11/22 09:49:08 1.4 +++ configure.batch 1997/05/20 21:43:59 @@ -5,8 +5,8 @@ sed -e "s;XINCLUDE=-I/usr/local/X/include;XINCLUDE=-I/usr/X11R6/include;" \ -e "s;XLIBDIRS=-L/usr/X11/lib;XLIBDIRS=-L/usr/X11R6/lib;" \ - -e "s;JSRCDIR=jpeg-6a;JSRCDIR=${PORTSDIR}/graphics/jpeg/work/jpeg-6a;" \ - -e "s;PSRCDIR=libpng;PSRCDIR=${PORTSDIR}/graphics/png/work/libpng-0.89c;" \ + -e "s;JSRCDIR=jpeg-6a;JSRCDIR=\${PORTSDIR}/graphics/jpeg/work/jpeg-6a;" \ + -e "s;PSRCDIR=libpng;PSRCDIR=\${PORTSDIR}/graphics/png/work/libpng-0.89c;" \ -e "s;ZSRCDIR=zlib;ZSRCDIR=.;" \ -e "s;CC=gcc;CC=cc;" \ -e "s;DEVICE_DEVS15=pdfwrite.dev;DEVICE_DEVS15=pdfwrite.dev stcolor.dev;" \ === What it does is move the evaluation of ${PORTSDIR} from configure time to build time. Although I'm not sure why it didn't work before for you (if you had PORTSDIR set during "make configure", I think it should have worked too...). Satoshi