contribs: added an optional entry to compile QT4 on Darwin. run 'make .qt4_mac',...
authorFelix Paul Kühne <fkuehne@videolan.org>
Thu, 31 Jan 2008 17:20:26 +0000 (17:20 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Thu, 31 Jan 2008 17:20:26 +0000 (17:20 +0000)
extras/contrib/src/Makefile
extras/contrib/src/packages.mak

index 63534d2..e0cac0a 100644 (file)
@@ -1531,6 +1531,24 @@ CLEAN_FILE += .Qt
 CLEAN_PKG += Qt
 DISTCLEAN_PKG += qt-win-opensource-$(QT4T_VERSION)-mingw.exe
 
+# ***************************************************************************
+# qt4 (source-code compilation for Mac)
+# ***************************************************************************
+
+qt-mac-opensource-src-$(QT4_VERSION).tar.gz:
+       $(WGET) $(QT4_MAC_URL)
+
+qt4_mac: qt-mac-opensource-src-$(QT4_VERSION).tar.gz
+       $(EXTRACT_GZ)
+
+.qt4_mac: qt4_mac
+       (cd qt4_mac; ./configure -prefix $(PREFIX) -release -fast -no-qt3support -sdk $(MACOSX_SDK) -no-framework && make && make install)
+       touch $@
+
+CLEAN_FILE += .qt4_mac
+CLEAN_PKG += qt4_mac
+DISTCLEAN_PKG += qt-mac-opensource-src-$(QT4_VERSION).tar.gz
+
 # ***************************************************************************
 # zlib
 # ***************************************************************************
index 3c756dc..3c69a49 100644 (file)
@@ -174,6 +174,7 @@ WXWIDGETS_VERSION=2.6.4
 WXWIDGETS_URL=$(SF)/wxwindows/wxWidgets-$(WXWIDGETS_VERSION).tar.gz
 QT4_VERSION=4.3.3
 QT4_URL=$(VIDEOLAN)/testing/contrib/qt4-$(QT4_VERSION)-win32-bin.tar.gz
+QT4_MAC_URL=ftp://ftp.trolltech.com/qt/source/qt-mac-opensource-src-$(QT4_VERSION).tar.gz
 QT4T_VERSION=4.3.2
 QT4T_URL=ftp://ftp.trolltech.com/pub/qt/source/qt-win-opensource-$(QT4T_VERSION)-mingw.exe
 ZLIB_VERSION=1.2.3