diff options
author | agc <agc> | 1998-09-15 17:05:04 +0000 |
---|---|---|
committer | agc <agc> | 1998-09-15 17:05:04 +0000 |
commit | ae2b85d8c3a27425ac2782b9a644a7f23b6fca38 (patch) | |
tree | 48ae37e9d777cd9f9314459490224420971e45c6 /print | |
parent | 9eb9a7409fdb68f6804e067d60c9c7ab5e6e66ba (diff) | |
download | pkgsrc-ae2b85d8c3a27425ac2782b9a644a7f23b6fca38.tar.gz |
Modifications for a read-only pkgsrc (but writable WRKOBJDIR).
Diffstat (limited to 'print')
-rw-r--r-- | print/ghostscript5/Makefile | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/print/ghostscript5/Makefile b/print/ghostscript5/Makefile index 4b8d0976fc7..fec700df32c 100644 --- a/print/ghostscript5/Makefile +++ b/print/ghostscript5/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 1998/08/20 15:17:23 tsarna Exp $ +# $NetBSD: Makefile,v 1.24 1998/09/15 17:05:07 agc Exp $ # FreeBSD Id: Makefile,v 1.14 1997/10/13 11:22:43 asami Exp # @@ -14,11 +14,10 @@ DISTFILES= ${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \ MAINTAINER= explorer@netbsd.org HOMEPAGE= http://www.cs.wisc.edu/~ghost/index.html -BUILD_DEPENDS= ../../graphics/jpeg/${WRKDIR:T}/jpeg-6b:../../graphics/jpeg:extract \ - ../../graphics/png/${WRKDIR:T}/libpng-1.0.2:../../graphics/png:extract \ +BUILD_DEPENDS= ${BUILD_ROOT}/graphics/jpeg/${WRKDIR:T}/jpeg-6b:../../graphics/jpeg:extract \ + ${BUILD_ROOT}/graphics/png/${WRKDIR:T}/libpng-1.0.2:../../graphics/png:extract \ unzip:../../archivers/unzip -MAKE_ENV= PORTSDIR=${.CURDIR}/../.. EXTRACT_ONLY= ${GS_SOURCES} WRKSRC= ${WRKDIR}/gs5.10 MAKEFILE= unix-gcc.mak @@ -43,6 +42,12 @@ PDF_SEC= pdf_sec.ps .include "../../mk/bsd.prefs.mk" +.ifdef WRKOBJDIR +BUILD_ROOT= ${WRKOBJDIR} +.else +BUILD_ROOT= ${PKGSRCDIR} +.endif + .if defined(PAPERSIZE) && (${PAPERSIZE} == "A4" || ${PAPERSIZE} == "a4") PAPERSIZE_DEF= -DA4 .endif @@ -58,13 +63,13 @@ post-extract: ${TOUCH} ${WRKSRC}/adler32.o ${TOUCH} ${WRKSRC}/deflate.o ${TOUCH} ${WRKSRC}/trees.o - ${LN} -s ${PKGSRCDIR}/graphics/jpeg/${WRKDIR:T}/jpeg-6b ${WRKSRC}/jpeg-6b - ${LN} -s ${PKGSRCDIR}/graphics/png/${WRKDIR:T}/libpng-1.0.2 ${WRKSRC}/libpng + ${LN} -s ${BUILD_ROOT}/graphics/jpeg/${WRKDIR:T}/jpeg-6b ${WRKSRC}/jpeg-6b + ${LN} -s ${BUILD_ROOT}/graphics/png/${WRKDIR:T}/libpng-1.0.2 ${WRKSRC}/libpng cd ${WRKSRC} && unzip -La ${DISTDIR}/${HP850_DRV} ${CP} ${DISTDIR}/${PDF_SEC} ${WRKSRC} do-configure: - @${SETENV} PORTSDIR=${.CURDIR}/../.. WRKSRC=${WRKSRC} \ + @${SETENV} WRKSRC=${WRKSRC} \ ${SH} ${SCRIPTDIR}/configure${SCRIPT_SUFFIX} do-build: |