aboutsummaryrefslogtreecommitdiffstats
path: root/astro/cfitsio/Makefile
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2013-11-26 02:14:33 +0800
committersunpoet <sunpoet@FreeBSD.org>2013-11-26 02:14:33 +0800
commit1756c47954ca5dc79556170e5036ce082d034be0 (patch)
treee1d79e03a54f4fade37e3d1f3e0ea0e81877618f /astro/cfitsio/Makefile
parent7c87b0df32ac0a78429f159b3913028c0571f674 (diff)
downloadfreebsd-ports-gnome-1756c47954ca5dc79556170e5036ce082d034be0.tar.gz
freebsd-ports-gnome-1756c47954ca5dc79556170e5036ce082d034be0.tar.zst
freebsd-ports-gnome-1756c47954ca5dc79556170e5036ce082d034be0.zip
- Support STAGEDIR
- Simplify Makefile
Diffstat (limited to 'astro/cfitsio/Makefile')
-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>