33 | | configure.cflags-append "-I${prefix}/include" |
34 | | configure.env CIFLAGS="-I${prefix}/include" |
35 | | |
36 | | configure.args --mandir=/${prefix}/share/man \ |
37 | | --disable-gmp \ |
38 | | --enable-shared \ |
39 | | --enable-mt |
40 | | |
41 | | variant st { configure.args-delete --enable-mt |
42 | | configure.args-append --disable-mt } |
43 | | |
44 | | platform darwin 6 { depends_lib-append lib:libdl:dlcompat } |
45 | | platform darwin 8 { configure.compiler gcc-4.0 } |
46 | | |
| 35 | configure.args \ |
| 36 | --prefix=${prefix} \ |
| 37 | --mandir=${prefix}/share/man \ |
| 38 | --disable-gmp \ |
| 39 | --enable-shared \ |
| 40 | --enable-mt |
| 41 | |
| 42 | platform darwin 6 { |
| 43 | depends_lib-append lib:libdl:dlcompat |
| 44 | } |
| 45 | |
| 46 | post-build { |
| 47 | file mkdir ${workpath}/macosx |
| 48 | file copy -force -- ${workpath}/pl-${version}/man/macosx/License.html ${workpath}/macosx/ |
| 49 | file copy -force -- ${workpath}/pl-${version}/man/macosx/macosx.html ${workpath}/macosx/ |
| 50 | file copy -force -- ${workpath}/pl-${version}/man/macosx/Welcome.html ${workpath}/macosx/ |
| 51 | } |
| 52 | |
| 53 | post-pkg { |
| 54 | set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/ |
| 55 | file copy -force -- ${workpath}/macosx/License.html ${resources} |
| 56 | file copy -force -- ${workpath}/macosx/macosx.html ${resources} |
| 57 | file copy -force -- ${workpath}/macosx/Welcome.html ${resources} |
| 58 | file rename ${resources}/macosx.html ${resources}/ReadMe.html |
| 59 | file delete -force -- ${resources}/Welcome.rtf |
| 60 | } |
| 61 | |
| 62 | post-mpkg { |
| 63 | set resources ${workpath}/${name}-${version}.mpkg/Contents/Resources/ |
| 64 | file copy -force -- ${workpath}/macosx/License.html ${resources} |
| 65 | file copy -force -- ${workpath}/macosx/macosx.html ${resources} |
| 66 | file copy -force -- ${workpath}/macosx/Welcome.html ${resources} |
| 67 | file rename ${resources}/macosx.html ${resources}/ReadMe.html |
| 68 | file delete -force -- ${resources}/Welcome.rtf |
| 69 | } |
| 70 | |
| 71 | default_variants +mt |
| 72 | |
| 73 | variant st { |
| 74 | configure.args-append --disable-mt |
| 75 | } |
| 76 | |
| 77 | variant mt { |
| 78 | configure.args-append --enable-mt |
| 79 | } |