From owner-freebsd-gnome Thu Feb 13 20:31: 5 2003 Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0395837B401 for ; Thu, 13 Feb 2003 20:31:04 -0800 (PST) Received: from asclepius.uwa.edu.au (asclepius.uwa.edu.au [130.95.128.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12B0C43F3F for ; Thu, 13 Feb 2003 20:31:03 -0800 (PST) (envelope-from riggs@rrr.de) Received: from 127.0.0.1 (localhost [127.0.0.1]) by dummy.domain.name (Postfix) with SMTP id 4780A2F8A39 for ; Fri, 14 Feb 2003 12:31:01 +0800 (WST) Received: from rrr.de (obelvisitor1.ee.uwa.edu.au [130.95.136.101]) by asclepius.uwa.edu.au (Postfix) with ESMTP id 63CE42F8914 for ; Fri, 14 Feb 2003 12:31:00 +0800 (WST) Message-ID: <3E4C7104.7080606@rrr.de> Date: Fri, 14 Feb 2003 12:31:00 +0800 From: "Thomas E. Zander" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: de-de, de, en-us, en-au MIME-Version: 1.0 To: freebsd-gnome@freebsd.org Subject: Re: Here's Lumiere 0.4 ports.. References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-gnome@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Moyn. Mezz bsdforums.org schrieb: >>>======================== >>>.if !exists(/usr/local/bin/mplayer) >>>BROKEN= "MPlayer doesn\'t exist!" >>>BROKEN+= "You have to install MPlayer from /usr/ports/multimedia/mplayer >>>first." >>>.endif >>>======================== >> >>a) You should never use fully-qualified paths like that. Instead, use >>the ${LOCALBASE} or ${X11BASE} macros. > > > I tried did that last night and recently, it doesn't work very well same as > what full path does. I am not sure exactly why it doesn't work. I did > "${LOCALBASE}/bin/mplayer", it will keep say it's broke when I already have > mplayer installed. Do I need to put something speical inside the exists()? Actually ${LOCALBASE}/bin/mplayer should do it within the exists brackets. What does your ports system think localbase is for you? (cd your-port-dir && make -V LOCALBASE) >>b) Why don't you add a RUN_DEPENDS on mplayer instead of doing the >>BROKEN thing at all? > > > Because, MPlayer has a lot of options to install it. So, I thought it would > be good idea to force users to go to the ports and install by theirselves > with extra options. Am I making any sense? I think I can understand what you're trying to do here. You want the people to install mplayer with their favourite options befor building lumiere?! One thing is fully clear: You should use RUN_DEPENDS whether you want to or not, because this program is only a frontend and completely useless without the corresponding backend application. If you want the user to install mplayer before your port you could use a pre-everything:: target and throw a message that explains the situation to the user. A dialog would be a solution, too, although I'd personally prefer to get around without them. Riggs -- My boss forces me to use this OS. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-gnome" in the body of the message