Ticket #41077: mod_jk-Portfile.diff
File mod_jk-Portfile.diff, 1.4 KB (added by girgen@…, 11 years ago) |
---|
-
Portfile
old new 4 4 5 5 name mod_jk 6 6 version 1.2.27 7 revision 1 7 8 8 9 categories www java 9 10 license Apache-2 BSD … … 36 37 set apachedir apache2 37 38 38 39 # Determine a valid value for javahome 39 if { [llength [array get env "JAVA_HOME"]] > 0 } { 40 variant jni description {Build jni_connect.so and enable jni_worker} { 41 if { [llength [array get env "JAVA_HOME"]] > 0 } { 40 42 set javahome $env(JAVA_HOME) 41 } else {42 set javahome ""43 }44 if { ![file isdirectory ${javahome}] } {43 } else { 44 set javahome [exec /usr/libexec/java_home] 45 } 46 if { ![file isdirectory ${javahome}] } { 45 47 if { ${os.platform} == "darwin" } { 46 48 if { [file isdirectory "/System/Library/Frameworks/JavaVM.framework/Home"] } { 47 49 set javahome "/System/Library/Frameworks/JavaVM.framework/Home" 48 50 } 49 51 } 50 }51 if { ![file isdirectory ${javahome}] } {52 } 53 if { ![file isdirectory ${javahome}] } { 52 54 pre-fetch { 53 55 error "This port needs a reasonable value for JAVA_HOME, but couldn't automatically determine one: please set the environment variable." 54 56 } 55 }57 } 56 58 57 variant jni description {Build jni_connect.so and enable jni_worker} {58 59 configure.args-append --with-java-home=${javahome} --enable-jni 59 60 } 60 61 … … 72 73 } 73 74 } 74 75 76 patchfiles-append jk_map.c.patch 75 77 if {[variant_isset universal]} { 76 78 patchfiles-append configure_universal.patch 77 79 post-configure {