summaryrefslogtreecommitdiffstats
path: root/contrib/Jamfile
diff options
context:
space:
mode:
authoreddyg <[email protected]>2008-06-19 04:23:52 +0000
committereddyg <[email protected]>2008-06-19 04:23:52 +0000
commit5bf415fc8aa22376f5f81cf2b9c315bc4751adfe (patch)
treee0f3a27393329c54abfe57777db658d3799da6ff /contrib/Jamfile
parent5cdb0e7948c4170af40742190d5778aeb3ef58ac (diff)
Reintroduce Solaris support. Fully tested on everything - apart from Windows, which really shouldn't be affected. Note that I've disabled troublesome components in ffmpeg that didn't work with Solaris. And disabled X support in libmpeg2 for all platforms - 'cos it shouldn't have been there.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1531 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'contrib/Jamfile')
-rw-r--r--contrib/Jamfile16
1 files changed, 13 insertions, 3 deletions
diff --git a/contrib/Jamfile b/contrib/Jamfile
index 5d77079f6..9e226769a 100644
--- a/contrib/Jamfile
+++ b/contrib/Jamfile
@@ -85,8 +85,18 @@ rule LibAvCodec
else if $(OS) = SOLARIS
{
FFMPEG_PATCH += " && $(PATCH) -p1 < ../patch-ffmpeg-solaris.patch " ;
- FFMPEG_OPTIONS = " --disable-mmx --extra-cflags=-fpic " ;
+ }
+
+ if $(OS) = SOLARIS
+ {
+ #
+ # Not all of ffmpeg works on Solaris - disable the bits that
+ # don't. When we get new versions of FFMPEG we can try enabling
+ # then again.
+ #
+ FFMPEG_EXTRA_OPTIONS = "--disable-vis --disable-demuxer=mpc8 --disable-vhook" ;
}
+
Depends $(<) : $(>) ;
Depends lib : $(<) ;
}
@@ -101,7 +111,7 @@ actions LibAvCodec
--enable-libfaad --disable-ffmpeg --disable-ffserver \
--disable-muxers --enable-muxer=ipod --disable-bsfs \
--extra-cflags="-I$CONTRIB/include" \
- --extra-ldflags="-L$CONTRIB/lib" &&
+ --extra-ldflags="-L$CONTRIB/lib" $(FFMPEG_EXTRA_OPTIONS) &&
$(MAKE) && $(MAKE) install &&
$(STRIP) $CONTRIB/lib/libavcodec.a
}
@@ -293,7 +303,7 @@ actions LibMpeg2
cd `dirname $(>)` && CONTRIB=`pwd` &&
rm -rf mpeg2dec && (gzip -dc mpeg2dec.tar.gz | tar xf - ) &&
cd mpeg2dec && $(PATCH) -p1 < ../patch-libmpeg2.patch &&
- ./configure --prefix=$CONTRIB --cache-file=$CONTRIB/config.cache --disable-shared --disable-sdl &&
+ ./configure --prefix=$CONTRIB --cache-file=$CONTRIB/config.cache --disable-shared --disable-sdl --without-x &&
$(MAKE) && $(MAKE) install &&
$(STRIP) $CONTRIB/lib/libmpeg2.a
}