[103624] trunk/dports/textproc/wordnet/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sun Mar 3 07:08:36 PST 2013
Revision: 103624
https://trac.macports.org/changeset/103624
Author: ryandesign at macports.org
Date: 2013-03-03 07:08:36 -0800 (Sun, 03 Mar 2013)
Log Message:
-----------
wordnet: build libWN.dylib for the right architecture(s)
Modified Paths:
--------------
trunk/dports/textproc/wordnet/Portfile
Modified: trunk/dports/textproc/wordnet/Portfile
===================================================================
--- trunk/dports/textproc/wordnet/Portfile 2013-03-03 14:46:59 UTC (rev 103623)
+++ trunk/dports/textproc/wordnet/Portfile 2013-03-03 15:08:36 UTC (rev 103624)
@@ -41,13 +41,15 @@
configure.cflags-append \
-DUSE_INTERP_RESULT
+variant universal {}
+
post-configure {
reinplace "s|${prefix}/dict|${prefix}/share/WordNet-3.0/dict|g" ${worksrcpath}/config.h
}
# Build a shared library (so does FreeBSD's port).
post-build {
- system "${configure.cc} -install_name ${prefix}/lib/libWN.dylib -dynamiclib ${worksrcpath}/lib/*.o -o ${worksrcpath}/lib/libWN.dylib"
+ system "${configure.cc} [get_canonical_archflags cc] -install_name ${prefix}/lib/libWN.dylib -dynamiclib ${worksrcpath}/lib/*.o -o ${worksrcpath}/lib/libWN.dylib"
}
destroot.args-append dictdir=${prefix}/share/WordNet-3.0/dict \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130303/69697500/attachment-0001.html>
More information about the macports-changes
mailing list