1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/astro/wcslib/Makefile
Olli Hauer b3f95b0e35 cat astro / benchmarks
- USE_(BZIP2|XZ) -> USES=tar:(bzip2|xz)
- adjust BSDn License
2014-06-01 09:00:15 +00:00

45 lines
1.2 KiB
Makefile

# Created by: Tony Maher <tonymaher@optusnet.com.au>
# $FreeBSD$
PORTNAME= wcslib
PORTVERSION= 4.13.4
PORTREVISION= 3
CATEGORIES= astro
MASTER_SITES= ftp://ftp.atnf.csiro.au/pub/software/wcslib/
MAINTAINER= tonymaher@optusnet.com.au
COMMENT= Library for parsing/generating FITS headers
GNU_CONFIGURE= yes
USES= tar:bzip2 gmake
MAKEFILE= GNUmakefile
USE_LDCONFIG= yes
MAKE_JOBS_UNSAFE=yes
PLIST_SUB= VERSION="${PORTVERSION}"
# See makedefs.in which describes why you want to set the extra support.
# For most users it will not be required.
OPTIONS_DEFINE= CFITSIO PGPLOT
OPTIONS_SUB= yes
CFITSIO_DESC= Add cfitsio support (for tests only)
PGPLOT_DESC= Add pgplot support (for tests only)
CFITSIO_CONFIGURE_WITH= cfitsio
CFITSIO_LIB_DEPENDS= libcfitsio.so:${PORTSDIR}/astro/cfitsio
PGPLOT_CONFIGURE_WITH= pgplot
PGPLOT_LIB_DEPENDS= libpgplot.so:${PORTSDIR}/graphics/pgplot
post-patch:
@${REINPLACE_CMD} -e 's#%%PKGDIR%%#${STAGEDIR}${PREFIX}/libdata#g' \
${WRKSRC}/GNUmakefile
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/ && ${INSTALL_DATA} CHANGES README COPYING COPYING.LESSER wcslib.pdf ${STAGEDIR}${DOCSDIR})
${MKDIR} ${STAGEDIR}${DOCSDIR}/html
(cd ${WRKSRC}/html && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR}/html)
.include <bsd.port.mk>