Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 2003 14:48:30 +0200
From:      Peter Pentchev <roam@ringlet.net>
To:        doc@FreeBSD.org
Cc:        ports@FreeBSD.org
Subject:   [CFR] CONFIGURE_TARGET documentation
Message-ID:  <20030224124830.GA30933@straylight.oblivion.bg>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hi,

The CONFIGURE_TARGET=--build-blah problem comes up on -ports every now
and then; does it not warrant the attached patch, which adds it to
chapter '4.9 Building mechanisms' of the Porter's Handbook?

Any comments on both wording and markup are welcome (no last minute
changes this time, Giorgos ;).

G'luck,
Peter

-- 
Peter Pentchev	roam@ringlet.net    roam@sbnd.net    roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
Nostalgia ain't what it used to be.

Index: doc/en_US.ISO8859-1/books/porters-handbook/book.sgml
===================================================================
RCS file: /home/ncvs/doc/en_US.ISO8859-1/books/porters-handbook/book.sgml,v
retrieving revision 1.281
diff -u -r1.281 book.sgml
--- doc/en_US.ISO8859-1/books/porters-handbook/book.sgml	24 Feb 2003 01:04:42 -0000	1.281
+++ doc/en_US.ISO8859-1/books/porters-handbook/book.sgml	24 Feb 2003 12:31:25 -0000
@@ -3035,6 +3035,23 @@
           <command>autoconf</command> to be run before
           <command>configure</command>.</para>
 
+	<note>
+	  <para>If your package uses GNU <command>configure</command>, and
+	    the resulting executable file has a <quote>strange</quote> name
+	    like
+	    <filename>i386-portbld-freebsd4.7-</filename><replaceable>appname</replaceable>,
+	    you will need to additionally override the
+	    <makevar>CONFIGURE_TARGET</makevar> variable to specify the
+	    target in the way required by scriptcs generated by recent
+	    versions of <command>autoconf</command>.  Add the following line
+	    immediately after the <literal>GNU_CONFIGURE=yes</literal> line
+	    in your <filename>Makefile</filename>:</para>
+
+	  <para>
+	    <literal>CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}</literal>
+	    </para>
+	</note>
+
         <para>If your package is an X application that creates
           <filename>Makefile</filename>s from <filename>Imakefile</filename>s
           using <command>imake</command>, then set

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+WhSe7Ri2jRYZRVMRAkdcAJ9qkJK5ve1a6CXXCePt8xcrrz2XdgCgvBiv
QHX9SJx34hpQStZyb7zuKKg=
=xam+
-----END PGP SIGNATURE-----
home | help

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