From owner-freebsd-ports@FreeBSD.ORG Thu Jun 25 15:16:59 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from straylight.ringlet.net (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with SMTP id 3E5D11065674 for ; Thu, 25 Jun 2009 15:16:57 +0000 (UTC) (envelope-from roam@ringlet.net) Received: (qmail 71957 invoked by uid 1000); 25 Jun 2009 15:16:56 -0000 Date: Thu, 25 Jun 2009 18:16:56 +0300 From: Peter Pentchev To: Kirk Strauser Message-ID: <20090625151656.GE1335@straylight.m.ringlet.net> References: <200906250940.42206.kirk@strauser.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tMbDGjvJuJijemkf" Content-Disposition: inline In-Reply-To: <200906250940.42206.kirk@strauser.com> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: freebsd-ports@freebsd.org Subject: Re: Honoring NOPORTDOCS with GNU_CONFIGURE? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2009 15:17:00 -0000 --tMbDGjvJuJijemkf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 25, 2009 at 09:40:42AM -0500, Kirk Strauser wrote: > Is there a standard way to write ports which use GNU_CONFIGURE to follow= =20 > NOPORTDOCS? Ideally it'd be something as simple as setting --docdir=3DNU= LL or=20 > similar, and even more ideally by having bsd.port.mk taking care of that.= :-) Not really. What I usually do is have a post-patch: target that does a REINPLACE_CMD on all the Makefile.in's found in the port's directpry and just removes the "install-doc" target; something like: =2Eifdef(NOPORTDOCS) @${REINPLACE_CMD} -E -e 's/ install-docDATA/ /; s/^(SUBDIRS.+)doc/\1/' \ ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -E -e 's/([^n])install-examplesDATA/\1/' \ ${WRKSRC}/tools/Makefile.in =2Eendif This is taken from the security/stunnel port; you may need to fit it for your specific port's needs, or, if there are many Makefile.in files, use ${FIND} | ${XARGS} to process them all at once. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@space.bg 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 Hey, out there - is it *you* reading me, or is it someone else? --tMbDGjvJuJijemkf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkpDlOgACgkQ7Ri2jRYZRVOFOQCeLfDUojUO7aw+FtqByfB+pWaE nkUAoIrRqZMko/V1PmlHnPkaawNPezS6 =XxJx -----END PGP SIGNATURE----- --tMbDGjvJuJijemkf--