Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2014 13:58:33 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r342703 - head/lang/f2c
Message-ID:  <201402051358.s15DwXOe061416@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Wed Feb  5 13:58:33 2014
New Revision: 342703
URL: http://svnweb.freebsd.org/changeset/ports/342703
QAT: https://qat.redports.org/buildarchive/r342703/

Log:
  - Stage support

Modified:
  head/lang/f2c/Makefile

Modified: head/lang/f2c/Makefile
==============================================================================
--- head/lang/f2c/Makefile	Wed Feb  5 13:58:18 2014	(r342702)
+++ head/lang/f2c/Makefile	Wed Feb  5 13:58:33 2014	(r342703)
@@ -17,17 +17,15 @@ COMMENT=	Fortran-to-C converter and its 
 EXTRACT_DEPENDS=	${UNZIP_CMD}:${PORTSDIR}/archivers/unzip
 
 GUNZIP_CMD=	minigzip -d
-USE_GMAKE=	yes
+USES=		gmake
 USE_LDCONFIG=	yes
 
 OPTIONS_DEFINE=	LEAD_0
 LEAD_0_DESC=	Print with leading zeros
 
-
 # Set FCNAME to the name of the Fortran 77 / F2C wrapper.
 FCNAME?=	fc
 PLIST_SUB=	FCNAME=${FCNAME}
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MFC}
@@ -70,21 +68,18 @@ do-build:
 	${MV} ${WRKSRC}/libf2c/libf2c.so ${WRKSRC}/libf2c/libf2c.so.2
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/src/f2c ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/src/f2c ${STAGEDIR}${PREFIX}/bin
 .if defined(WITH_MFC)
-	${INSTALL_SCRIPT} ${WRKSRC}/fc ${PREFIX}/bin/${FCNAME}
+	${INSTALL_SCRIPT} ${WRKSRC}/fc ${STAGEDIR}${PREFIX}/bin/${FCNAME}
 .endif
-	${INSTALL_DATA} ${WRKSRC}/src/f2c.h ${PREFIX}/include
-	${INSTALL_MAN} ${WRKSRC}/src/${MAN1}t ${MAN1PREFIX}/man/man1/${MAN1}
-	${INSTALL_DATA} ${WRKSRC}/libf2c/libf2c.a ${PREFIX}/lib
-	${INSTALL_DATA} ${WRKSRC}/libf2c/libf2c.so.2 ${PREFIX}/lib
-	${LN} -sf libf2c.so.2 ${PREFIX}/lib/libf2c.so
+	${INSTALL_DATA} ${WRKSRC}/src/f2c.h ${STAGEDIR}${PREFIX}/include
+	${INSTALL_MAN} ${WRKSRC}/src/${MAN1}t ${STAGEDIR}${MAN1PREFIX}/man/man1/${MAN1}
+	${INSTALL_DATA} ${WRKSRC}/libf2c/libf2c.a ${STAGEDIR}${PREFIX}/lib
+	${INSTALL_DATA} ${WRKSRC}/libf2c/libf2c.so.2 ${STAGEDIR}${PREFIX}/lib
+	${LN} -sf libf2c.so.2 ${STAGEDIR}${PREFIX}/lib/libf2c.so
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-	@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
-.endif
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402051358.s15DwXOe061416>