( cd $< && for f in `find . -name libtool`; do sed -e 's/ -shared / -nostart /' -e 's/^predep_objects.*/predep_objects=""/' -i $$f; chmod +x $$f; done )
endif
ifneq ($(HOST),$(BUILD))
-# We'll use the installed gettext and only need to cross-compile libintl, also build autopoint and gettextsize tools need for VLC bootstrap
+ ifndef HAVE_CYGWIN
+ # We'll use the installed gettext and only need to cross-compile libintl, also build autopoint and gettextsize tools need for VLC bootstrap
( cd $< && make -C gettext-runtime/intl && patch -p1 < ../Patches/libintl.patch && make -C gettext-runtime/intl install && make -C gettext-tools/misc install )
+ else
+ # We are compiling for MinGW on Cygwin -- build the full current gettext
+ ( cd $< && make && patch -p1 < ../Patches/libintl.patch && make install )
+ endif
else
# Build and install the whole gettext
( cd $< && make && patch -p1 < ../Patches/libintl.patch && make install )
flac: flac-$(FLAC_VERSION).tar.gz
$(EXTRACT_GZ)
-ifdef HAVE_WIN32
- patch -p0 < Patches/flac-win32.patch
+ifdef HAVE_CYGWIN
+ patch -p0 < Patches/flac-win32.patch
endif
- cd $@ && autoconf
FLAC_DISABLE_FLAGS = --disable-oggtest --disable-xmms-plugin --disable-cpplibs
(cd $@; patch -p1 < ../Patches/faad2.patch && ./bootstrap)
.faad: faad
- (cd $< && $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="-O3" && sed -i.orig "s/shrext_cmds/shrext/g" libtool && make -C libfaad && make -C libfaad install)
+ (cd $< && $(HOSTCC) ./configure $(HOSTCONF) --disable-shared --prefix=$(PREFIX) CFLAGS="-O3" && sed -i.orig "s/shrext_cmds/shrext/g" libtool && make -C libfaad && make -C libfaad install)
$(INSTALL_NAME)
touch $@
libebml-$(LIBEBML_VERSION).tar.bz2:
$(WGET) $(LIBEBML_URL)
-ifdef SVN
-libebml:
- $(SVN) export http://svn.matroska.org/svn/matroska/trunk/libebml libebml
-else
+## No reasons to use SVN anymore
+#ifdef SVN
+#libebml:
+# $(SVN) export http://svn.matroska.org/svn/matroska/trunk/libebml libebml
+#else
libebml: libebml-$(LIBEBML_VERSION).tar.bz2
$(EXTRACT_BZ2)
-endif
+#endif
+
ifdef HAVE_WIN32
(cd $@; patch -p0 < ../Patches/libebml-svn-win32.patch)
endif
$(RANLIB) $(PREFIX)/lib/libebml.a
endif
touch $@
-
-ifdef SVN
-libebml-source: libebml
- tar cfvz libebml-$(DATE).tar.gz libebml
-SOURCE += libebml-source
-endif
+## No reasons to use SVN anymore
+#ifdef SVN
+#libebml-source: libebml
+# tar cfvz libebml-$(DATE).tar.gz libebml
+#SOURCE += libebml-source
+#endif
CLEAN_FILE += .ebml
CLEAN_PKG += libebml
libmatroska-$(LIBMATROSKA_VERSION).tar.bz2:
$(WGET) $(LIBMATROSKA_URL)
-ifdef SVN
-libmatroska:
- $(SVN) export http://svn.matroska.org/svn/matroska/trunk/libmatroska libmatroska
-else
+## No reasons to use SVN anymore
+#if SVN
+#libmatroska:
+# $(SVN) export http://svn.matroska.org/svn/matroska/trunk/libmatroska libmatroska
+#else
libmatroska: libmatroska-$(LIBMATROSKA_VERSION).tar.bz2
$(EXTRACT_BZ2)
-endif
+#endif
+
ifdef HAVE_WIN32
(cd $@; patch -p0 < ../Patches/libmatroska-win32.patch)
endif
endif
touch $@
-ifdef SVN
-libmatroska-source: libmatroska
- tar cfvz libmatroska-$(DATE).tar.gz libmatroska
-
-SOURCE += libmatroska-source
-endif
+## No reasons to use SVN anymore
+#ifdef SVN
+#libmatroska-source: libmatroska
+# tar cfvz libmatroska-$(DATE).tar.gz libmatroska
+#
+#SOURCE += libmatroska-source
+#endif
CLEAN_FILE += .matroska
CLEAN_PKG += libmatroska
x264: x264-$(X264_VERSION).tar.gz
$(EXTRACT_GZ)
ifdef HAVE_WIN32
+ ifndef HAVE_CYGWIN
(cd x264;patch -p0 <../Patches/x264-20050624-win32.patch)
+ endif
else
patch -p0 < Patches/x264.patch
rm x264/x264.c
ifdef HAVE_WIN32
.x264: x264 .pthreads
+ ifdef HAVE_CYGWIN
+ (cd $<; $(HOSTCC) RANLIB="ranlib" AR="ar" STRIP="strip" ./configure $(X264CONF) --prefix="$(PREFIX)" --extra-cflags="-I$(PREFIX)/include" --extra-ldflags="-L$(PREFIX)/lib" && make && make install)
+ else
(cd $<; $(HOSTCC) ./configure $(X264CONF) --prefix="$(PREFIX)" && make && make install)
+ endif
else
.x264: x264
(cd $<; $(HOSTCC) ./configure $(X264CONF) --prefix="$(PREFIX)" && make && make install)
ifdef HAVE_WIN32
(cd xml; aclocal && automake && autoreconf)
endif
+ ifdef HAVE_CYGWIN
+ (cd xml; ac_cv_header_pthread_h="no" CFLAGS="-DLIBXML_STATIC" $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --with-minimal --with-catalog --with-reader --with-tree --with-push --with-xptr --with-valid --with-xpath --with-xinclude --with-sax1 --without-zlib --without-iconv --without-http --without-ftp && make && make install)
+ else
(cd xml; CFLAGS="-DLIBXML_STATIC" $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --with-minimal --with-catalog --with-reader --with-tree --with-push --with-xptr --with-valid --with-xpath --with-xinclude --with-sax1 --without-zlib --without-iconv --without-http --without-ftp && make && make install)
+ endif
ifndef HAVE_DARWIN_OS
$(INSTALL_NAME)
endif
dirac: dirac-$(DIRAC_VERSION).tar.gz
$(EXTRACT_GZ)
patch -p0 <Patches/dirac-cross.patch
+ifdef HAVE_CYGWIN
+ patch -p0 <Patches/dirac-cygwin.patch
+endif
(cd $@; aclocal && autoconf && automake)
DIRAC_SUBDIRS = libdirac_byteio libdirac_common libdirac_motionest libdirac_encoder libdirac_decoder
taglib: taglib-$(TAGLIB_VERSION).tar.gz
$(EXTRACT_GZ)
+ifdef HAVE_CYGWIN
+ patch -p0 <Patches/taglib-cygwin.patch
+endif
.tag: taglib
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) && make && make install)
rm -rf $(DISTCLEAN_PKG)
clean-svn:
- rm -rf ffmpeg tremor libebml libmatroska x264 libdca
+ rm -rf ffmpeg tremor x264 libdca
distclean: clean-src