From owner-freebsd-ports Sun Aug 18 12:10:18 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 D543337B400 for ; Sun, 18 Aug 2002 12:10:15 -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 41EFE43E4A for ; Sun, 18 Aug 2002 12:10:15 -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 17gVRF-0003ZH-0U; Sun, 18 Aug 2002 20:10:14 +0100 Message-ID: Date: Sun, 18 Aug 2002 20:09:07 +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> In-Reply-To: <8765y8mejq.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: > >> I'm trying to build a new port. Building from source seems to have gone >> well enough, I made a Makefile and assorted extras to help the build but >> when I tested it the thing died here: >> >> Installing allegro-config to /var/tmp/allegro/bin >> /usr/libexec/elf/strip: /var/tmp/allegro/bin/allegro-config: File format >> not recognized >[...] >> Now allegro-config is a shell script which explains the error. > >Is allegro-config one of your assorted extras? (I guess so; if your port >is Allegro Common Lisp, it doesn't contain such a script AFAIK) Nope, you're giving me far too much credit, I'm starting out with something easy :-) The Allegro I'm trying to get working is a games library (I figured a good starting place for learning how to build ports would be to move one of the few games I play into ports, and it depends on Allegro). http://www.talula.demon.co.uk/allegro/ All I've added has been a little shell script that makes the Makefile usable by the ports system, seriously low grade tinkering. 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. That kind of works, at least allegro-config is getting installed without a problem. The problem I'm having now is that all the binaries get ignored. I've tried including an ${INSTALL_PROGRAM} with wildcards to try and install the binaries but that throws errors but I can't see an obvious install technique other than declaring there are binaries. Naming all the binaries individually feels like a bit of a kludge and I'm sure there must be a better way to do this. do-install: ${INSTALL_SCRIPT} ${WRKSRC}/allegro-config ${PREFIX}/bin Any suggestions on how to fix that properly? Kevin, worried about just what he missed in bsd.port.mk this time -- kevin@caomhin.demon.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message