From owner-freebsd-ports Fri Apr 19 9:28: 1 2002 Delivered-To: freebsd-ports@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 83AD137B417; Fri, 19 Apr 2002 09:27:57 -0700 (PDT) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.2/8.12.2) with ESMTP id g3JGRtYm028171; Fri, 19 Apr 2002 09:27:55 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.2/8.12.2/Submit) id g3JGQe49028138; Fri, 19 Apr 2002 09:26:40 -0700 (PDT) Date: Fri, 19 Apr 2002 09:26:40 -0700 From: "David O'Brien" To: Ruslan Ermilov Cc: ports@FreeBSD.org Subject: Re: cvs commit: src/share/mk bsd.port.mk Message-ID: <20020419092640.A28065@dragon.nuxi.com> Reply-To: obrien@FreeBSD.org References: <200204190740.g3J7ea347781@freefall.freebsd.org> <20020419010057.A4986@dragon.nuxi.com> <20020419082123.GJ53150@sunbay.com> <20020419021641.A6998@dragon.nuxi.com> <20020419112417.GA86103@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020419112417.GA86103@sunbay.com>; from ru@FreeBSD.org on Fri, Apr 19, 2002 at 02:24:17PM +0300 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Apr 19, 2002 at 02:24:17PM +0300, Ruslan Ermilov wrote: > Yes, there's nothing wrong if ports/Mk/bsd.port.mk includes . > But Bill Fenner suggested that I put this into src/share/mk/bsd.port.mk > so that version in ports/Mk can be kept FreeBSD-version independent and > currently we only _need_ to include bsd.own.mk for HEAD. We already have a lot of version dependent bits in ports/Mk/bsd.port.mk: .if ${OSVERSION} >= 400014 .if !exists(/usr/lib/libcrypto.so) # defaults to 4.x for -CURRENT; and 3.3.6 for all other branches .if ${OSVERSION} > 500025 XFREE86_VERSION?= 4 .if defined(USE_GCC) && ${USE_GCC} == 2.95 && ${OSVERSION} < 400012 CC= gcc295 CXX= g++295 .if ${OSVERSION} >= 400014 BUILD_DEPENDS+= bison:${PORTSDIR}/devel/bison .if ${OSVERSION} >= 500030 PERL_VERSION?= 5.6.1 .if ${OSVERSION} < 500016 PTHREAD_CFLAGS= -D_THREAD_SAFE PTHREAD_LIBS= "-pthread" I could go on. The .include of bsd.own.mk cannot be wrapped like this? Do we move all this to share/mk/bsd.port.mk? > That sounds reasonable at a glance, but wait! How it is supposed to work > if ports/Mk/bsd.port.mk still depends on bsd.own.mk from src/share/mk? I guess you are right. Presumable this wasn't seen as too bad as typically bsd.own.mk is a very slow changing file. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message