Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Apr 1995 16:36:03 +0000 (GMT)
From:      Adam David <adam@veda.is>
To:        asami@cs.berkeley.edu (Satoshi Asami | =?ISO-2022-JP?B?GyRCQHUbKEI=?= =?ISO-2022-JP?B?GyRCOCsbKEIgGyRCOC0bKEI=?=)
Cc:        adam@FreeBSD.org, ports@FreeBSD.org
Subject:   Re: dgd package
Message-ID:  <199504241636.QAA11643@veda.is>
In-Reply-To: <199504240654.XAA00796@silvia.HIP.Berkeley.EDU> from "Satoshi Asami | =?ISO-2022-JP?B?GyRCQHUbKEI=?= =?ISO-2022-JP?B?GyRCOCsbKEIgGyRCOC0bKEI=?=" at Apr 23, 95 11:54:24 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> @srcdir /usr/ports/net/dgd/work
> @owner mud
> @group mud
> @cwd /usr/local
> dgd/Copyright
>  :
> 
> Needless to say, it fails pretty miserably when PORTSDIR is not
> /usr/ports (it was /e/work/asami/ports in this case):

The point of this was to build a complete tree for the package without
requiring it to be installed first. The PLIST is of course unaware of the
make environment, otherwise it would be nice to do '@srcdir ${WRKDIR}'.

As a simple fix, how about '@srcdir .' and do...

.if !defined(NO_INSTALL)
package:
	@${MAKE} ${.MAKEFLAGS} NO_INSTALL= package
.endif

.if !defined(DO_PACKAGE)
do-package:
	@echo ".include \"${.CURDIR}/Makefile\"" >${WRKDIR}/Makefile
	@cd ${WRKDIR}; \
${MAKE} ${.MAKEFLAGS} WRKDIR=${WRKDIR} PKGDIR=${PKGDIR} DO_PACKAGE= do-package
	@rm -f ${WRKDIR}/Makefile
.endif


This change is going in for now. Using a temporary Makefile is messy but it
is the simplest way around the invocation of 'make package-depends' with the
current and work directories being the same.

--
Adam David <adam@veda.is>



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