source: trunk/dports/x11/qt3/Portfile @ 11593

Last change on this file since 11593 was 11593, checked in by jkh, 15 years ago

The disposition of the dlopen() and poll() routines has evolved over 3 releases. Properly
conditionalize usage of this in the ports that need it to ensure that builds on Jaguar, Panther
and Tiger all work.

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
1# $Id: Portfile,v 1.30 2005/04/04 10:08:42 jkh Exp $
2
3PortSystem 1.0
4name            qt3
5version         3.1.2
6revision        5
7categories      x11
8maintainers     rshaw@opendarwin.org
9description     Qt Tool Kit
10long_description Qt 3 is a multiplatform C++ application development framework.
11homepage        http://www.trolltech.com/products/qt/index.html
12platforms       darwin
13master_sites    ftp://ftp.trolltech.com/qt/source/
14distname        qt-x11-free-${portversion}
15extract.suffix  .tar.bz2
16use_bzip2       yes
17
18depends_lib     lib:libGL.1:XFree86 lib:libX11.6:XFree86 \
19                lib:libfreetype.6:XFree86 lib:libpng.3:libpng \
20                lib:libjpeg.62:jpeg
21checksums       qt-x11-free-3.1.2.tar.bz2 md5 156591717687799c69cf3f8b64a898f2
22
23platform darwin 6 { depends_lib-append lib:libdl:dlcompat }
24
25variant mysql {
26                depends_lib-append lib:libmysqlclient.10:mysql
27                configure.args-append -qt-sql-mysql -L${prefix}/lib/mysql -I${prefix}/include/mysql -plugin-sql-mysql
28}
29
30variant odbc {
31                depends_lib-append lib:libodbc.1:unixODBC
32                configure.args-append -qt-sql-odbc -L${prefix}/lib -I${prefix}/include -plugin-sql-odbc
33}
34
35variant psql {
36                depends_lib-append lib:libpq.2:postgresql
37                configure.args-append -qt-sql-psql -plugin-sql-psql
38}
39
40variant cups {
41                depends_build-append path:${prefix}/include/cups/cups.h:cups-headers
42                configure.args-append -cups
43}
44
45variant puredarwin {
46                configure.args-append -puredarwin
47}
48
49set env(PATH) "/usr/X11R6/bin:$env(PATH):${prefix}/bin"
50
51configure.cmd   sh ${portpath}/${filesdir}/qt-configure.sh
52configure.env   \
53                CFLAGS='-I${prefix}/include' \
54                CPPFLAGS='-I${prefix}/include' \
55                DYLD_LIBRARY_PATH='/usr/X11R6/lib:${worksrcpath}/lib:${prefix}/lib' \
56                INSTALL_ROOT='' \
57                INSTALLPREFIX='${prefix}' \
58                LDFLAGS='-L/usr/X11R6/lib -L. -L${worksrcpath}/lib -L${prefix}/lib' \
59                QMAKESPEC='${worksrcpath}/mkspecs/darwin-g++' \
60                QTDIR='${worksrcpath}' \
61                worksrcpath='${worksrcpath}' \
62                prefix='${prefix}' \
63                portname='${portname}'
64
65build.env       ${configure.env}
66build.target    INSTALLPREFIX="${prefix}" SINGLE_MODULE="-single_module" symlinks src-qmake src-moc sub-src sub-tools
67destroot.cmd    sh ${portpath}/${filesdir}/qt-install.sh
68destroot.args   PREFIX="${prefix}" VERSION="${version}"
69destroot.destdir        DESTROOT="${destroot}"
70destroot.target
71
72long_description This is Qt, TrollTech's C++ toolkit for writing \
73cross-platform GUI applications.
Note: See TracBrowser for help on using the repository browser.