freebsd-ports/astro/wcslib/Makefile
Wesley Shields 7adf5a6d46 Trim header.
Convert to new options.

PR:		ports/173818
Submitted by:	Chris Petrik <c.petrik.sosa@gmail.com>
Approved by:	maintainer timeout
2013-01-08 16:31:50 +00:00

56 lines
1.4 KiB
Makefile

# Created by: Tony Maher <tonymaher@optusnet.com.au>
# $FreeBSD$
PORTNAME= wcslib
PORTVERSION= 4.13.4
CATEGORIES= astro
MASTER_SITES= ftp://ftp.atnf.csiro.au/pub/software/wcslib/
MAINTAINER= tonymaher@optusnet.com.au
COMMENT= Library for parsing/generating FITS headers
USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
MAKEFILE= GNUmakefile
USE_LDCONFIG= yes
PLIST_SUB= VERSION="${PORTVERSION}"
MAN1= fitshdr.1
# 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
CFITSIO_DESC= Add cfitsio support (for tests only)
PGPLOT_DESC= Add pgplot support (for tests only)
.include <bsd.port.options.mk>
# The configure script unconditionally searches for the cftisio library
# and uses it if found.
.if ${PORT_OPTIONS:MCFITSIO} || exists(${LOCALBASE}/lib/libcfitsio.so)
PLIST_SUB+= HPXCVT=""
LIB_DEPENDS+= cfitsio:${PORTSDIR}/astro/cfitsio
.else
PLIST_SUB+= HPXCVT="@comment "
.endif
.if ${PORT_OPTIONS:MPGPLOT}
LIB_DEPENDS+= pgplot.5:${PORTSDIR}/graphics/pgplot
.endif
post-patch:
@${REINPLACE_CMD} -e 's#%%PKGDIR%%#${LOCALBASE}/libdata#g' \
${WRKSRC}/GNUmakefile
post-install:
.if ! ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
(cd ${WRKSRC}/ && ${INSTALL_DATA} CHANGES README COPYING COPYING.LESSER wcslib.pdf ${DOCSDIR})
@${MKDIR} ${DOCSDIR}/html
(cd ${WRKSRC}/html && ${INSTALL_DATA} * ${DOCSDIR}/html)
.endif
.include <bsd.port.mk>