summaryrefslogtreecommitdiff
path: root/graphics/rayshade
diff options
context:
space:
mode:
authoragc <agc>1998-09-15 17:05:04 +0000
committeragc <agc>1998-09-15 17:05:04 +0000
commitae2b85d8c3a27425ac2782b9a644a7f23b6fca38 (patch)
tree48ae37e9d777cd9f9314459490224420971e45c6 /graphics/rayshade
parent9eb9a7409fdb68f6804e067d60c9c7ab5e6e66ba (diff)
downloadpkgsrc-ae2b85d8c3a27425ac2782b9a644a7f23b6fca38.tar.gz
Modifications for a read-only pkgsrc (but writable WRKOBJDIR).
Diffstat (limited to 'graphics/rayshade')
-rw-r--r--graphics/rayshade/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/graphics/rayshade/Makefile b/graphics/rayshade/Makefile
index 9dd650eb36e..76bd213e6fd 100644
--- a/graphics/rayshade/Makefile
+++ b/graphics/rayshade/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 1998/08/24 18:11:40 agc Exp $
+# $NetBSD: Makefile,v 1.2 1998/09/15 17:05:04 agc Exp $
# FreeBSD Id: Makefile,v 1.1.1.1 1998/05/26 04:04:11 mph Exp
#
@@ -11,7 +11,15 @@ EXTRACT_SUFX= .tar.Z
MAINTAINER= packages@netbsd.org
-BUILD_DEPENDS= ${PKGSRCDIR}/graphics/urt/${WRKDIR:T}/include/rle.h:../../graphics/urt:patch
+.include "../../mk/bsd.prefs.mk"
+
+.ifdef WRKOBJDIR
+BUILD_ROOT= ${WRKOBJDIR}
+.else
+BUILD_ROOT= ${PKGSRCDIR}
+.endif
+
+BUILD_DEPENDS= ${BUILD_ROOT}/graphics/urt/${WRKDIR:T}/include/rle.h:../../graphics/urt:configure
DEPENDS+= urt-3.1b1:../../graphics/urt
HAS_CONFIGURE= yes
@@ -20,8 +28,9 @@ CONFIGURE_ARGS+= < ${WRKDIR}/config.ans
ALL_TARGET=
pre-configure:
- ${SED} -e 's|@CFLAGS@|${CFLAGS}|g' -e 's|\$${PREFIX}|${PREFIX}|g' \
- -e 's|\$${URTDIR}|${.CURDIR}/../../graphics/urt/${WRKDIR:T}|g' \
+ ${SED} -e 's|@CFLAGS@|${CFLAGS}|g' \
+ -e 's|\$${PREFIX}|${PREFIX}|g' \
+ -e 's|\$${URTDIR}|${BUILD_ROOT}/graphics/urt/${WRKDIR:T}|g' \
${FILESDIR}/config.ans > ${WRKDIR}/config.ans
do-install: