[80812] trunk/dports/tex/bibutils/Portfile
dports at macports.org
dports at macports.org
Mon Jul 18 02:52:26 PDT 2011
Revision: 80812
http://trac.macports.org/changeset/80812
Author: dports at macports.org
Date: 2011-07-18 02:52:23 -0700 (Mon, 18 Jul 2011)
Log Message:
-----------
bibutils: set compiler and cflags to ensure that we are
UsingTheRightCompiler and building for the right architecture (the
port previously only built i386+ppc universal; see #29960)
By the time we've fixed that, we've replaced most of the functionality
of the port's simple configure script, so it's easiest just to skip it
and produce the Makefile ourselves.
Modified Paths:
--------------
trunk/dports/tex/bibutils/Portfile
Modified: trunk/dports/tex/bibutils/Portfile
===================================================================
--- trunk/dports/tex/bibutils/Portfile 2011-07-18 06:01:50 UTC (rev 80811)
+++ trunk/dports/tex/bibutils/Portfile 2011-07-18 09:52:23 UTC (rev 80812)
@@ -5,6 +5,7 @@
name bibutils
version 4.12
+revision 1
categories tex
maintainers openmaintainer jochen
description bibliography conversion utilities
@@ -26,4 +27,19 @@
sha1 027be11cbad8261d0a6fc1056010480b23385ba2 \
rmd160 fdd162cdea2f6ea88f317dd246208e8e770f13f2
-configure.pre_args --install-dir ${destroot}${prefix}/bin
+configure {
+ file delete ${worksrcpath}/Makefile ${worksrcpath}/lib/Makefile ${worksrcpath}/bin/Makefile
+ file copy ${worksrcpath}/bin/Makefile.static ${worksrcpath}/bin/Makefile
+ file copy ${worksrcpath}/lib/Makefile.static ${worksrcpath}/lib/Makefile
+ file copy ${worksrcpath}/Makefile_start ${worksrcpath}/Makefile
+ if {[variant_isset "universal"]} {
+ set CFLAGS "${configure.cflags} ${configure.universal_cflags}"
+ } else {
+ set CFLAGS "${configure.cflags} ${configure.cc_archflags}"
+ }
+ reinplace "s|REPLACE_CC|CC=\"${configure.cc} ${CFLAGS}\"|" ${worksrcpath}/Makefile
+ reinplace "s|REPLACE_RANLIB|RANLIB=\"ranlib -s\"|" ${worksrcpath}/Makefile
+ reinplace "s|REPLACE_INSTALLDIR|${destroot}${prefix}/bin|" ${worksrcpath}/Makefile
+ reinplace "s|REPLACE_LIBINSTALLDIR|${destroot}${prefix}/lib|" ${worksrcpath}/Makefile
+ reinplace "s|REPLACE_POSTFIX|_osx|" ${worksrcpath}/Makefile
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110718/225c00f1/attachment.html>
More information about the macports-changes
mailing list