Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jun 2000 01:19:47 -0700 (PDT)
From:      asami@freebsd.org (Satoshi Asami)
To:        ports@freebsd.org
Subject:   USE_LINUX?
Message-ID:  <200006070819.BAA14744@silvia.hip.berkeley.edu>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006070819.BAA14744>