This is a bit off-topic, but the same basic method works pretty well
under BSD, and it's useful when you don't have exactly the port you need
or the exact version of a library that a port expects.

>> On Tue, 9 Jun 2009 12:06:04 -0500, 
>> "Gary Gatten" <ggat...@waddell.com> said:

G> Yep, one reason I thought OT would be best is I'm trying to move this
G> app to a Solaris 10 x86 system (don't ask).

   Here's what I did under Solaris-10.  First, build the stuff that GNU
   autotools needs, like GNU m4:

      me% wget http://ftp.gnu.org/gnu/m4/m4-1.4.13.tar.gz
      me% gtar xzf m4-1.4.13.tar.gz
      me% cd m4-1.4.13
      me% CC=gcc CFLAGS=-O2 ./configure --mandir=/usr/local/man \
          --program-prefix=g
      me% make
      me% make check
      root# make install
      me% make distclean

      me% gm4 --version
      m4 (GNU M4) 1.4.13
      Copyright (C) 2009 Free Software Foundation, Inc.

   The program-prefix part installs it as "gm4", just in case your vendor
   version of m4 is unique in some way.

      me% wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.63.tar.gz
      me% gtar xzf autoconf-2.63.tar.gz
      me% cd autoconf-2.63
      me% CC=gcc CFLAGS=-O2 EMACS=no ./configure --mandir=/usr/local/man
      me% make
      me% make check
      root# make install
      me% make distclean

   You'll also need automake to get a recent version of "aclocal":

      me% wget http://ftp.gnu.org/gnu/automake/automake-1.11.tar.gz
      me% gtar xzf automake-1.11.tar.gz
      me% cd automake-1.11
      me% CC=gcc CFLAGS=-O2 ./configure --mandir=/usr/local/man
      me% make
      me% make check
      root# make install
      me% make clean

   As far as recreating the build system for ntop, that's a snap after
   the auto-stuff is installed:

      me% wget http://downloads.sourceforge.net/ntop/ntop-3.3.10.tar.gz
      me% gtar xzf ntop-3.3.10.tar.gz
      me% cd ntop-3.3.10
      me% ./autogen.sh

   However, "ntop" depends on "rrdtool" being installed, and that drags in
   everything on Earth:

      me% wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.8.tar.gz
      me% gtar xzf rrdtool-1.3.8.tar.gz
      me% cd rrdtool-1.3.8

      me% cat /tmp/doconfig
      #!/bin/sh
      CC=gcc
      CFLAGS=-O2
      LDFLAGS="-L/opt/sfw/lib"
      CPPFLAGS="-I/opt/sfw/include"
      LIBTOOL=/opt/sfw/bin/libtool
      export CC CFLAGS LDFLAGS CPPFLAGS LIBTOOL
      ./configure --disable-nls --disable-ruby --disable-libintl
      exit 0

      me% sh /tmp/doconfig
      checking build system type... i386-pc-solaris2.10
      ...
      I could not find a working copy of cairo-png
      I could not find a working copy of cairo-svg
      I could not find a working copy of cairo-pdf
      I could not find a working copy of cairo-ps
      I could not find a working copy of pangocairo
      configure: error: Please fix the library issues listed and try again.

   At this point, I was in dependency hell.  I tried messing with the load
   and include compiler flags to get to the versions under /opt/sfw, but
   I had no luck.  There's probably some really easy way to build this,
   or I could just build the required libraries, but I didn't have time
   to mess with it.

-- 
Karl Vogel                      I don't speak for the USAF or my company
A host of nameservers           --collective nouns, June 1999 LINGUIST
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to