Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 May 1997 15:40:16 -0700 (PDT)
From:      asami@vader.cs.berkeley.edu (Satoshi Asami)
To:        gurney_j@resnet.uoregon.edu
Cc:        ports@freebsd.org, andreas@klemm.gtn.com
Subject:   Re: ghostscript4 is broken if your ports tree isn't in /usr/ports
Message-ID:  <199705202240.PAA19568@vader.cs.berkeley.edu>
In-Reply-To: <19970520021721.25154@hydrogen.nike.efn.org> (message from John-Mark Gurney on Tue, 20 May 1997 02:17:21 -0700)

next in thread | previous in thread | raw e-mail | index | archive | help
 * 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



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