mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
0006ba443f
Reported by: upstream maintainer (via information bulletin)
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
PORTNAME= gnuastro
|
|
PORTVERSION= 0.22
|
|
CATEGORIES= astro
|
|
MASTER_SITES= GNU
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= GNU astronomy utilities and library
|
|
WWW= https://www.gnu.org/software/gnuastro/
|
|
|
|
LICENSE= GPLv3+
|
|
|
|
LIB_DEPENDS= libcfitsio.so:astro/cfitsio \
|
|
libwcs.so:astro/wcslib \
|
|
libcurl.so:ftp/curl \
|
|
libgsl.so:math/gsl \
|
|
libpng.so:graphics/png \
|
|
libtiff.so:graphics/tiff
|
|
|
|
USES= gmake jpeg libtool:build localbase tar:lz
|
|
GNU_CONFIGURE= yes
|
|
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
|
|
USE_LDCONFIG= yes
|
|
INSTALL_TARGET= install-strip
|
|
TEST_TARGET= check
|
|
TEST_WRKSRC= ${WRKSRC}/tests
|
|
|
|
INFO= ${PORTNAME}
|
|
PORTDOCS= AUTHORS ChangeLog NEWS README THANKS
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,cflags_add="-O3",:,' \
|
|
${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's,gcc,$(CC),' \
|
|
${WRKSRC}/bin/buildprog/ui.c
|
|
@${REINPLACE_CMD} -e 's,^make -f,g&,' \
|
|
${WRKSRC}/bin/script/pointing-simulate.sh \
|
|
${WRKSRC}/bin/script/zeropoint.sh
|
|
|
|
post-install:
|
|
@${FIND} ${STAGEDIR}${PREFIX}/etc -name \*.conf \
|
|
-exec ${MV} '{}' '{}.sample' \;
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|