1 | # $Id: Portfile 20509 2006-11-03 19:28:00Z blair@macports.org $ |
---|
2 | PortSystem 1.0 |
---|
3 | |
---|
4 | name qt4-mac |
---|
5 | version 4.2.2 |
---|
6 | categories aqua |
---|
7 | maintainers dinosaur@aztecfreenet.org |
---|
8 | |
---|
9 | description Qt Tool Kit (Native Aqua Version) |
---|
10 | long_description This is Qt, TrollTech's C++ toolkit for writing \ |
---|
11 | cross-platform GUI applications. |
---|
12 | homepage http://www.trolltech.com/ |
---|
13 | master_sites ftp://ftp.trolltech.com/qt/source/ \ |
---|
14 | http://ftp.iasi.roedu.net/mirrors/ftp.trolltech.com/qt/source/ \ |
---|
15 | http://ftp.ntua.gr/pub/X11/Qt/qt/source/ \ |
---|
16 | http://wftp.tu-chemnitz.de/pub/Qt/qt/source/ |
---|
17 | distname qt-mac-opensource-src-${version} |
---|
18 | use_bzip2 no |
---|
19 | checksums md5 bda29aff2875687d20478dcc9203932f \ |
---|
20 | sha1 b72d67fd5a8e479a87dbb63fde945cf05c1f1d1f \ |
---|
21 | rmd160 fb1befadaab5fda44d4eb11fd8eedb8e04b455aa |
---|
22 | platforms darwin |
---|
23 | |
---|
24 | depends_lib lib:libz.1:zlib |
---|
25 | |
---|
26 | variant mysql { |
---|
27 | depends_lib-append lib:libmysqlclient.12:mysql4 |
---|
28 | configure.args-delete -no-sql-mysql |
---|
29 | configure.args-append -qt-sql-mysql \ |
---|
30 | -L${prefix}/lib/mysql \ |
---|
31 | -I${prefix}/include/mysql \ |
---|
32 | -plugin-sql-mysql |
---|
33 | } |
---|
34 | |
---|
35 | variant ipv6 { |
---|
36 | configure.args-delete -no-ipv6 |
---|
37 | configure.args-append -ipv6 |
---|
38 | } |
---|
39 | variant framework { |
---|
40 | configure.args-delete -no-framework |
---|
41 | configure.args-append -framework |
---|
42 | } |
---|
43 | variant examples { |
---|
44 | configure.args-delete -nomake examples |
---|
45 | configure.args-append -make examples |
---|
46 | } |
---|
47 | configure.cmd "echo yes | ./configure" |
---|
48 | configure.env QMAKESPEC='' QTDIR='' DYLD_LIBRARY_PATH='' |
---|
49 | configure.args -v -prefix '${prefix}' \ |
---|
50 | -docdir '${prefix}/share/doc/${portname}/html' \ |
---|
51 | -datadir '${prefix}/share/qt4' \ |
---|
52 | -headerdir '${prefix}/include/qt4' \ |
---|
53 | -plugindir '${prefix}/lib/qt4-plugins' \ |
---|
54 | -release -shared -fast -stl \ |
---|
55 | -qt-gif -qt-libpng -qt-libjpeg -qt-libmng \ |
---|
56 | -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql \ |
---|
57 | -no-sql-sqlite -no-nis -no-cups -nomake examples\ |
---|
58 | -system-zlib -largefile -no-framework \ |
---|
59 | '-I${prefix}/include' '-L${prefix}/lib' |
---|
60 | |
---|
61 | build.env QMAKESPEC='' QTDIR='' DYLD_LIBRARY_PATH="${worksrcpath}/lib" |
---|
62 | #build.target symlinks src-qmake src-moc sub-src sub-tools |
---|
63 | build.target first |
---|
64 | |
---|
65 | destroot.destdir INSTALL_ROOT="${destroot}" |
---|
66 | |
---|
67 | |
---|
68 | platform darwin { |
---|
69 | post-destroot { |
---|
70 | set appPath ${destroot}/Applications/MacPorts/Qt |
---|
71 | xinstall -d -m 0755 ${appPath} |
---|
72 | foreach app {assistant designer linguist qtconfig} { |
---|
73 | system "mv -v ${destroot}${prefix}/bin/${app}.app \ |
---|
74 | ${appPath}/${app}.app" |
---|
75 | } |
---|
76 | if {![file exists ${destroot}${prefix}/lib/libqt.dylib]} { |
---|
77 | set majorver [strsed ${version} {s/\.[0-9]*\.[0-9]*$//}] |
---|
78 | set minorver [strsed ${version} {s/\.[0-9]*$//}] |
---|
79 | cd ${destroot}${prefix}/lib |
---|
80 | system "ln -s libqt-mt.${version}.dylib libqt.dylib" |
---|
81 | system "ln -s libqt-mt.${version}.dylib libqt.${majorver}.dylib" |
---|
82 | system "ln -s libqt-mt.${version}.dylib libqt.${minorver}.dylib" |
---|
83 | } |
---|
84 | } |
---|
85 | } |
---|