From owner-freebsd-ports Thu Sep 7 13:50:40 2000 Delivered-To: freebsd-ports@freebsd.org Received: from smtp10.atl.mindspring.net (smtp10.atl.mindspring.net [207.69.200.246]) by hub.freebsd.org (Postfix) with ESMTP id E4D2637B423; Thu, 7 Sep 2000 13:50:36 -0700 (PDT) Received: from silvia.hip.berkeley.edu (sji-ca41-227.ix.netcom.com [209.111.208.227]) by smtp10.atl.mindspring.net (8.9.3/8.8.5) with ESMTP id QAA08856; Thu, 7 Sep 2000 16:48:29 -0400 (EDT) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.11.0/8.11.0) id e87Kkxi73423; Thu, 7 Sep 2000 13:46:59 -0700 (PDT) (envelope-from asami@cs.berkeley.edu) Date: Thu, 7 Sep 2000 13:46:59 -0700 (PDT) Message-Id: <200009072046.e87Kkxi73423@silvia.hip.berkeley.edu> X-Authentication-Warning: silvia.hip.berkeley.edu: asami set sender to asami@cs.berkeley.edu using -f To: marcel@cup.hp.com, obrien@FreeBSD.ORG, knu@idaemons.org, ports@FreeBSD.ORG, marcel@FreeBSD.ORG In-reply-to: (asami@FreeBSD.ORG) Subject: Re: USE_LINUX? From: asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami) References: <200006070819.BAA14744@silvia.hip.berkeley.edu> <86u2f5zy3g.wl@localhost.local.idaemons.org> <20000607101234.A80031@dragon.nuxi.com> <39B5C330.6C1A9CE4@cup.hp.com> <39B5E487.53669CAD@cup.hp.com> <39B6B5D2.74219F2A@cup.hp.com> Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * From: asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami) * My question is, is there any port out there that uses anything from * linux_base in all stages up to the build stage, other than those that * use compilers from linux_devtools. If the answer is "none" or "only * very few", then we can take out the BUILD_DEPENDS. We need to close this. Assuming the answer to the above question is like I suggested above, I think the following will do. Satoshi === Index: /usr/ports/Mk/bsd.port.mk =================================================================== RCS file: /usr/cvs/ports/Mk/bsd.port.mk,v retrieving revision 1.348 diff -u -r1.348 bsd.port.mk --- /usr/ports/Mk/bsd.port.mk 2000/08/25 19:50:45 1.348 +++ /usr/ports/Mk/bsd.port.mk 2000/09/07 20:45:20 @@ -205,8 +205,10 @@ # # X11BASE - Where X11 ports install things (default: /usr/X11R6). # LOCALBASE - Where non-X11 ports install things (default: /usr/local). +# LINUXBASE - Where Linux ports install things (default: /compat/linux). # PREFIX - Where *this* port installs its files (default: ${X11BASE} -# if USE_X_PREFIX is set, otherwise ${LOCALBASE}). +# if USE_X_PREFIX is set, ${LINUXBASE} if USE_LINUX_PREFIX +# is set, otherwise ${LOCALBASE}). # MASTERDIR - Where the port finds patches, package files, etc. Define # this is you have two or more ports that share most of the # files (default: ${.CURDIR}). @@ -548,6 +568,7 @@ .endif LOCALBASE?= ${DESTDIR}/usr/local X11BASE?= ${DESTDIR}/usr/X11R6 +LINUXBASE?= ${DESTDIR}/compat/linux DISTDIR?= ${PORTSDIR}/distfiles _DISTDIR?= ${DISTDIR}/${DIST_SUBDIR} .if defined(USE_BZIP2) @@ -606,8 +627,14 @@ .if defined(USE_X_PREFIX) USE_XLIB= yes .endif +.if defined(USE_LINUX_PREFIX) +USE_LINUX= yes +.endif .if defined(USE_X_PREFIX) PREFIX?= ${X11BASE} +.elif defined(USE_LINUX_PREFIX) +PREFIX?= ${LINUXBASE} +NO_MTREE= yes .else PREFIX?= ${LOCALBASE} .endif @@ -751,6 +784,10 @@ MAKE_ENV+= CC=${CC} CXX=${CXX} .endif +.if defined(USE_LINUX) +RUN_DEPENDS= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base +.endif + .if defined(REQUIRES_MOTIF) USE_XPM= yes .if defined(PARALLEL_PACKAGE_BUILD) === To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message