aboutsummaryrefslogtreecommitdiff
path: root/astro
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-11-25 18:14:33 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-11-25 18:14:33 +0000
commitc24bbd3e672e137cb398684774322d48b190ded8 (patch)
treee1d79e03a54f4fade37e3d1f3e0ea0e81877618f /astro
parentb000c0f4f77735be79e55dd2f6aa19a0f2866954 (diff)
downloadports-c24bbd3e672e137cb398684774322d48b190ded8.tar.gz
ports-c24bbd3e672e137cb398684774322d48b190ded8.zip
Notes
Diffstat (limited to 'astro')
-rw-r--r--astro/cfitsio/Makefile21
1 files changed, 7 insertions, 14 deletions
diff --git a/astro/cfitsio/Makefile b/astro/cfitsio/Makefile
index 8e11f85df520..89677a9dfb25 100644
--- a/astro/cfitsio/Makefile
+++ b/astro/cfitsio/Makefile
@@ -20,7 +20,6 @@ LIB_DEPENDS= libf2c.so:${PORTSDIR}/lang/f2c
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>