From a76f6018abb67835049319a676850b5176421b29 Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Mon, 3 Mar 2003 20:58:23 +0000 Subject: - fix build on bento. It works fine when PORTSDIR points at the physical lcoation. if PORTSDIR point to symlink (as on benot), the workdirs are at a diffrent location. You expect: ${WRKDIRPREFIX}${PORTSDIR}/news/cnews/work ===> c-nocem-3.7 depends on file: /tmp/usr/ports/news/cnews/work/conf/substitutions - not found but the port genarted itws workfiles at: /tmp/a/ports/news/cnews/work/conf/substitutions The location can only be found with ${WRKDIRPREFIX}${.CURDIR}/../../news/cnews/work --- news/c-nocem/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'news') diff --git a/news/c-nocem/Makefile b/news/c-nocem/Makefile index ca8943777a4d..12967d03dcc7 100644 --- a/news/c-nocem/Makefile +++ b/news/c-nocem/Makefile @@ -19,7 +19,9 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/libcnews.a:${PORTSDIR}/${CNEWSSRC} \ WRKSRC= ${WRKDIR}/c-nocem CNEWSSRC?= news/cnews -CNEWSWRK?= ${WRKDIRPREFIX}${PORTSDIR}/${CNEWSSRC}/work +#CNEWSWRK?= ${WRKDIRPREFIX}${PORTSDIR}/${CNEWSSRC}/work +# ${.CURDIR}/../.. can be diffrent from ${PORTSDIR} +CNEWSWRK?= ${WRKDIRPREFIX}${.CURDIR}/../../${CNEWSSRC}/work NEWSBIN?= ${PREFIX}/libexec/cnews USE_GMAKE= yes GNU_CONFIGURE= yes -- cgit v1.2.3