- 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
OS = CYGWIN ;
}
+if $(OS) = CYGWIN
+{
+ HANDBRAKE_LIBS = $(HANDBRAKE_LIBS) contrib/lib/libbz2.a contrib/lib/libz.a ;
+}
+
if $(CSS) = 1
{
HANDBRAKE_LIBS = $(HANDBRAKE_LIBS) contrib/lib/libdvdcss.a ;
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 ;
+}
--- /dev/null
+http://download.m0k.org/handbrake/contrib/bzip2-1.0.5.tar.gz