Date: Sun, 29 Oct 2000 17:36:37 +0900 From: "R. Imura" <imura@af.airnet.ne.jp> To: ports@freebsd.org Subject: Re: How about new variable LINUX_CROSS_BUILD to bsd.port.mk? Message-ID: <20001029173637L.imura@cs.titech.ac.jp> In-Reply-To: <20001012025514V.imura@cs.titech.ac.jp> References: <20001012025514V.imura@cs.titech.ac.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
It's so funny that a man who retired a few hours ago speaks something, :) I'll show one of the effective way of using this option. > How about this small patch? > > Index: bsd.port.mk > =================================================================== > RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v > retrieving revision 1.355 > diff -u -r1.355 bsd.port.mk > --- bsd.port.mk 2000/10/08 11:43:54 1.355 > +++ bsd.port.mk 2000/10/11 17:18:49 > @@ -621,6 +621,10 @@ > .else > PREFIX?= ${LOCALBASE} > .endif > +.if defined(LINUX_CROSS_BUILD) > +USE_LINUX= yes > +PREFIX?= ${LOCALBASE} > +.endif > > .if defined(USE_OPENSSL) > .if ${OSVERSION} >= 400014 > @@ -773,6 +777,13 @@ > > .if defined(USE_LINUX) > RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base > +.endif > + > +.if defined(LINUX_CROSS_BUILD) > +USE_GMAKE= yes > +GMAKE= ${LINUXBASE}/usr/bin/make > +BUILD_DEPENDS+= ${LINUXBASE}/usr/bin/cc:${PORTSDIR}/devel/linux_devtools > +CONFIGURE_ENV+= MAKE=${GMAKE} ${LINUXBASE}/bin/bash > .endif > > .if defined(REQUIRES_MOTIF) audio/gogo will work as multi threads mode very easily, it's a bit faster than native one. (devel/linuxthreads doesn't work with my environment) Index: Makefile =================================================================== RCS file: /home/ncvs/ports/audio/gogo/Makefile,v retrieving revision 1.22 diff -u -r1.22 Makefile --- Makefile 2000/07/20 10:41:37 1.22 +++ Makefile 2000/10/29 08:23:56 @@ -17,7 +17,6 @@ # More than version 0.98 BUILD_DEPENDS= nasm-0.98:${PORTSDIR}/devel/nasm -USE_GMAKE= yes ALL_TARGET= gogo RESTRICTED= Condition is not clear @@ -31,13 +30,14 @@ .if !defined(WITH_THREADS) @${ECHO_MSG} "set WITH_THREADS to compile with linuxthreads." @${ECHO_MSG} "It would increase performance in SMP environment." +USE_GMAKE= yes .else -MAKE_ENV+= "USE_MT=yes" -LIB_DEPENDS= lthread.2:${PORTSDIR}/devel/linuxthreads +MAKE_ENV= "USE_MT=yes" +LINUX_CROSS_BUILD= yes .endif do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/gogo ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/gogo ${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/contrib/cdda2mp3.bsd \ ${PREFIX}/bin/cdda2mp3.gogo .if !defined(NOPORTDOCS) - R. Imura 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?20001029173637L.imura>