From owner-freebsd-ports Wed Jun 7 1:20:25 2000 Delivered-To: freebsd-ports@freebsd.org Received: from tisch.mail.mindspring.net (tisch.mail.mindspring.net [207.69.200.157]) by hub.freebsd.org (Postfix) with ESMTP id 486C937B80B for ; Wed, 7 Jun 2000 01:20:22 -0700 (PDT) (envelope-from asami@cs.berkeley.edu) Received: from silvia.hip.berkeley.edu (sji-ca41-94.ix.netcom.com [209.111.208.94]) by tisch.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id EAA10708 for ; Wed, 7 Jun 2000 04:20:14 -0400 (EDT) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.9.3/8.6.9) id BAA14744; Wed, 7 Jun 2000 01:19:47 -0700 (PDT) Date: Wed, 7 Jun 2000 01:19:47 -0700 (PDT) Message-Id: <200006070819.BAA14744@silvia.hip.berkeley.edu> X-Authentication-Warning: silvia.hip.berkeley.edu: asami set sender to asami@cs.berkeley.edu using -f To: ports@freebsd.org Subject: USE_LINUX? From: asami@freebsd.org (Satoshi Asami) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, With the number of Linux ports increasing in our tree, maybe it's time to add an mtree file for those ports. It can also be used to add the requisite depends, as in: === Index: bsd.port.mk =================================================================== RCS file: /usr/cvs/ports/Mk/bsd.port.mk,v retrieving revision 1.338 diff -u -r1.338 bsd.port.mk --- bsd.port.mk 2000/05/06 10:45:35 1.338 +++ bsd.port.mk 2000/06/07 08:15:59 @@ -398,8 +399,8 @@ # NO_MTREE - If set, will not invoke mtree from bsd.port.mk from # the "install" target. # MTREE_FILE - The name of the mtree file (default: /etc/mtree/BSD.x11.dist -# if USE_X_PREFIX is set, /etc/mtree/BSD.local.dist -# otherwise.) +# if USE_X_PREFIX is set, /etc/mtree/BSD.linux.dist if +# USE_LINUX is set, /etc/mtree/BSD.local.dist otherwise.) # PLIST - Name of the `packing list' file (default: ${PKGDIR}/PLIST). # Change this to ${WRKDIR}/PLIST or something if you # need to write to it. (It is not a good idea for a port @@ -734,6 +741,11 @@ MAKE_ENV+= CC=${CC} CXX=${CXX} .endif +.if defined(USE_LINUX) +BUILD_DEPENDS= /compat/linux/sbin/ldconfig:${PORTSDIR}/emulators/linux_base +RUN_DEPENDS= /compat/linux/lib/libc.so.6:${PORTSDIR}/emulators/linux_base +.endif + .if defined(REQUIRES_MOTIF) LIB_DEPENDS+= Xpm.4:${PORTSDIR}/graphics/xpm .if defined(PARALLEL_PACKAGE_BUILD) @@ -884,6 +896,8 @@ .if !defined(MTREE_FILE) .if defined(USE_X_PREFIX) MTREE_FILE= /etc/mtree/BSD.x11.dist +.elif defined(USE_LINUX) +MTREE_FILE= /etc/mtree/BSD.linux.dist .else MTREE_FILE= /etc/mtree/BSD.local.dist .endif === I'm not sure if the dependencies are appropriate, I just clipped those out of linux_glx and linux-flashplugin. What do you guys think? (Other than the obligatory comment that "BSD.linux.dist" is an oxymoron.) Satoshi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message