summaryrefslogtreecommitdiffstats
path: root/contrib/Jamfile
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-09-21 19:16:40 +0000
committersr55 <[email protected]>2008-09-21 19:16:40 +0000
commit41d09f012cff42a24eed2a72941fbba167f98924 (patch)
tree6a4d5973d4e09d26e76ead2d9de0c1055a3dff34 /contrib/Jamfile
parent93c1d51aeac30926091a3fc3d38a9849a5efdf7a (diff)
Cygwin:
- We compile libz but don't actually link it in on cygwin. This is fixed. - Added bzip2 lib which means we can get rid of another cygwin dll. These are cygwin only so have no affect on any other platform. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1740 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'contrib/Jamfile')
-rw-r--r--contrib/Jamfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/contrib/Jamfile b/contrib/Jamfile
index 9bd41485b..ecfe38299 100644
--- a/contrib/Jamfile
+++ b/contrib/Jamfile
@@ -476,3 +476,22 @@ if $(OS) = CYGWIN
Wget $(SUBDIR)/zlib.tar.gz : $(SUBDIR)/version_zlib.txt ;
Zlib $(SUBDIR)/lib/libz.a : $(SUBDIR)/zlib.tar.gz ;
}
+
+# bzip2
+if $(OS) = CYGWIN
+{
+ rule BZip2
+ {
+ Depends $(<) : $(>) ;
+ Depends lib : $(<) ;
+ }
+ actions BZip2
+ {
+ cd `dirname $(>)` && CONTRIB=`pwd` &&
+ rm -rf bzip2 && (gzip -dc bzip2.tar.gz | tar xf - ) &&
+ cd bzip2 && $(MAKE) && $(MAKE) install && cp libbz2.a $CONTRIB/lib/ &&
+ $(STRIP) $CONTRIB/lib/libbz2.a
+ }
+ Wget $(SUBDIR)/bzip2.tar.gz : $(SUBDIR)/version_bzip2.txt ;
+ BZip2 $(SUBDIR)/lib/libbz2.a : $(SUBDIR)/bzip2.tar.gz ;
+}