From owner-freebsd-ports@FreeBSD.ORG Sat Aug 26 06:12:58 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 77CEB16A4E0 for ; Sat, 26 Aug 2006 06:12:58 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CA4243D45 for ; Sat, 26 Aug 2006 06:12:57 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by py-out-1112.google.com with SMTP id o67so1421634pye for ; Fri, 25 Aug 2006 23:12:57 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=lkKpVpfi8TbIxHKuDJxKgSMLyUgEa0M5g41D3Rv1ySnjWXppEfoaMa+8E5Rcx4w1sTBZQwnNrZfMEY7V9FAN/YjZyn09ZwjIO5a1Tvm+/K+yQ037zxevdee1JrlWP+5ItWPi50ELZG0u/UKTLGsheQeQ2lVTuzsZT61yOQW7uUg= Received: by 10.35.61.14 with SMTP id o14mr6809303pyk; Fri, 25 Aug 2006 23:12:57 -0700 (PDT) Received: by 10.35.105.10 with HTTP; Fri, 25 Aug 2006 23:12:57 -0700 (PDT) Message-ID: Date: Sat, 26 Aug 2006 10:12:57 +0400 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "Stanislav Sedov" In-Reply-To: <20060824225401.16cf1c19@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060824225401.16cf1c19@localhost> X-Google-Sender-Auth: 7f49b0d03cc9eb76 Cc: othermark , freebsd-ports@freebsd.org Subject: Re: Question on respecting PREFIX, LOCALBASE, SITE_PERL, etc... 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: Sat, 26 Aug 2006 06:12:58 -0000 On 8/24/06, Stanislav Sedov wrote: > On Thu, 24 Aug 2006 10:19:40 -0700 > othermark mentioned: > > > I have a port that I'm working on that, in addition to the binaries it > > generates, it generates the following: > > > > - C api, includes, libraries > > - perl api > > - tcl api > > - python api > > > > it also has java and rexx extensions, but I'm not going to add those until > > later. > > > > My question revolves around respecting both PREFIX and stuff like TCL_LIBDIR > > and SITE_PERL. I want the port to be heir(7) compliant, but I'm also > > patching the install to put perl, tcl, and python modules in the > > TCL/PERL/PYTHON respective site library repositories. > > > > So when the operator uses make PREFIX=/somedir do I rigorously plop > > everthing under PREFIX and patch the TCL/PERL/PYTHON destinations to match, > > or do I go ahead and plop those in the SITE_PERL, PYTHON_SITELIBDIR, etc > > actual locations on the box? > > > > Doing everything under PREFIX makes it easier to properly form the pkg-list, > > but that can be coded around to. > > > > You certainly should respect PREFIX, but now PERL/ruby/tcl etc > frameworks don't do this well. So don't think about this now and > install everything under SITE_PERL etc. Somebody should take a > look on these frameworks and fix them, then your port will be > PREFIX clean without your interaction. It's a framework problem, > not your port's. AFAIK, only ocaml framework handles it properly now. Please, man :-) Look this up: PYTHONPREFIX_SITELIBDIR SITE_PERL_REL As for Tcl, you can install it into ${PREFIX}/{include,lib}/${PORTNAME}