svn commit: r339532 - in head/biology/mapm3: . files

Thomas Zander riggs at FreeBSD.org
Sun Jan 12 19:07:29 UTC 2014


Author: riggs
Date: Sun Jan 12 19:07:28 2014
New Revision: 339532
URL: http://svnweb.freebsd.org/changeset/ports/339532

Log:
  - Fix build with clang
  - Stage support
  
  PR:		ports/185655
  Submitted by:	Tassilo Philipp <tphilipp at potion-studios.com> (maintainer)
  Approved by:	thierry (mentor)

Modified:
  head/biology/mapm3/Makefile   (contents, props changed)
  head/biology/mapm3/files/patch-Makefile   (contents, props changed)

Modified: head/biology/mapm3/Makefile
==============================================================================
--- head/biology/mapm3/Makefile	Sun Jan 12 19:01:55 2014	(r339531)
+++ head/biology/mapm3/Makefile	Sun Jan 12 19:07:28 2014	(r339532)
@@ -14,11 +14,15 @@ EXTRACT_SUFX=	.tar.Z
 MAINTAINER=	tphilipp at potion-studios.com
 COMMENT=	Constructs linkage maps of markers segregating in experimental crosses
 
+USE_CSTD=	gnu89
+CFLAGS+=	-Wno-return-type
 NO_WRKSUBDIR=	yes
 MAKE_JOBS_UNSAFE=	yes
 
-NO_STAGE=	yes
 post-patch:
 	${CP} ${WRKSRC}/sun/* ${WRKSRC}
 
+pre-install:
+	@${REINPLACE_CMD} -e 's|/usr/local|${STAGEDIR}${PREFIX}|' ${WRKSRC}/Makefile
+
 .include <bsd.port.mk>

Modified: head/biology/mapm3/files/patch-Makefile
==============================================================================
--- head/biology/mapm3/files/patch-Makefile	Sun Jan 12 19:01:55 2014	(r339531)
+++ head/biology/mapm3/files/patch-Makefile	Sun Jan 12 19:07:28 2014	(r339532)
@@ -1,5 +1,5 @@
---- Makefile.orig	2008-04-04 20:05:29.000000000 +0000
-+++ Makefile	2008-04-04 19:51:04.000000000 +0000
+--- Makefile.orig	1993-02-10 07:12:59.000000000 +0100
++++ Makefile	2014-01-12 18:47:03.605582463 +0100
 @@ -16,6 +16,7 @@
  ####
  #### For Macs with A/UX, use:	SYS= -D_SYS_AUX
@@ -17,15 +17,6 @@
  
  #### Next define the system libraries to link with Mapmaker. On SunOS, Ultrix
  #### and other vanilla-ish BSD systems, the correct setting is:
-@@ -46,7 +47,7 @@
- #### Be sure that you have write permission to this directory (e.g. you may
- #### need to be logged in as "root" to install MAPMAKER in some directories).
- 
--DIR= /usr/local/bin
-+DIR= ${PREFIX}/bin
- 
- #### RDLN below refers to the GNU Readline library, which can (optionally) be
- #### used by MAPMAKER to provide interactive command line editing. See the 
 @@ -70,9 +71,11 @@
  #### (see the end of readline/readline.c). Readline will not compile on
  #### A/UX without using GCC instead of A/UX's cc (because it needs alloca).
@@ -47,7 +38,7 @@
  
 -COMPILE= cc
 -LINKALL= cc
-+COMPILE= ${CC}
++COMPILE= ${CC} ${CFLAGS}
 +LINKALL= ${CC}
  LINKLIB= ld -r
  DELETE=  rm -f


More information about the svn-ports-head mailing list