1 | # $Id: Portfile,v 1.12 2004/03/28 01:57:35 jkh Exp $ |
---|
2 | PortSystem 1.0 |
---|
3 | |
---|
4 | name qt3-mac |
---|
5 | version 3.3.1 |
---|
6 | revision 3 |
---|
7 | categories aqua |
---|
8 | maintainers ranger@befunk.com leimy@opendarwin.org rshaw@opendarwin.org |
---|
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 | platforms darwin |
---|
13 | master_sites ftp://ftp.trolltech.com/qt/source/ |
---|
14 | distname qt-mac-free-${version} |
---|
15 | extract.suffix .tar.bz2 |
---|
16 | checksums md5 dacbe0c575e889f0a663ae02000f0a3f |
---|
17 | use_bzip2 yes |
---|
18 | |
---|
19 | configure.cmd "echo yes | ./configure" |
---|
20 | configure.env QMAKESPEC='' QTDIR='' DYLD_LIBRARY_PATH='' |
---|
21 | configure.args -v -prefix '${prefix}' \ |
---|
22 | -docdir '${prefix}/share/doc/${portname}/html' \ |
---|
23 | -datadir '${prefix}/share/qt3' \ |
---|
24 | -headerdir '${prefix}/include/qt3' \ |
---|
25 | -plugindir '${prefix}/lib/qt3-plugins' \ |
---|
26 | -release -shared -fast -thread -stl \ |
---|
27 | -qt-gif -qt-imgfmt-png -qt-imgfmt-jpeg -qt-imgfmt-mng \ |
---|
28 | -system-zlib -largefile \ |
---|
29 | '-I${prefix}/include' '-L${prefix}/lib' |
---|
30 | |
---|
31 | build.env QMAKESPEC='' QTDIR='' DYLD_LIBRARY_PATH="${worksrcpath}/lib" |
---|
32 | build.target symlinks src-qmake src-moc sub-src sub-tools |
---|
33 | |
---|
34 | destroot.destdir INSTALL_ROOT='${destroot}' |
---|
35 | post-destroot { system "ranlib -s ${destroot}${prefix}/lib/libdesignercore.a" |
---|
36 | system "ranlib -s ${destroot}${prefix}/lib/libeditor.a" |
---|
37 | system "ranlib -s ${destroot}${prefix}/lib/libqassistantclient.a" } |
---|
38 | |
---|
39 | platform darwin { |
---|
40 | patchfiles patch-src-qt_install.pri \ |
---|
41 | patch-mkspecs-qmake.conf |
---|
42 | post-destroot { |
---|
43 | system "sh ${portpath}/${filesdir}/fix_install_names.sh '${prefix}' '${destroot}'" |
---|
44 | set appPath ${destroot}/Applications/DarwinPorts/Qt |
---|
45 | xinstall -d -m 0755 ${appPath} |
---|
46 | foreach app {assistant designer linguist qtconfig} { |
---|
47 | system "mv -v ${destroot}${prefix}/bin/${app}.app \ |
---|
48 | ${appPath}/${app}.app" |
---|
49 | } |
---|
50 | if {![file exists ${destroot}${prefix}/lib/libqt.dylib]} { |
---|
51 | cd ${destroot}${prefix}/lib |
---|
52 | system "ln -s libqt-mt.3.3.0.dylib libqt.dylib" |
---|
53 | system "ln -s libqt-mt.3.3.0.dylib libqt.3.dylib" |
---|
54 | system "ln -s libqt-mt.3.3.0.dylib libqt.3.3.dylib" |
---|
55 | } |
---|
56 | } |
---|
57 | } |
---|
58 | |
---|