1 | # $Id: Portfile,v 1.39 2005/08/16 00:35:28 ben Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name qt3 |
---|
5 | version 3.3.4 |
---|
6 | revision 3 |
---|
7 | categories x11 |
---|
8 | maintainers ben@opendarwin.org |
---|
9 | description Qt Tool Kit |
---|
10 | long_description Qt 3 is a multiplatform C++ application development framework. |
---|
11 | homepage http://www.trolltech.com/products/qt/index.html |
---|
12 | platforms darwin |
---|
13 | master_sites ftp://ftp.trolltech.com/qt/source/ |
---|
14 | distname qt-x11-free-${portversion} |
---|
15 | use_bzip2 yes |
---|
16 | |
---|
17 | depends_lib lib:libX11.6:XFree86 \ |
---|
18 | port:freetype port:libpng \ |
---|
19 | port:jpeg port:zlib \ |
---|
20 | port:perl5.8 \ |
---|
21 | port:cups-headers |
---|
22 | |
---|
23 | checksums md5 027f4e82fbe592b39d2f160bfb3a73af |
---|
24 | |
---|
25 | platform darwin 8 { |
---|
26 | post-patch { |
---|
27 | reinplace "s|#define QT_AOUT_UNDERSCORE||g" \ |
---|
28 | ${worksrcpath}/mkspecs/darwin-g++/qplatformdefs.h |
---|
29 | } |
---|
30 | } |
---|
31 | |
---|
32 | platform darwin 7 { |
---|
33 | post-patch { |
---|
34 | reinplace "s|#define QT_AOUT_UNDERSCORE||g" \ |
---|
35 | ${worksrcpath}/mkspecs/darwin-g++/qplatformdefs.h |
---|
36 | } |
---|
37 | } |
---|
38 | |
---|
39 | platform darwin 6 { |
---|
40 | depends_lib-append lib:libdl:dlcompat |
---|
41 | configure.args-delete -lresolv |
---|
42 | } |
---|
43 | |
---|
44 | variant mysql { |
---|
45 | depends_lib-append lib:libmysqlclient.10:mysql |
---|
46 | configure.args-append -qt-sql-mysql -L${prefix}/lib/mysql \ |
---|
47 | -I${prefix}/include/mysql -plugin-sql-mysql |
---|
48 | } |
---|
49 | |
---|
50 | variant odbc { |
---|
51 | depends_lib-append lib:libodbc.1:unixODBC |
---|
52 | configure.args-append -qt-sql-odbc -L${prefix}/lib \ |
---|
53 | -I${prefix}/include -plugin-sql-odbc |
---|
54 | } |
---|
55 | |
---|
56 | variant psql { |
---|
57 | depends_lib-append lib:libpq.2:postgresql |
---|
58 | configure.args-append -qt-sql-psql -plugin-sql-psql |
---|
59 | } |
---|
60 | |
---|
61 | set env(PATH) "/usr/X11R6/bin:$env(PATH):${prefix}/bin" |
---|
62 | |
---|
63 | patch.args -p1 |
---|
64 | patchfiles qt.patch |
---|
65 | |
---|
66 | post-patch { |
---|
67 | reinplace "s|@PREFIX@|${prefix}|g" \ |
---|
68 | ${worksrcpath}/mkspecs/darwin-g++/qmake.conf |
---|
69 | } |
---|
70 | |
---|
71 | configure.env DYLD_FALLBACK_LIBRARY_PATH='${worksrcpath}/lib' \ |
---|
72 | INSTALL_ROOT='' \ |
---|
73 | QMAKESPEC='${worksrcpath}/mkspecs/darwin-g++' \ |
---|
74 | QTDIR='${worksrcpath}' \ |
---|
75 | PREFIX='${prefix}' \ |
---|
76 | NAME=qt3 |
---|
77 | |
---|
78 | configure.pre_args {} |
---|
79 | |
---|
80 | configure.cmd export DYLD_FALLBACK_LIBRARY_PATH INSTALL_ROOT QMAKESPEC \ |
---|
81 | QTDIR PREFIX NAME && cd ${worksrcpath} && \ |
---|
82 | echo yes | sh ./configure |
---|
83 | |
---|
84 | configure.args -I${worksrcpath}/include \ |
---|
85 | -I/usr/X11R6/include/freetype2/freetype \ |
---|
86 | -L/usr/X11R6/lib \ |
---|
87 | -I/usr/X11R6/include -I${prefix}/include \ |
---|
88 | -L${worksrcpath}/lib -L${prefix}/lib \ |
---|
89 | -buildkey qt3-jaguar \ |
---|
90 | -platform darwin-g++ -xplatform darwin-g++ \ |
---|
91 | -translationdir ${prefix}/share/qt3/translations \ |
---|
92 | -prefix ${prefix} -bindir ${prefix}/bin \ |
---|
93 | -libdir ${prefix}/lib -docdir ${prefix}/share/doc/qt3 \ |
---|
94 | -datadir ${prefix}/share/qt3 -headerdir ${prefix}/include/qt3 \ |
---|
95 | -plugindir ${prefix}/lib/qt3-plugins \ |
---|
96 | -release -shared -no-exceptions -thread -stl \ |
---|
97 | -qt-gif -plugin-imgfmt-png \ |
---|
98 | -plugin-imgfmt-jpeg -plugin-imgfmt-mng \ |
---|
99 | -system-libpng -system-libjpeg -system-zlib \ |
---|
100 | -largefile -sm -xinerama -xrender -xft -xkb \ |
---|
101 | -lresolv -cups |
---|
102 | |
---|
103 | build.env ${configure.env} |
---|
104 | |
---|
105 | build.cmd export DYLD_FALLBACK_LIBRARY_PATH INSTALL_ROOT QMAKESPEC \ |
---|
106 | QTDIR PREFIX NAME && cd ${worksrcpath} && make |
---|
107 | |
---|
108 | build.target symlinks src-qmake src-moc sub-src sub-tools |
---|
109 | |
---|
110 | build.args {} |
---|
111 | |
---|
112 | destroot.env PREFIX='${destroot}${prefix}' \ |
---|
113 | VERSION='${version}' \ |
---|
114 | WORKSRCPATH=${worksrcpath} |
---|
115 | destroot.cmd sh ${portpath}/${filesdir}/qt-install.sh |
---|
116 | destroot.args {} |
---|
117 | destroot.destdir {} |
---|
118 | destroot.target {} |
---|