From owner-freebsd-ports@FreeBSD.ORG Tue Aug 7 06:17:03 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C1222106564A; Tue, 7 Aug 2012 06:17:03 +0000 (UTC) (envelope-from itechbear@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 761A78FC14; Tue, 7 Aug 2012 06:17:03 +0000 (UTC) Received: by obbun3 with SMTP id un3so8970984obb.13 for ; Mon, 06 Aug 2012 23:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=EOupU5U9XRkTBh/WtZzOQ3g6SiQ494LG87f8eZ/ejVc=; b=Cj3rTouqHlSW5sMoMaa52oHk8l2tuv4rAevJeh0VN8a/CBw48aCWmNbId4nUxthjHo wf+AcQo03iFVv0WTZ8CziUfhpo6m+LCx17OgO/K2+bNzhDo9oynwVX3ruxWsBxp/qLyq KAeS/Q1RHcWzJVl0JVOBVVGCuUYzeeguL6rFSUg/VFxqRHalClCEI80RA0Zu1uH1QXjY bV77hAC3WhC5p8p+/xLBA+lk4vsxsEkZ1d0BW0fc98ltkczfia4mB/NYggFqXMD6A7qj gWYg+7DezUVH8fEP4dKijcWgGzHTKuWGyHDP+Exk3fjEmtUed24+M7RoLRpvrJ+GjgAt DUzg== MIME-Version: 1.0 Received: by 10.60.7.197 with SMTP id l5mr23112019oea.33.1344320222802; Mon, 06 Aug 2012 23:17:02 -0700 (PDT) Received: by 10.76.10.41 with HTTP; Mon, 6 Aug 2012 23:17:02 -0700 (PDT) In-Reply-To: References: Date: Tue, 7 Aug 2012 14:17:02 +0800 Message-ID: From: HU Dong To: Jason Helfman Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-ports@freebsd.org Subject: Re: How to change docdir in port Makefile? 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: Tue, 07 Aug 2012 06:17:03 -0000 I found that line in Makefile.in. Thank you! B.R. HU Dong On Tue, Aug 7, 2012 at 1:37 PM, Jason Helfman wrote: > On Mon, Aug 6, 2012 at 8:36 PM, HU Dong wrote: > >> Hi, all. I'm making a new port. It uses GNU configure to generate a >> GNU Makefile. But it set DOCSDIR to >> ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} instead >> of ${PREFIX}/share/doc/${PORTNAME}: >> >> *** >> docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION) >> *** >> >> I've tried post-patch, but it didn't help, cause post-patch phase is >> earlier than the time when GNU Makefile is generated. So how to modify the >> GNU Makefile to correct this problem? >> >> B.R. >> HU Dong >> >> > If it is generated from, I assume a Makefile.in, or similar file, try > patching that file. Then your change > should follow. I had to take this approach for deskutils/virt-manager > recently for NLS location > change. > > Hope this helps. > > -jgh > > -- > Jason Helfman | FreeBSD Committer > jgh@FreeBSD.org | http://people.freebsd.org/~jgh > >