[130967] trunk/dports/devel/libmacho/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Sun Jan 4 00:24:16 PST 2015
Revision: 130967
https://trac.macports.org/changeset/130967
Author: jeremyhu at macports.org
Date: 2015-01-04 00:24:15 -0800 (Sun, 04 Jan 2015)
Log Message:
-----------
libmacho: Add dylib and libmacho-headers subport
Modified Paths:
--------------
trunk/dports/devel/libmacho/Portfile
Modified: trunk/dports/devel/libmacho/Portfile
===================================================================
--- trunk/dports/devel/libmacho/Portfile 2015-01-04 07:18:19 UTC (rev 130966)
+++ trunk/dports/devel/libmacho/Portfile 2015-01-04 08:24:15 UTC (rev 130967)
@@ -4,6 +4,7 @@
PortSystem 1.0
name libmacho
version 862
+revision 1
categories devel
platforms darwin
maintainers jeremyhu openmaintainer
@@ -22,17 +23,44 @@
checksums rmd160 21ca74a5f9d04c37c2310f107e21a0f3713360dd \
sha256 1bf29f620b91c901ad3116b47738ab5076c1aed75d13869cd3bc7f067b4aaadb
-supported_archs i386 x86_64
use_configure no
-build.dir ${worksrcpath}/libmacho
-destroot.dir ${build.dir}
+subport libmacho-headers {
+ supported_archs noarch
+ universal_variant no
+ use_configure no
+ build {}
-build.target libmacho.a
+ destroot.args DSTROOT=${destroot}${prefix} RC_ProjectSourceVersion=${version}
+ destroot.target installhdrs
-destroot {
- xinstall -m 644 ${destroot.dir}/libmacho.a ${destroot}${prefix}/lib
+ post-destroot {
+ file rename -force ${destroot}${prefix}/usr/include ${destroot}${prefix}/
+ file delete -force ${destroot}${prefix}/usr
+ }
}
+if {${subport} == "${name}"} {
+ # Technically not needed, but subports will expect depending on libunwind to pull in the headers
+ depends_lib-append port:libmacho-headers
+
+ supported_archs i386 x86_64
+
+ build.dir ${worksrcpath}/libmacho
+ destroot.dir ${build.dir}
+
+ build.target libmacho.a libmacho.dylib
+ build.args \
+ DEPENDENT_LIBS="" \
+ RC_ProjectSourceVersion=${version} \
+ INSTALL_NAME="${prefix}/lib/libmacho.1.dylib"
+
+ destroot {
+ xinstall -m 644 ${destroot.dir}/libmacho.a ${destroot}${prefix}/lib
+ xinstall -m 755 ${destroot.dir}/libmacho.dylib ${destroot}${prefix}/lib/libmacho.1.dylib
+ ln -s libmacho.1.dylib ${destroot}${prefix}/lib/libmacho.dylib
+ }
+}
+
livecheck.type regex
livecheck.regex "cctools-(\[\\d.\]+)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150104/1b62365d/attachment.html>
More information about the macports-changes
mailing list