svn commit: r334877 - head/astro/cfitsio

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Mon Nov 25 18:14:34 UTC 2013


Author: sunpoet
Date: Mon Nov 25 18:14:33 2013
New Revision: 334877
URL: http://svnweb.freebsd.org/changeset/ports/334877

Log:
  - Support STAGEDIR
  - Simplify Makefile

Modified:
  head/astro/cfitsio/Makefile

Modified: head/astro/cfitsio/Makefile
==============================================================================
--- head/astro/cfitsio/Makefile	Mon Nov 25 18:11:02 2013	(r334876)
+++ head/astro/cfitsio/Makefile	Mon Nov 25 18:14:33 2013	(r334877)
@@ -20,7 +20,6 @@ LIB_DEPENDS=	libf2c.so:${PORTSDIR}/lang/
 
 OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
 ALL_TARGET=	shared
 CONFIGURE_ARGS=	ac_cv_prog_FC="f2c"
 GNU_CONFIGURE=	yes
@@ -30,23 +29,17 @@ WRKSRC=		${WRKDIR}/${PORTNAME}
 
 PORTDOCS=	*
 
-.include <bsd.port.options.mk>
-
 post-patch:
 	@${REINPLACE_CMD} -e 's|="\.so"|=".so.0"|g' ${WRKSRC}/configure
 	@${MV} ${WRKSRC}/zlib.h ${WRKSRC}/zlib.h.dist
-	@${GREP} -lR "<malloc.\h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
-		's|<malloc\.h>|<stdlib.h>|g'
+	@${GREP} -lR "<malloc.\h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g'
 
 do-install:
-	cd ${WRKSRC}/ && \
-		${INSTALL_DATA} drvrsmem.h fitsio.h fitsio2.h longnam.h ${PREFIX}/include/ && \
-		${INSTALL_LIB} libcfitsio.so.0 ${PREFIX}/lib/ && \
-		${INSTALL_DATA} cfitsio.pc ${PREFIX}/libdata/pkgconfig/
-	${LN} -fs libcfitsio.so.0 ${PREFIX}/lib/libcfitsio.so
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}/
-	${INSTALL_DATA} ${WRKSRC}/*.doc ${DOCSDIR}/
-.endif
+	cd ${WRKSRC}/ && ${INSTALL_DATA} drvrsmem.h fitsio.h fitsio2.h longnam.h ${STAGEDIR}${PREFIX}/include/
+	cd ${WRKSRC}/ && ${INSTALL_LIB} libcfitsio.so.0 ${STAGEDIR}${PREFIX}/lib/
+	cd ${WRKSRC}/ && ${INSTALL_DATA} cfitsio.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/
+	${LN} -fs libcfitsio.so.0 ${STAGEDIR}${PREFIX}/lib/libcfitsio.so
+	${MKDIR} ${STAGEDIR}${DOCSDIR}/
+	${INSTALL_DATA} ${WRKSRC}/*.doc ${STAGEDIR}${DOCSDIR}/
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list