[114624] trunk/dports/science/mapm3
ryandesign at macports.org
ryandesign at macports.org
Wed Dec 11 20:33:46 PST 2013
Revision: 114624
https://trac.macports.org/changeset/114624
Author: ryandesign at macports.org
Date: 2013-12-11 20:33:46 -0800 (Wed, 11 Dec 2013)
Log Message:
-----------
mapm3: ensure we're UsingTheRightCompiler; blacklist clang (#41772); add ncurses dependency
Modified Paths:
--------------
trunk/dports/science/mapm3/Portfile
trunk/dports/science/mapm3/files/patch-Makefile
Modified: trunk/dports/science/mapm3/Portfile
===================================================================
--- trunk/dports/science/mapm3/Portfile 2013-12-12 03:52:34 UTC (rev 114623)
+++ trunk/dports/science/mapm3/Portfile 2013-12-12 04:33:46 UTC (rev 114624)
@@ -5,7 +5,7 @@
name mapm3
version 3.0
-revision 3
+revision 4
platforms darwin
maintainers ryandesign openmaintainer
categories science
@@ -19,6 +19,8 @@
extract.suffix .tar.Z
checksums md5 8aa7a061d32a49c8704c1a5c4b31aa2d
+depends_lib port:ncurses
+
extract.mkdir yes
extract.cmd uncompress
extract.pre_args -c
@@ -30,16 +32,18 @@
patch-system.h \
patch-xqtl
-post-patch {
- reinplace "s|^DIR= /usr/local/bin|DIR= ${prefix}/bin|g" "${worksrcpath}/Makefile"
-}
-
use_configure no
-pre-destroot {
- reinplace "s|^DIR= ${prefix}/bin|DIR= ${destroot}${prefix}/bin|g" "${worksrcpath}/Makefile"
-}
+# error: non-void function 'add_to_seg_dist' should return a value [-Wreturn-type]
+compiler.blacklist *clang*
+build.args DIR=${prefix}/bin \
+ COMPILE="${configure.cc} [get_canonical_archflags cc] -fwritable-strings" \
+ LINKALL="${configure.cc} [get_canonical_archflags cc]" \
+ LINKLIB="ld [get_canonical_archflags ld] -r"
+
+destroot.args DIR=${destroot}${prefix}/bin
+
post-destroot {
xinstall -d ${destroot}${prefix}/libexec/${name}
foreach prog {mapmaker qtl} {
Modified: trunk/dports/science/mapm3/files/patch-Makefile
===================================================================
--- trunk/dports/science/mapm3/files/patch-Makefile 2013-12-12 03:52:34 UTC (rev 114623)
+++ trunk/dports/science/mapm3/files/patch-Makefile 2013-12-12 04:33:46 UTC (rev 114624)
@@ -21,15 +21,6 @@
#### Now we specify the commands used to compile MAPMAKER. The stuff
#### below works on Sun SPARCStations running SunOS 4.1.x (aka Solaris 1.x)
-@@ -82,7 +81,7 @@
- #### person at your site should be able to figure out what to do almost
- #### trivially. See the file INSTALL.ME for details.
-
--COMPILE= cc
-+COMPILE= cc -fwritable-strings
- LINKALL= cc
- LINKLIB= ld -r
- DELETE= rm -f
@@ -113,7 +112,7 @@
MAPM_CLEAN= $(MAPM)*.o $(MAPM)*.ln $(MAPM)*.lint
M_HELP_IN= $(MAPM)mapmhelp.src
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131211/47d60093/attachment-0001.html>
More information about the macports-changes
mailing list