public
Description: Git mirror of the MacPorts svn repo
Homepage: http://www.macports.org
Clone URL: git://github.com/kballard/macports.git
Search Repo:
oracle-instantclient: now works on Intel Macs; closes #15296


git-svn-id: http://svn.macports.org/repository/macports/trunk@36833 
d073be05-634f-4543-b044-5fe20cf6d1d6
Ryan Schmidt (author)
Fri May 16 02:16:22 -0700 2008
commit  c505c8060895b5ecaf3ca71da2c743cb29f958ac
tree    bc01bb9b3b564daba37973f9bd5e0daac5d3c1ba
parent  cda9374b67b1aa4739034bc413a8f8664330f06a
...
9
10
11
12
 
13
14
15
16
...
17
18
19
20
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
42
43
44
...
46
47
48
49
50
51
 
 
 
 
 
52
53
54
55
56
57
58
59
60
61
62
 
 
 
 
 
 
 
 
 
 
 
 
63
64
65
...
9
10
11
 
12
13
14
15
16
...
17
18
19
 
 
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
...
68
69
70
 
 
 
71
72
73
74
75
76
 
 
 
 
 
 
 
 
 
 
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
0
@@ -9,7 +9,7 @@
0
 maintainers ryandesign
0
 homepage http://www.oracle.com/technology/software/tech/oci/instantclient/
0
 use_zip yes
0
-worksrcdir instantclient[join [lrange [split ${version} .] 0 1] _]
0
+set weird_prefix ""
0
 
0
 description \
0
     Oracle database connection libraries
0
0
@@ -17,27 +17,49 @@
0
 long_description \
0
     Oracle Instant Client allows you to run your applications without installing the standard Oracle client or having an ORACLE_HOME.
0
 
0
-master_sites \
0
- http://download.oracle.com/otn/mac/instantclient/
0
+platform powerpc {
0
+ worksrcdir instantclient[join [lrange [split ${version} .] 0 1] _]
0
+ set weird_prefix /b/729
0
+
0
+ master_sites \
0
+ http://download.oracle.com/otn/mac/instantclient/
0
+
0
+ distfiles \
0
+ instantclient-basic-macosx-${version}${extract.suffix} \
0
+ instantclient-sdk-macosx-${version}${extract.suffix}
0
+
0
+ checksums \
0
+ instantclient-basic-macosx-${version}${extract.suffix} \
0
+ md5 5b38ab0565d6189d2069a4abe0bf2ab2 \
0
+ sha1 2f3aa35e99228fd08b686b19eba84ec34db8277b \
0
+ rmd160 d1f056f8f1b308c5493f4938b29b55fcb32452cf \
0
+ instantclient-sdk-macosx-${version}${extract.suffix} \
0
+ md5 79c7cb3f8afaff076fb20bad75b37cc9 \
0
+ sha1 486fe1c9a6c5cfc32401e72728ff821a50a22cf9 \
0
+ rmd160 c819db7f739b8ca468c8059dfbac31a6a6965938
0
+}
0
 
0
-distfiles \
0
- instantclient-basic-macosx-${version}${extract.suffix} \
0
- instantclient-sdk-macosx-${version}${extract.suffix}
0
-
0
-checksums \
0
- instantclient-basic-macosx-${version}${extract.suffix} \
0
- md5 5b38ab0565d6189d2069a4abe0bf2ab2 \
0
- sha1 2f3aa35e99228fd08b686b19eba84ec34db8277b \
0
- rmd160 d1f056f8f1b308c5493f4938b29b55fcb32452cf \
0
- instantclient-sdk-macosx-${version}${extract.suffix} \
0
- md5 79c7cb3f8afaff076fb20bad75b37cc9 \
0
- sha1 486fe1c9a6c5cfc32401e72728ff821a50a22cf9 \
0
- rmd160 c819db7f739b8ca468c8059dfbac31a6a6965938
0
-
0
-pre-fetch {
0
- if { [string compare ${os.endian} "big"] != 0 } {
0
- return -code error "${name} is only available for PowerPC-based Macs at this time. Oracle says they will release a version for Intel-based Macs in Q1 CY2008."
0
- }
0
+platform i386 {
0
+ version 10.2.0.4.0
0
+ worksrcdir instantclient_[join [lrange [split ${version} .] 0 1] _]
0
+ set weird_prefix /scratch/plebld/208
0
+
0
+ master_sites \
0
+ http://download.oracle.com/otn/mac/instantclient/10204/
0
+
0
+ distfiles \
0
+ instantclient-basic-macosx-${version}${extract.suffix} \
0
+ instantclient-sdk-macosx-${version}${extract.suffix}
0
+
0
+ checksums \
0
+ instantclient-basic-macosx-${version}${extract.suffix} \
0
+ md5 383826be2873ece610da63b833eff052 \
0
+ sha1 91e408a580dc5a415e5906ff71c837d6a8b628c9 \
0
+ rmd160 fdd5d8a7d6034ba852a06ce378e1775f13a1519d \
0
+ instantclient-sdk-macosx-${version}${extract.suffix} \
0
+ md5 8aa52afeb9529d953c494e0233eb7c52 \
0
+ sha1 6f32cda591c61112c6f963698fdc829ab6a59e7f \
0
+ rmd160 e672eadc6fb0eccbe42cd49663128f011abfe493
0
 }
0
 
0
 use_configure no
0
0
@@ -46,20 +68,24 @@
0
 set lib_dir ${prefix}/lib/oracle
0
 
0
 build {
0
- # The pre-built libraries use weird prefixes like /b/729/rdbms and Oracle
0
- # recommends setting DYLD_LIBRARY_PATH to deal with this. I find that ill-
0
- # advised and would rather fix the paths in the libraries at install time.
0
+ # The pre-built libraries use weird prefixes and Oracle recommends setting
0
+ # DYLD_LIBRARY_PATH to deal with this. I would rather fix the paths in the
0
+ # libraries at install time.
0
+ # Annoyingly, I can't do that for the Intel version right now because
0
+ # install_name_tool says "malformed object (unknown load command 8)" (or 7).
0
     
0
- # For each dylib in the distribution, change the directory of its own
0
- # "soname" to our ${lib_dir}.
0
- foreach lib [glob -directory ${worksrcpath} *.dylib*] {
0
- system "install_name_tool -id ${lib_dir}/[strsed ${lib} /^.*\\///] ${lib}"
0
-
0
- # Then for each dependent dylib with a weird path that this dylib
0
- # references, fix the reference to use our ${lib_dir}.
0
- foreach dep [exec otool -L ${lib}] {
0
- if [string match "/b/729/*" ${dep}] {
0
- system "install_name_tool -change ${dep} ${lib_dir}/[strsed ${dep} /^.*\\///] ${lib}"
0
+ if {![variant_isset i386]} {
0
+ # For each dylib in the distribution, change the directory of its own
0
+ # "soname" to our ${lib_dir}.
0
+ foreach lib [glob -directory ${worksrcpath} *.dylib*] {
0
+ system "install_name_tool -id ${lib_dir}/[strsed ${lib} /^.*\\///] ${lib}"
0
+
0
+ # Then for each dependent dylib with a weird path that this dylib
0
+ # references, fix the reference to use our ${lib_dir}.
0
+ foreach dep [exec otool -L ${lib}] {
0
+ if [string match "${weird_prefix}/*" ${dep}] {
0
+ system "install_name_tool -change ${dep} ${lib_dir}/[strsed ${dep} /^.*\\///] ${lib}"
0
+ }
0
             }
0
         }
0
     }

Comments

    No one has commented yet.