From owner-freebsd-ports@FreeBSD.ORG Tue Aug 7 05:37:34 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E9AA106566B for ; Tue, 7 Aug 2012 05:37:34 +0000 (UTC) (envelope-from bsd-src@helfman.org) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id DEC448FC0A for ; Tue, 7 Aug 2012 05:37:33 +0000 (UTC) Received: by weyx56 with SMTP id x56so3072944wey.13 for ; Mon, 06 Aug 2012 22:37:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=Cd5V8toIph9jovR6/AP+NawyqRGRCYGSEkHV1aeaalw=; b=B7/7XOtUKyLq6LDwYsNHhPebNjhNV7idR/iyPvDzvLpJcVO1Dii4AW1zeCiSjc+72n YXfz07+u7qylf4JEIXaOlZCEA8kp1BbSsQSuWGc2aDODSqGKcYJkFme1YHr+nO7r4AoL O2n2IIDtOz5Zst4s3D25ww0X0WweGbhV24UkAv+QK69RCBNfKfwXwSzaRVvwIO7YDMqC 5zfcYurJHUd1gdBpjIgNkuLQo2G7flkhRCyv9dQF3AAMFC8175S6l6jfongfEVpA26oq YWqigLhL3ZeMLjOp3qRlI0IeLxQAflc972hq5GgJ4AJIS8AJbGUguTLDG8puhFmy08dx u+Jg== MIME-Version: 1.0 Received: by 10.180.76.135 with SMTP id k7mr24363851wiw.7.1344317846635; Mon, 06 Aug 2012 22:37:26 -0700 (PDT) Sender: bsd-src@helfman.org Received: by 10.194.16.36 with HTTP; Mon, 6 Aug 2012 22:37:26 -0700 (PDT) In-Reply-To: References: Date: Mon, 6 Aug 2012 22:37:26 -0700 X-Google-Sender-Auth: AgqvCPFn-Gqq09KNe4vCEVIiZng Message-ID: From: Jason Helfman To: HU Dong X-Gm-Message-State: ALoCoQmCc6RtwE462o9RWTD3qpjgQFqzBoEnbYYNKVNKE9p4oJpCPxjaxWiHgHDskWwfsaKwGGLy 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 05:37:34 -0000 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