RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/databases/unixODBC/Portfile,v
retrieving revision 1.1
diff -u -r1.1 Portfile
|
|
|
2 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | 4 | name unixODBC |
5 | | version 2.2.6 |
| 5 | version 2.2.7 |
6 | 6 | categories databases |
7 | 7 | platforms darwin |
8 | 8 | |
… |
… |
|
26 | 26 | master_sites ${homepage} \ |
27 | 27 | ftp://ftp.easysoft.com/pub/beta/unixODBC/ |
28 | 28 | |
29 | | checksums md5 748ce54e34b2b339c99a8b1ddaee54f5 |
| 29 | checksums md5 5006259f2044666c733651263722bbdd |
30 | 30 | |
31 | | depends_lib lib:libdl.1:dlcompat \ |
32 | | lib:libiconv.2:libiconv \ |
33 | | lib:readline:readline |
| 31 | depends_lib lib:libiconv.2:libiconv \ |
| 32 | lib:readline:readline |
| 33 | |
| 34 | platform darwin 6 { depends_lib-append lib:libdl.1:dlcompat } |
34 | 35 | |
35 | 36 | patchfiles patch-configure \ |
36 | | patch-ltmain.sh \ |
37 | | patch-SQLManageDataSources.c |
| 37 | patch-ltmain.sh \ |
| 38 | patch-SQLManageDataSources.c |
38 | 39 | |
39 | 40 | set share_path "${prefix}/share/${name}" |
40 | 41 | set doc_dest "${destroot}${prefix}/share/doc/${name}" |
41 | 42 | |
42 | | configure.env LDFLAGS=-L${prefix}/lib \ |
43 | | CPPFLAGS=-I${prefix}/include |
| 43 | configure.env LDFLAGS='-L${prefix}/lib' \ |
| 44 | CPPFLAGS='-I${prefix}/include' |
44 | 45 | |
45 | | configure.args --with-libiconv-prefix=${prefix} \ |
46 | | --disable-stats \ |
47 | | --enable-gui=no |
| 46 | configure.args --with-libiconv-prefix='${prefix}' \ |
| 47 | --disable-stats \ |
| 48 | --enable-gui=no |
| 49 | |
| 50 | variant gui { |
| 51 | depends_lib-append lib:libqt-mt.3:qt3 \ |
| 52 | lib:libX11.6:XFree86 |
| 53 | configure.env-append QTDIR='${prefix}' |
| 54 | configure.args-delete --enable-gui=no |
| 55 | configure.args-append --enable-gui \ |
| 56 | --with-qt-dir='${prefix}' \ |
| 57 | --with-qt-includes='${prefix}/include/qt3' \ |
| 58 | --with-qt-libraries='${prefix}/lib' \ |
| 59 | --with-extra-includes='/usr/X11R6/include' \ |
| 60 | --with-extra-libs='/usr/X11R6/lib' |
| 61 | } |
48 | 62 | |
49 | 63 | post-destroot { |
50 | 64 | file mkdir ${destroot}${share_path} |
… |
… |
|
64 | 78 | system "find ${doc_dest} -name 'Makefile*' | xargs rm" |
65 | 79 | system "chown -R `id -u`:`id -g` ${doc_dest}" |
66 | 80 | |
67 | | # Create .so |
68 | | system "cd ${destroot}${prefix}/lib/ && \ |
69 | | /usr/bin/gcc -bundle -undefined error -o libodbc.1.0.0.so libodbc.1.0.0.dylib && \ |
| 81 | # Create Mach-O bundles |
| 82 | # |
| 83 | # Cursor Lib - The cursor lib needs a manual stage build to create it as a OSX bundle |
| 84 | # it needs to be like that so the DM can load it at run time. |
| 85 | system "cd ${worksrcpath}/cur && \ |
| 86 | /usr/bin/cc -bundle -flat_namespace -undefined suppress -o libodbccr.1.0.0.so *.lo && \ |
| 87 | rm ${destroot}${prefix}/lib/libodbccr.1.0.0.so && \ |
| 88 | install -m 755 libodbccr.1.0.0.so ${destroot}${prefix}/lib" |
| 89 | # |
| 90 | # ODBC Lib |
| 91 | system "cd ${worksrcpath}/DriverManager && \ |
| 92 | /usr/bin/cc -bundle -flat_namespace -undefined suppress -o libodbc.1.0.0.so \ |
| 93 | .libs/libodbc.1.0.0.dylib && \ |
| 94 | install -m 755 libodbc.1.0.0.so ${destroot}${prefix}/lib && \ |
| 95 | cd ${destroot}${prefix}/lib && \ |
70 | 96 | ln -s libodbc.1.0.0.so libodbc.1.so && \ |
71 | 97 | ln -s libodbc.1.0.0.so libodbc.so" |
| 98 | # |
| 99 | # Postgre7.1 Lib |
| 100 | system "cd ${worksrcpath}/Drivers/Postgre7.1 && \ |
| 101 | /usr/bin/cc -bundle -flat_namespace -undefined suppress -o libodbcpsql.2.0.0.so *.lo && \ |
| 102 | rm ${destroot}${prefix}/lib/libodbcpsql.2.0.0.so && \ |
| 103 | install -m 755 libodbcpsql.2.0.0.so ${destroot}${prefix}/lib" |
| 104 | # |
| 105 | # PostgreSQL Lib |
| 106 | system "cd ${worksrcpath}/Drivers/PostgreSQL && \ |
| 107 | /usr/bin/cc -bundle -flat_namespace -undefined suppress -o libodbcpsql.1.0.0.so *.lo && \ |
| 108 | rm ${destroot}${prefix}/lib/libodbcpsql.1.0.0.so && \ |
| 109 | install -m 755 libodbcpsql.1.0.0.so ${destroot}${prefix}/lib" |
| 110 | # |
| 111 | # NNTP Lib |
| 112 | system "cd ${worksrcpath}/Drivers/nn && \ |
| 113 | /usr/bin/cc -bundle -flat_namespace -undefined suppress -o libnn.1.0.0.so *.lo && \ |
| 114 | rm ${destroot}${prefix}/lib/libnn.1.0.0.so && \ |
| 115 | install -m 755 libnn.1.0.0.so ${destroot}${prefix}/lib" |
72 | 116 | } |
73 | 117 | |
74 | 118 | post-install { |