You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
angle: improve post-destroot
This commit is contained in:
+16
-16
@@ -193,8 +193,22 @@ destroot.target install_angle
|
||||
destroot.args -C out
|
||||
destroot.destdir
|
||||
|
||||
platform darwin {
|
||||
post-destroot {
|
||||
post-destroot {
|
||||
reinplace "s|^prefix=.*$|prefix=${prefix}|" \
|
||||
{*}[glob ${destroot}${prefix}/lib/pkgconfig/*.pc]
|
||||
|
||||
delete \
|
||||
${destroot}${prefix}/include/CL \
|
||||
${destroot}${prefix}/include/GLX \
|
||||
${destroot}${prefix}/include/WGL \
|
||||
${destroot}${prefix}/include/GLSLANG \
|
||||
${destroot}${prefix}/include/vulkan \
|
||||
${destroot}${prefix}/include/platform \
|
||||
{*}[glob ${destroot}${prefix}/include/*.h] \
|
||||
{*}[glob ${destroot}${prefix}/include/*/README.md] \
|
||||
{*}[glob ${destroot}${prefix}/include/*/.clang-format]
|
||||
|
||||
platform darwin {
|
||||
foreach f [glob -tails -directory ${destroot} ${prefix}/lib/*.dylib] {
|
||||
system "install_name_tool -id /$f ${destroot}/$f"
|
||||
}
|
||||
@@ -202,20 +216,6 @@ platform darwin {
|
||||
system "install_name_tool -change ./libGLESv2.dylib \
|
||||
${prefix}/lib/libGLESv2.dylib \
|
||||
${destroot}${prefix}/lib/libGLESv1_CM.dylib"
|
||||
|
||||
reinplace "s|^prefix=.*$|prefix=${prefix}|" \
|
||||
{*}[glob ${destroot}${prefix}/lib/pkgconfig/*.pc]
|
||||
|
||||
delete \
|
||||
${destroot}${prefix}/include/CL \
|
||||
${destroot}${prefix}/include/GLX \
|
||||
${destroot}${prefix}/include/WGL \
|
||||
${destroot}${prefix}/include/GLSLANG \
|
||||
${destroot}${prefix}/include/vulkan \
|
||||
${destroot}${prefix}/include/platform \
|
||||
{*}[glob ${destroot}${prefix}/include/*.h] \
|
||||
{*}[glob ${destroot}${prefix}/include/*/README.md] \
|
||||
{*}[glob ${destroot}${prefix}/include/*/.clang-format]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user