From owner-freebsd-ports@FreeBSD.ORG Fri Nov 19 14:03:58 2010 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 42087106567A for ; Fri, 19 Nov 2010 14:03:58 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id B4F318FC1B for ; Fri, 19 Nov 2010 14:03:57 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1PJRZE-0006JQ-I5>; Fri, 19 Nov 2010 15:03:56 +0100 Received: from telesto.geoinf.fu-berlin.de ([130.133.86.198]) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1PJRZE-0003sj-Dp>; Fri, 19 Nov 2010 15:03:56 +0100 Message-ID: <4CE683D1.1020300@zedat.fu-berlin.de> Date: Fri, 19 Nov 2010 15:04:01 +0100 From: "O. Hartmann" Organization: Freie =?ISO-8859-1?Q?Universit=E4t_Berlin?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Thunderbird/3.1.6 MIME-Version: 1.0 To: Koop Mast References: <4CE66051.7000600@zedat.fu-berlin.de> <20101119134636.2c5f44cc@headache.rainbow-runner.nl> In-Reply-To: <20101119134636.2c5f44cc@headache.rainbow-runner.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: 130.133.86.198 Cc: freebsd-ports@freebsd.org Subject: Re: Renaming a shared library in the port-framework to match FreeBSD naming schemes? 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: Fri, 19 Nov 2010 14:03:58 -0000 On 11/19/10 13:46, Koop Mast wrote: > On Fri, 19 Nov 2010 12:32:33 +0100 > "O. Hartmann" wrote: > >> Hello. >> Trying to do my first port and run into trouble. >> The software package (Xerces-c 3.1.1) comes with a full autotoll >> environment and so far building and installing works. >> >> But the libarary name is "libxerces-c-3.1.so" and I need to change this >> to respect the FreeBSD nameing schemes to "libxerces-c.so.31". I'm >> looking for a way avoiding some "post-install:" stuff. > > There isn't any problem with the libxerces-c-3.1.so name. > From http://www.freebsd.org/doc/en/books/porters-handbook/special.html > Try to keep shared library version numbers in the libfoo.so.0 format. > Our runtime linker only cares for the major (first) number. Well, this is the problem. The automated installation process installes libxerces-c-3.1.so. > >> Is it possible to manipulate the library name via some variables passed >> through the port-framework to the build-enviroment? > > There isn't. We leave the library name just like upstream/author wants it to be. We only hack the library version if needed. This implies having a post-install: target in the Makefile where I'm supposed to move libxerces-c-3.1.so libbxerces-c.so.31? > > -Koop > >> Well, I'm very new to porting and this may seem to be a very easy task >> for experienced porters, so please excuse possible bothering ... >> >> Thanks in advance, >> >> Oliver >> _______________________________________________ >> freebsd-ports@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-ports >> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >>