Date: Thu, 7 Sep 2000 13:46:59 -0700 (PDT) From: asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami) To: marcel@cup.hp.com, obrien@FreeBSD.ORG, knu@idaemons.org, ports@FreeBSD.ORG, marcel@FreeBSD.ORG Subject: Re: USE_LINUX? Message-ID: <200009072046.e87Kkxi73423@silvia.hip.berkeley.edu> In-Reply-To: <vqc1yyxcei6.fsf@silvia.hip.berkeley.edu> (asami@FreeBSD.ORG) References: <200006070819.BAA14744@silvia.hip.berkeley.edu> <86u2f5zy3g.wl@localhost.local.idaemons.org> <vqczooxn561.fsf@silvia.hip.berkeley.edu> <20000607101234.A80031@dragon.nuxi.com> <vqcg0ne9spn.fsf@silvia.hip.berkeley.edu> <39B5C330.6C1A9CE4@cup.hp.com> <vqclmx6w0e5.fsf@bubble.hip.berkeley.edu> <39B5E487.53669CAD@cup.hp.com> <vqcwvgpl41s.fsf@silvia.hip.berkeley.edu> <39B6B5D2.74219F2A@cup.hp.com> <vqc1yyxcei6.fsf@silvia.hip.berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
* 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009072046.e87Kkxi73423>