From owner-freebsd-questions@FreeBSD.ORG Thu Nov 18 00:58:09 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3BBC1065675 for ; Thu, 18 Nov 2010 00:58:09 +0000 (UTC) (envelope-from ohartman@mail.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 8C7F48FC1B for ; Thu, 18 Nov 2010 00:58:09 +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 <1PIspE-0006jd-Du>; Thu, 18 Nov 2010 01:58:08 +0100 Received: from e178032237.adsl.alicedsl.de ([85.178.32.237] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1PIspE-0004Iu-7g>; Thu, 18 Nov 2010 01:58:08 +0100 Message-ID: <4CE47A1F.804@mail.zedat.fu-berlin.de> Date: Thu, 18 Nov 2010 01:58:07 +0100 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: Rob Farmer References: <4CE416D0.2020105@zedat.fu-berlin.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: 85.178.32.237 Cc: "O. Hartmann" , freebsd-questions@freebsd.org Subject: Re: porting software to FreeBSD, what to do if Makefile lacks? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2010 00:58:09 -0000 On 11/17/10 22:01, Rob Farmer wrote: > 2010/11/17 O. Hartmann: >> Hello. >> >> I try to create a port of a software which does not have a Makefile and is >> build via a propriate csh script. Installation is done temporarely into some >> lib's and exe's subfolder withing the source folder, so I need to tell the >> top level Makefile of the port to use a specific build script instead >> implying having Makefile and a home-brewn install script, which takes the >> binaries and libs out of the temporary folders and install them at the >> proper places within the FreeBSD's tree. How can I perform these two tasks? > > You want to override the do-build target, something like: > > do-build: > ${CSH} ${WRKSRC}/build-script.csh > > > For the install, do the same with the do-install target. Unless your > install script is particularly long or complicated, it will probably > be best to put it right into the port's Makefile. Then you can use the > INSTALL macros to ensure permissions are set correctly, binaries are > stripped if the user doesn't specify WITH_DEBUG, etc. > > If you haven't already, check out the Porter's Handbook - it will > familiarize you with important guidelines and covers a lot of common > problems: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/ > Thanks. I got it. But it seems that my first porting task run into some difficulties for the advanced porters, since there is no autotool environment. By the way, the global environment variable ${CSH} seems to be noneexistent, instead ${SH} exists. Regards, Oliver