From owner-freebsd-ports Mon Apr 24 09:39:54 1995 Return-Path: ports-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA09725 for ports-outgoing; Mon, 24 Apr 1995 09:39:54 -0700 Received: from veda.is (root@veda.is [193.4.230.1]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id JAA09716 ; Mon, 24 Apr 1995 09:39:40 -0700 Received: (from adam@localhost) by veda.is (8.6.8/8.6.6) id QAA11643; Mon, 24 Apr 1995 16:36:04 GMT From: Adam David Message-Id: <199504241636.QAA11643@veda.is> Subject: Re: dgd package To: asami@cs.berkeley.edu (Satoshi Asami | =?ISO-2022-JP?B?GyRCQHUbKEI=?= =?ISO-2022-JP?B?GyRCOCsbKEIgGyRCOC0bKEI=?=) Date: Mon, 24 Apr 1995 16:36:03 +0000 (GMT) Cc: adam@FreeBSD.org, ports@FreeBSD.org 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 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 1039 Sender: ports-owner@FreeBSD.org Precedence: bulk > @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