From owner-freebsd-questions Tue Jun 25 3:53:49 2002 Delivered-To: freebsd-questions@freebsd.org Received: from martin.kleinerdrache.org (static62-99-146-055.adsl.inode.at [62.99.146.55]) by hub.freebsd.org (Postfix) with SMTP id 529CD37B405 for ; Tue, 25 Jun 2002 03:53:19 -0700 (PDT) Received: (qmail 12092 invoked from network); 25 Jun 2002 10:55:44 -0000 Received: from unknown (HELO localhost.kdrache.org) (127.0.0.1) by loopback with SMTP; 25 Jun 2002 10:55:44 -0000 Subject: Re: Porting Tips From: Martin Klaffenboeck To: Gavin Kenny Cc: questions@freebsd.org In-Reply-To: <20020625104100.72418.qmail@web20003.mail.yahoo.com> References: <20020625104100.72418.qmail@web20003.mail.yahoo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.7 Date: 25 Jun 2002 12:55:44 +0200 Message-Id: <1025002544.677.25.camel@martin.kleinerdrache.org> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Am Di, 2002-06-25 um 12.41 schrieb Gavin Kenny: > --- Martin Klaffenboeck > wrote: > Am Di, 2002-06-25 um 11.23 schrieb Gavin > Kenny: > > > Hi Guys, > > > > > > I'm going to have a go at porting the VideoLan > > Server > > > to FreeBSD. It was written for Linux and there is > > a > > > Darwin (Mac OS) port, so I'm kinda hoping it > > shouldn't > > > be too hard (famous last words). > > > > > > I never written anything for FreeBSD, so what > > should I > > > look out for? Any good pointers, tips, different > > > naming conventions for libraries etc or better > > still > > > HOW-TO's, would be really useful. > > > > Do you know the Porters Handbook? > > > > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/ > > > > Martin > > > > -- > > I have had a look at it but it seems more concerned in > building a FreeBSD Port (a fantastic invention by the > way ;-) rather than how to take a piece of software > that was written for Linux (or any other operating > system) and getting it to compile and run on FreeBSD. > Am I being naive? Oh, sorry, ... Ok, there is not really a simple way to port software to other platforms. If your programm is written in a way to port for multiplatforms, you may just have to find any config.h file or edit the Makefile. That should work for you. In that case a Programm is really simply written for linux, you have to take the whole programm und try and try to make it compile and run under freebsd. Than do the patches... Sometimes it's a really hard work... Martin -- Virtuelle Jugendarbeit auf http://create.kleinerdrache.org ... bald kommt ein neues Layout ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message