Sdl

From Genunix

sdl - A library that gives portable low-level access for multimedia applications

Contents

Rating

4 points (out of 4)

Rating scheme: 4 points means the source builds seamlessly on Solaris Express (OpenSolaris). Points are subtracted as follows:

  • Minus 1 if the source doesn't come with an automated way to localize the build (e.g. configure)
  • Minus 1 if the source won't compile with Sun's cc (this usually means the code is gcc-centric)
  • Minus 1 if a minor patch is required, or
  • Minus 2 if a major patch(es) is required

How to build SDL-1.2.11 on Solaris Express

Build Environment (platform, compiler, tools, PATH, ld)

Configure and compile steps

/usr/bin/gzip -dc SDL-1.2.11.tar.gz | /usr/sfw/bin/gtar xf -

cd SDL-1.2.11

export CFLAGS="-i -xO4 -xspace -xstrconst -xpentium -mr -I/usr/sfw/include -DANSICPP"
export RPM_OPT_FLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
export ACLOCAL_FLAGS="-I /usr/share/aclocal"
export PERL5LIB=/usr/perl5/site_perl/5.6.1/sun4-solaris-64int
export CPPFLAGS="-I/usr/sfw/include"
export LDFLAGS="-L/usr/sfw/lib -R/usr/sfw/lib"
export MSGFMT="/usr/bin/msgfmt"

./configure --prefix=/usr                 \
            --mandir=/usr/share/man                 \
            --libdir=/usr/lib                 \
            --libexecdir=/usr/lib         \
            --sysconfdir=/etc
make 

Other configure options

output of ./configure --help

Directory paths that sdl installs to

bin
include/SDL
lib
lib/pkgconfig
share/aclocal
share/man/man3

Other 3rd party software sdl requires

(none)