20 | | checksums md5 f6b33e18e9680c08835e93f8673dea8d \ |
21 | | sha1 a87db20ae7bf4ffd1b5d37c7e3be70c84661e379 \ |
22 | | rmd160 015544501df128da869f837b64579de53028a163 |
23 | | |
24 | | post-patch { |
25 | | # checking how to create shared objects... cant |
26 | | # configure: error: We are unable to make shared objects. |
27 | | |
28 | | reinplace "s/ -bind_at_load//" ${worksrcpath}/configure |
29 | | |
30 | | # Loadable objects are bundles on OS X |
31 | | |
32 | | reinplace "s/=\\.so/=\\.bundle/g" ${worksrcpath}/Makefile.in |
33 | | reinplace -E "s/\[\[:<:\]\]so\[\[:>:\]\]/bundle/g" \ |
34 | | ${worksrcpath}/Makefile.in \ |
35 | | ${worksrcpath}/Makefile.dep |
36 | | reinplace -E "/AS_MODULE/s/(SHOBJLDFLAGS)/\\1:dynamiclib=bundle/" \ |
37 | | ${worksrcpath}/Makefile.in |
38 | | reinplace -E "/for/s/\\(MODS\\)/(ALGO:.c=.bundle)/" ${worksrcpath}/Makefile.in |
39 | | |
40 | | # ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option |
41 | | # module_shr.o definition of common _modules (size 1024) |
42 | | # net_shr.o definition of common _dact_urls (size 3072) |
43 | | # ui_shr.o definition of common _dact_ui_statusvar (size 128) |
44 | | |
45 | | reinplace -E "s/^(void)/static \\1/" ${worksrcpath}/module.c |
46 | | reinplace -E "/^extern void/d" ${worksrcpath}/module.h |
47 | | reinplace -E "s/^(struct.*;)\$/static \\1/" ${worksrcpath}/net.c |
48 | | reinplace -E "s/^(char.*;)\$/static \\1/" ${worksrcpath}/ui.c |
49 | | } |
| 20 | checksums md5 60d6ea03a08d14108ee155d2fbf1eadc \ |
| 21 | sha1 f0ff1ff8a3eae9e15eeb3c9b567c7cd7f829eaac \ |
| 22 | rmd160 2f79cb5a1baa64767253b499b6f0121c8f5a3857 |