From owner-freebsd-ports@FreeBSD.ORG Tue Aug 7 03:24:20 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 6A52E1065672 for ; Tue, 7 Aug 2012 03:24:20 +0000 (UTC) (envelope-from dennylin93@hs.ntnu.edu.tw) Received: from mail.hs.ntnu.edu.tw (mail.hs.ntnu.edu.tw [140.131.149.3]) by mx1.freebsd.org (Postfix) with ESMTP id 2AB158FC08 for ; Tue, 7 Aug 2012 03:24:19 +0000 (UTC) Received: by mail.hs.ntnu.edu.tw (Postfix, from userid 58) id DA4A71C646E; Tue, 7 Aug 2012 11:24:12 +0800 (CST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.hs.ntnu.edu.tw X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 Received: from mail.hs.ntnu.edu.tw (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.hs.ntnu.edu.tw (Postfix) with ESMTPS id 4B78E1C645C; Tue, 7 Aug 2012 11:24:12 +0800 (CST) Received: (from dennylin93@localhost) by mail.hs.ntnu.edu.tw (8.14.5/8.14.5/Submit) id q773OBxJ036254; Tue, 7 Aug 2012 11:24:11 +0800 (CST) (envelope-from dennylin93@hs.ntnu.edu.tw) X-Authentication-Warning: mail.hs.ntnu.edu.tw: dennylin93 set sender to dennylin93@hs.ntnu.edu.tw using -f Date: Tue, 7 Aug 2012 11:24:11 +0800 From: Denny Lin To: HU Dong Message-ID: <20120807032411.GH97908@mail.hs.ntnu.edu.tw> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-ports@freebsd.org Subject: Re: How to determine Python.h location in 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 03:24:20 -0000 Hi, On Tue, Aug 07, 2012 at 10:21:13AM +0800, HU Dong wrote: > Hi, all! Could anybody tell me how to detect Python.h location > automatically in port Makefile, or how to add its path to gmake's arguments > in a reliable way? There's a list of variables in bsd.python.mk. This should work: ${PYTHON_INCLUDEDIR}/Python.h -- Denny Lin