diff options
author | agc <agc> | 1998-09-15 17:05:04 +0000 |
---|---|---|
committer | agc <agc> | 1998-09-15 17:05:04 +0000 |
commit | f82dd9145f67707da7a7442bc21f4beac3907383 (patch) | |
tree | 48ae37e9d777cd9f9314459490224420971e45c6 /print/ghostscript5 | |
parent | 1fc607d4015856ded04387feeec47cb6437a5dae (diff) | |
download | pkgsrc-f82dd9145f67707da7a7442bc21f4beac3907383.tar.gz |
Modifications for a read-only pkgsrc (but writable WRKOBJDIR).
Diffstat (limited to 'print/ghostscript5')
-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: |