1 | --- Portfile 2007-04-22 11:31:34.000000000 -0500 |
---|
2 | +++ /Users/matt/lua-Portfile 2007-05-14 09:42:48.000000000 -0500 |
---|
3 | @@ -21,7 +21,6 @@ |
---|
4 | depends_lib port:readline |
---|
5 | |
---|
6 | patchfiles patch-use_readline.diff |
---|
7 | -use_configure no |
---|
8 | build.target macosx |
---|
9 | |
---|
10 | test.run yes |
---|
11 | @@ -36,6 +35,14 @@ |
---|
12 | reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/etc/lua.pc |
---|
13 | } |
---|
14 | |
---|
15 | +# "use_configure no" nullifies the configure.universal_* hooks |
---|
16 | +configure { |
---|
17 | + if {[variant_isset universal]} { |
---|
18 | + reinplace "s|MYCFLAGS=|MYCFLAGS=\"${configure.universal_cflags} \"|g" ${worksrcpath}/src/Makefile |
---|
19 | + reinplace "s|MYLDFLAGS=|MYLDFLAGS=${configure.universal_ldflags} |g" ${worksrcpath}/src/Makefile |
---|
20 | + } |
---|
21 | +} |
---|
22 | + |
---|
23 | destroot.target install INSTALL_TOP=${destroot}/${prefix} |
---|
24 | post-destroot { |
---|
25 | cd ${worksrcpath} |
---|