Ticket #1679: Portfile

File Portfile, 2.0 KB (added by leimy@…, 20 years ago)

Portfile update for Qt3-mac

Line 
1# $Id: Portfile,v 1.12 2004/03/28 01:57:35 jkh Exp $
2PortSystem 1.0
3
4name                    qt3-mac
5version                 3.3.1
6revision                3
7categories              aqua
8maintainers             ranger@befunk.com leimy@opendarwin.org rshaw@opendarwin.org
9description             Qt Tool Kit (Native Aqua Version)
10long_description        This is Qt, TrollTech's C++ toolkit for writing \
11                                        cross-platform GUI applications.
12platforms               darwin
13master_sites    ftp://ftp.trolltech.com/qt/source/
14distname                qt-mac-free-${version}
15extract.suffix  .tar.bz2
16checksums               md5 dacbe0c575e889f0a663ae02000f0a3f
17use_bzip2               yes
18
19configure.cmd   "echo yes | ./configure"
20configure.env   QMAKESPEC='' QTDIR='' DYLD_LIBRARY_PATH=''
21configure.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
31build.env               QMAKESPEC='' QTDIR='' DYLD_LIBRARY_PATH="${worksrcpath}/lib"
32build.target    symlinks src-qmake src-moc sub-src sub-tools
33
34destroot.destdir        INSTALL_ROOT='${destroot}'
35post-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
39platform 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