From owner-freebsd-ports Sun Aug 18 13: 5:48 2002 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 A8E9537B400 for ; Sun, 18 Aug 2002 13:05:44 -0700 (PDT) Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DE1A43E75 for ; Sun, 18 Aug 2002 13:05:44 -0700 (PDT) (envelope-from kevin@caomhin.demon.co.uk) Received: from caomhin.demon.co.uk ([62.49.21.186]) by anchor-post-35.mail.demon.net with esmtp (Exim 3.36 #2) id 17gWIw-0002rb-0U; Sun, 18 Aug 2002 21:05:42 +0100 Message-ID: Date: Sun, 18 Aug 2002 21:04:26 +0100 To: Henrik Motakef Cc: ports@freebsd.org From: Kevin Golding Subject: Re: making a new port - make install wants to strip a shell script References: <6knqakBAw4X9EwwV@caomhin.demon.co.uk> <8765y8mejq.fsf@pokey.henrik-motakef.de> <87ptwgkl5k.fsf@pokey.henrik-motakef.de> In-Reply-To: <87ptwgkl5k.fsf@pokey.henrik-motakef.de> MIME-Version: 1.0 X-Mailer: Turnpike Integrated Version 5.01 U Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Someone, quite probably Henrik Motakef, once wrote: >Kevin Golding writes: >> All I've added has been a little shell script that makes the Makefile >> usable by the ports system, seriously low grade tinkering. > >Huh? I don't think I understand what you are doing here. While I'm finding my way around I hit a problem with the compile. It seems that within the ports system it defaults to assuming it will find a Makefile, but allegro produces a makefile. So I used the scripts directory and made a file post-configure like this: #!/bin/sh mv ${WRKSRC}/makefile ${WRKSRC}/Makefile Which means it doesn't die try to open a file that doesn't exist. My plan is that once I can get this thing working I'll go through and look at all these things and try to find a more elegant solution. >> allegro-config is a Bourne script that is part of the standard install, >> and by default it goes in bin. >> >> >If so, how do you install it? You should use ${INSTALL_SCRIPT}, not >> >${INSTALL_PROGRAM}, because the latter will try to strip the installed >> >program. > >I don't think you need this, or any do-install at all. I just had a >quick look at allegro, and it compiled and installed just fine out of >the box, including allegro-config. I agree, outside of ports I've had no trouble. I've thrown various configure options at it and I've not broken it before. My woes started when I started trying this inside ports. >Sorry if I completely misunderstand the problem, but - did you read >the Porter's Handbook?[1] It looks as if you do rather strange things, >and trying to learn building ports from bsd.port.mk would be an easy >way to get confused... I've jumped between the two. I read the quick section of the Porters Handbook and realised I needed the slow version. It also says to read bsd.port.mk alongside which I have. I guess I may have ended up spending too much time on the wrong one though. I've tried to do this as much as a normal port as possible. I made a directory in the relevant category and touched standard files to make it familiar. Then built the Makefile below which I figured should get it built (I figure I can work on things like pkg-plist and LIB_DEPENDS once I've worked out where I'm screwing up). >Maybe you could post your Makefile? # New ports collection makefile for: allegro # Date created: 17 August 2002 # Whom: Kevin Golding # # $FreeBSD$ # PORTNAME= allegro PORTVERSION= 4.0.2 CATEGORIES= games MASTER_SITES= http://ufoot.free.fr/archive/ MAINTAINER= kpg@caomhin.org GNU_CONFIGURE= yes USE_GMAKE= yes .include To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message