Modified: trunk/dports/textproc/sablotron/Portfile (75702 => 75703)
--- trunk/dports/textproc/sablotron/Portfile 2011-02-04 22:41:51 UTC (rev 75702)
+++ trunk/dports/textproc/sablotron/Portfile 2011-02-04 22:56:43 UTC (rev 75703)
@@ -24,6 +24,8 @@
sha1 4e60a6aef32b661d7887b3ffd28339f47e2565e1 \
rmd160 bbf2b57d95efbe1fce0ba42813560df4dbde9e3a
+depends_build port:libtool
+
depends_lib port:libiconv port:expat port:spidermonkey
# Unfortunately, we have to set an internal configure script variable to stop
@@ -33,6 +35,12 @@
configure.args --mandir=${prefix}/share/man --enable-javascript
configure.cppflags-append -I${prefix}/include/js
+post-configure {
+ # Ensure -arch flags are also used when building the dynamic library;
+ # fixes universal and non-default-build_arch builds.
+ copy -force ${prefix}/bin/glibtool ${worksrcpath}/libtool
+}
+
variant apidocs description {Install HTML documentation of Sablotron's API} {
depends_build-append path:bin/perl:perl5 port:p5-xml-parser
configure.env-append PERL_PROG=${prefix}/bin/perl